Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
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
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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.
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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.
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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 {
/**
*
*
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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.
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* VolumeHandle is the unique volume name returned by the CSI volume
* plugin’s CreateVolume to refer to the volume on all subsequent calls.
* Required.
*
* VolumeHandle is the unique volume name returned by the CSI volume
* plugin’s CreateVolume to refer to the volume on all subsequent calls.
* Required.
*
* VolumeHandle is the unique volume name returned by the CSI volume
* plugin’s CreateVolume to refer to the volume on all subsequent calls.
* Required.
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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.
*
* VolumeHandle is the unique volume name returned by the CSI volume
* plugin’s CreateVolume to refer to the volume on all subsequent calls.
* Required.
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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)
*
* VolumeHandle is the unique volume name returned by the CSI volume
* plugin’s CreateVolume to refer to the volume on all subsequent calls.
* Required.
*
* VolumeHandle is the unique volume name returned by the CSI volume
* plugin’s CreateVolume to refer to the volume on all subsequent calls.
* Required.
*
* VolumeHandle is the unique volume name returned by the CSI volume
* plugin’s CreateVolume to refer to the volume on all subsequent calls.
* Required.
*
* VolumeHandle is the unique volume name returned by the CSI volume
* plugin’s CreateVolume to refer to the volume on all subsequent calls.
* Required.
*
* VolumeHandle is the unique volume name returned by the CSI volume
* plugin’s CreateVolume to refer to the volume on all subsequent calls.
* Required.
*
* VolumeHandle is the unique volume name returned by the CSI volume
* plugin’s CreateVolume to refer to the volume on all subsequent calls.
* Required.
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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.
*
* 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
*
* 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
*
* 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
*
* VolumeAttributes stores driver-specific properties that are passed to the CSI
* driver. Consult your driver's documentation for supported values.
* +optional
*
* VolumeAttributes stores driver-specific properties that are passed to the CSI
* driver. Consult your driver's documentation for supported values.
* +optional
*
* VolumeAttributes stores driver-specific properties that are passed to the CSI
* driver. Consult your driver's documentation for supported values.
* +optional
*
* VolumeAttributes stores driver-specific properties that are passed to the CSI
* driver. Consult your driver's documentation for supported values.
* +optional
*
* VolumeAttributes stores driver-specific properties that are passed to the CSI
* driver. Consult your driver's documentation for supported values.
* +optional
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* VolumeAttributes stores driver-specific properties that are passed to the CSI
* driver. Consult your driver's documentation for supported values.
* +optional
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* VolumeAttributes stores driver-specific properties that are passed to the CSI
* driver. Consult your driver's documentation for supported values.
* +optional
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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 {
/**
*
*
*
* 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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.
*
* 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
*
* 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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.
*
* 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
*
* 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
*
* 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
*
* 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: 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: 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
*
* 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
*
* 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
*
* 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
*
* 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: 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: 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.
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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: 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: 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: 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: 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
*
* 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
*
* 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
*
* 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: 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: 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
*
* 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
*
* 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
*
* 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
*
* 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: 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: 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.
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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: 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: 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: 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: 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: 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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"
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* Standard object's metadata.
* More info: https://git.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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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 {
/**
*
*
*
* 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_;
/**
*
*
*
* 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_;
/**
*
*
*