Please wait. This can take some minutes ...
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.
io.kubernetes.client.proto.V1 Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v1.proto
package io.kubernetes.client.proto;
public final class V1 {
private V1() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface AWSElasticBlockStoreVolumeSourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource)
com.google.protobuf.MessageOrBuilder {
/**
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
*
* optional string volumeID = 1;
*/
boolean hasVolumeID();
/**
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
*
* optional string volumeID = 1;
*/
java.lang.String getVolumeID();
/**
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
*
* optional string volumeID = 1;
*/
com.google.protobuf.ByteString
getVolumeIDBytes();
/**
*
* Filesystem type of the volume that you want to mount.
* Tip: Ensure that the filesystem type is supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* TODO: how do we prevent errors in the filesystem from compromising the machine
* +optional
*
*
* optional string fsType = 2;
*/
boolean hasFsType();
/**
*
* Filesystem type of the volume that you want to mount.
* Tip: Ensure that the filesystem type is supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* TODO: how do we prevent errors in the filesystem from compromising the machine
* +optional
*
*
* optional string fsType = 2;
*/
java.lang.String getFsType();
/**
*
* Filesystem type of the volume that you want to mount.
* Tip: Ensure that the filesystem type is supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* TODO: how do we prevent errors in the filesystem from compromising the machine
* +optional
*
*
* optional string fsType = 2;
*/
com.google.protobuf.ByteString
getFsTypeBytes();
/**
*
* The partition in the volume that you want to mount.
* If omitted, the default is to mount by volume name.
* Examples: For volume /dev/sda1, you specify the partition as "1".
* Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
* +optional
*
*
* optional int32 partition = 3;
*/
boolean hasPartition();
/**
*
* The partition in the volume that you want to mount.
* If omitted, the default is to mount by volume name.
* Examples: For volume /dev/sda1, you specify the partition as "1".
* Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
* +optional
*
*
* optional int32 partition = 3;
*/
int getPartition();
/**
*
* Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
* If omitted, the default is "false".
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* +optional
*
*
* optional bool readOnly = 4;
*/
boolean hasReadOnly();
/**
*
* Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
* If omitted, the default is "false".
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* +optional
*
*
* optional bool readOnly = 4;
*/
boolean getReadOnly();
}
/**
*
* Represents a Persistent Disk resource in AWS.
*
* An AWS EBS disk must exist before mounting to a container. The disk
* must also be in the same AWS zone as the kubelet. An AWS EBS disk
* can only be mounted as read/write once. AWS EBS volumes support
* ownership management and SELinux relabeling.
*
*
* Protobuf type {@code k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource}
*/
public static final class AWSElasticBlockStoreVolumeSource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource)
AWSElasticBlockStoreVolumeSourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use AWSElasticBlockStoreVolumeSource.newBuilder() to construct.
private AWSElasticBlockStoreVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AWSElasticBlockStoreVolumeSource() {
volumeID_ = "";
fsType_ = "";
partition_ = 0;
readOnly_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AWSElasticBlockStoreVolumeSource(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
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;
}
}
}
} catch (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;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AWSElasticBlockStoreVolumeSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.class, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder.class);
}
private int bitField0_;
public static final int VOLUMEID_FIELD_NUMBER = 1;
private volatile java.lang.Object volumeID_;
/**
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
*
* optional string volumeID = 1;
*/
public boolean hasVolumeID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
*
* optional string volumeID = 1;
*/
public java.lang.String getVolumeID() {
java.lang.Object ref = volumeID_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
volumeID_ = s;
}
return s;
}
}
/**
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
*
* optional string volumeID = 1;
*/
public com.google.protobuf.ByteString
getVolumeIDBytes() {
java.lang.Object ref = volumeID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
volumeID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FSTYPE_FIELD_NUMBER = 2;
private volatile java.lang.Object fsType_;
/**
*
* Filesystem type of the volume that you want to mount.
* Tip: Ensure that the filesystem type is supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* TODO: how do we prevent errors in the filesystem from compromising the machine
* +optional
*
*
* optional string fsType = 2;
*/
public boolean hasFsType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Filesystem type of the volume that you want to mount.
* Tip: Ensure that the filesystem type is supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* TODO: how do we prevent errors in the filesystem from compromising the machine
* +optional
*
*
* optional string fsType = 2;
*/
public java.lang.String getFsType() {
java.lang.Object ref = fsType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
fsType_ = s;
}
return s;
}
}
/**
*
* Filesystem type of the volume that you want to mount.
* Tip: Ensure that the filesystem type is supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* TODO: how do we prevent errors in the filesystem from compromising the machine
* +optional
*
*
* optional string fsType = 2;
*/
public com.google.protobuf.ByteString
getFsTypeBytes() {
java.lang.Object ref = fsType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fsType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARTITION_FIELD_NUMBER = 3;
private int partition_;
/**
*
* The partition in the volume that you want to mount.
* If omitted, the default is to mount by volume name.
* Examples: For volume /dev/sda1, you specify the partition as "1".
* Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
* +optional
*
*
* optional int32 partition = 3;
*/
public boolean hasPartition() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* The partition in the volume that you want to mount.
* If omitted, the default is to mount by volume name.
* Examples: For volume /dev/sda1, you specify the partition as "1".
* Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
* +optional
*
*
* optional int32 partition = 3;
*/
public int getPartition() {
return partition_;
}
public static final int READONLY_FIELD_NUMBER = 4;
private boolean readOnly_;
/**
*
* Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
* If omitted, the default is "false".
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* +optional
*
*
* optional bool readOnly = 4;
*/
public boolean hasReadOnly() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
* If omitted, the default is "false".
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* +optional
*
*
* optional bool readOnly = 4;
*/
public boolean getReadOnly() {
return readOnly_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
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);
}
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);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents a Persistent Disk resource in AWS.
*
* An AWS EBS disk must exist before mounting to a container. The disk
* must also be in the same AWS zone as the kubelet. An AWS EBS disk
* can only be mounted as read/write once. AWS EBS volumes support
* ownership management and SELinux relabeling.
*
*
* Protobuf type {@code k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource)
io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AWSElasticBlockStoreVolumeSource_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AWSElasticBlockStoreVolumeSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.class, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
volumeID_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
fsType_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
partition_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
readOnly_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AWSElasticBlockStoreVolumeSource_descriptor;
}
public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource build() {
io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource buildPartial() {
io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource result = new io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.volumeID_ = volumeID_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.fsType_ = fsType_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.partition_ = partition_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.readOnly_ = readOnly_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource) {
return mergeFrom((io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource other) {
if (other == io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.getDefaultInstance()) return this;
if (other.hasVolumeID()) {
bitField0_ |= 0x00000001;
volumeID_ = other.volumeID_;
onChanged();
}
if (other.hasFsType()) {
bitField0_ |= 0x00000002;
fsType_ = other.fsType_;
onChanged();
}
if (other.hasPartition()) {
setPartition(other.getPartition());
}
if (other.hasReadOnly()) {
setReadOnly(other.getReadOnly());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object volumeID_ = "";
/**
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
*
* optional string volumeID = 1;
*/
public boolean hasVolumeID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
*
* optional string volumeID = 1;
*/
public java.lang.String getVolumeID() {
java.lang.Object ref = volumeID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
volumeID_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
*
* optional string volumeID = 1;
*/
public com.google.protobuf.ByteString
getVolumeIDBytes() {
java.lang.Object ref = volumeID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
volumeID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
*
* optional string volumeID = 1;
*/
public Builder setVolumeID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
volumeID_ = value;
onChanged();
return this;
}
/**
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
*
* optional string volumeID = 1;
*/
public Builder clearVolumeID() {
bitField0_ = (bitField0_ & ~0x00000001);
volumeID_ = getDefaultInstance().getVolumeID();
onChanged();
return this;
}
/**
*
* Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
*
*
* optional string volumeID = 1;
*/
public Builder setVolumeIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
volumeID_ = value;
onChanged();
return this;
}
private java.lang.Object fsType_ = "";
/**
*
* Filesystem type of the volume that you want to mount.
* Tip: Ensure that the filesystem type is supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* TODO: how do we prevent errors in the filesystem from compromising the machine
* +optional
*
*
* optional string fsType = 2;
*/
public boolean hasFsType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Filesystem type of the volume that you want to mount.
* Tip: Ensure that the filesystem type is supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* TODO: how do we prevent errors in the filesystem from compromising the machine
* +optional
*
*
* optional string fsType = 2;
*/
public java.lang.String getFsType() {
java.lang.Object ref = fsType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
fsType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Filesystem type of the volume that you want to mount.
* Tip: Ensure that the filesystem type is supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* TODO: how do we prevent errors in the filesystem from compromising the machine
* +optional
*
*
* optional string fsType = 2;
*/
public com.google.protobuf.ByteString
getFsTypeBytes() {
java.lang.Object ref = fsType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fsType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Filesystem type of the volume that you want to mount.
* Tip: Ensure that the filesystem type is supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* TODO: how do we prevent errors in the filesystem from compromising the machine
* +optional
*
*
* optional string fsType = 2;
*/
public Builder setFsType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
fsType_ = value;
onChanged();
return this;
}
/**
*
* Filesystem type of the volume that you want to mount.
* Tip: Ensure that the filesystem type is supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* TODO: how do we prevent errors in the filesystem from compromising the machine
* +optional
*
*
* optional string fsType = 2;
*/
public Builder clearFsType() {
bitField0_ = (bitField0_ & ~0x00000002);
fsType_ = getDefaultInstance().getFsType();
onChanged();
return this;
}
/**
*
* Filesystem type of the volume that you want to mount.
* Tip: Ensure that the filesystem type is supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* TODO: how do we prevent errors in the filesystem from compromising the machine
* +optional
*
*
* optional string fsType = 2;
*/
public Builder setFsTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
fsType_ = value;
onChanged();
return this;
}
private int partition_ ;
/**
*
* The partition in the volume that you want to mount.
* If omitted, the default is to mount by volume name.
* Examples: For volume /dev/sda1, you specify the partition as "1".
* Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
* +optional
*
*
* optional int32 partition = 3;
*/
public boolean hasPartition() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* The partition in the volume that you want to mount.
* If omitted, the default is to mount by volume name.
* Examples: For volume /dev/sda1, you specify the partition as "1".
* Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
* +optional
*
*
* optional int32 partition = 3;
*/
public int getPartition() {
return partition_;
}
/**
*
* The partition in the volume that you want to mount.
* If omitted, the default is to mount by volume name.
* Examples: For volume /dev/sda1, you specify the partition as "1".
* Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
* +optional
*
*
* optional int32 partition = 3;
*/
public Builder setPartition(int value) {
bitField0_ |= 0x00000004;
partition_ = value;
onChanged();
return this;
}
/**
*
* The partition in the volume that you want to mount.
* If omitted, the default is to mount by volume name.
* Examples: For volume /dev/sda1, you specify the partition as "1".
* Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
* +optional
*
*
* optional int32 partition = 3;
*/
public Builder clearPartition() {
bitField0_ = (bitField0_ & ~0x00000004);
partition_ = 0;
onChanged();
return this;
}
private boolean readOnly_ ;
/**
*
* Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
* If omitted, the default is "false".
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* +optional
*
*
* optional bool readOnly = 4;
*/
public boolean hasReadOnly() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
* If omitted, the default is "false".
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* +optional
*
*
* optional bool readOnly = 4;
*/
public boolean getReadOnly() {
return readOnly_;
}
/**
*
* Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
* If omitted, the default is "false".
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* +optional
*
*
* optional bool readOnly = 4;
*/
public Builder setReadOnly(boolean value) {
bitField0_ |= 0x00000008;
readOnly_ = value;
onChanged();
return this;
}
/**
*
* Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
* If omitted, the default is "false".
* More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
* +optional
*
*
* optional bool readOnly = 4;
*/
public Builder clearReadOnly() {
bitField0_ = (bitField0_ & ~0x00000008);
readOnly_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
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;
}
public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AffinityOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Affinity)
com.google.protobuf.MessageOrBuilder {
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
boolean hasNodeAffinity();
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
io.kubernetes.client.proto.V1.NodeAffinity getNodeAffinity();
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
io.kubernetes.client.proto.V1.NodeAffinityOrBuilder getNodeAffinityOrBuilder();
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
boolean hasPodAffinity();
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
io.kubernetes.client.proto.V1.PodAffinity getPodAffinity();
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
io.kubernetes.client.proto.V1.PodAffinityOrBuilder getPodAffinityOrBuilder();
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
boolean hasPodAntiAffinity();
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
io.kubernetes.client.proto.V1.PodAntiAffinity getPodAntiAffinity();
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
io.kubernetes.client.proto.V1.PodAntiAffinityOrBuilder getPodAntiAffinityOrBuilder();
}
/**
*
* Affinity is a group of affinity scheduling rules.
*
*
* Protobuf type {@code k8s.io.api.core.v1.Affinity}
*/
public static final class Affinity extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Affinity)
AffinityOrBuilder {
private static final long serialVersionUID = 0L;
// Use Affinity.newBuilder() to construct.
private Affinity(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Affinity() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Affinity(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
io.kubernetes.client.proto.V1.NodeAffinity.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = nodeAffinity_.toBuilder();
}
nodeAffinity_ = input.readMessage(io.kubernetes.client.proto.V1.NodeAffinity.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nodeAffinity_);
nodeAffinity_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
io.kubernetes.client.proto.V1.PodAffinity.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = podAffinity_.toBuilder();
}
podAffinity_ = input.readMessage(io.kubernetes.client.proto.V1.PodAffinity.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(podAffinity_);
podAffinity_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
io.kubernetes.client.proto.V1.PodAntiAffinity.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = podAntiAffinity_.toBuilder();
}
podAntiAffinity_ = input.readMessage(io.kubernetes.client.proto.V1.PodAntiAffinity.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(podAntiAffinity_);
podAntiAffinity_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Affinity_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Affinity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.Affinity.class, io.kubernetes.client.proto.V1.Affinity.Builder.class);
}
private int bitField0_;
public static final int NODEAFFINITY_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.V1.NodeAffinity nodeAffinity_;
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
public boolean hasNodeAffinity() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
public io.kubernetes.client.proto.V1.NodeAffinity getNodeAffinity() {
return nodeAffinity_ == null ? io.kubernetes.client.proto.V1.NodeAffinity.getDefaultInstance() : nodeAffinity_;
}
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
public io.kubernetes.client.proto.V1.NodeAffinityOrBuilder getNodeAffinityOrBuilder() {
return nodeAffinity_ == null ? io.kubernetes.client.proto.V1.NodeAffinity.getDefaultInstance() : nodeAffinity_;
}
public static final int PODAFFINITY_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1.PodAffinity podAffinity_;
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
public boolean hasPodAffinity() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
public io.kubernetes.client.proto.V1.PodAffinity getPodAffinity() {
return podAffinity_ == null ? io.kubernetes.client.proto.V1.PodAffinity.getDefaultInstance() : podAffinity_;
}
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
public io.kubernetes.client.proto.V1.PodAffinityOrBuilder getPodAffinityOrBuilder() {
return podAffinity_ == null ? io.kubernetes.client.proto.V1.PodAffinity.getDefaultInstance() : podAffinity_;
}
public static final int PODANTIAFFINITY_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1.PodAntiAffinity podAntiAffinity_;
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
public boolean hasPodAntiAffinity() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
public io.kubernetes.client.proto.V1.PodAntiAffinity getPodAntiAffinity() {
return podAntiAffinity_ == null ? io.kubernetes.client.proto.V1.PodAntiAffinity.getDefaultInstance() : podAntiAffinity_;
}
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
public io.kubernetes.client.proto.V1.PodAntiAffinityOrBuilder getPodAntiAffinityOrBuilder() {
return podAntiAffinity_ == null ? io.kubernetes.client.proto.V1.PodAntiAffinity.getDefaultInstance() : podAntiAffinity_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getNodeAffinity());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getPodAffinity());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getPodAntiAffinity());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getNodeAffinity());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPodAffinity());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPodAntiAffinity());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.Affinity)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.Affinity other = (io.kubernetes.client.proto.V1.Affinity) obj;
boolean result = true;
result = result && (hasNodeAffinity() == other.hasNodeAffinity());
if (hasNodeAffinity()) {
result = result && getNodeAffinity()
.equals(other.getNodeAffinity());
}
result = result && (hasPodAffinity() == other.hasPodAffinity());
if (hasPodAffinity()) {
result = result && getPodAffinity()
.equals(other.getPodAffinity());
}
result = result && (hasPodAntiAffinity() == other.hasPodAntiAffinity());
if (hasPodAntiAffinity()) {
result = result && getPodAntiAffinity()
.equals(other.getPodAntiAffinity());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasNodeAffinity()) {
hash = (37 * hash) + NODEAFFINITY_FIELD_NUMBER;
hash = (53 * hash) + getNodeAffinity().hashCode();
}
if (hasPodAffinity()) {
hash = (37 * hash) + PODAFFINITY_FIELD_NUMBER;
hash = (53 * hash) + getPodAffinity().hashCode();
}
if (hasPodAntiAffinity()) {
hash = (37 * hash) + PODANTIAFFINITY_FIELD_NUMBER;
hash = (53 * hash) + getPodAntiAffinity().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.Affinity parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.Affinity parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Affinity parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.Affinity parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Affinity parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.Affinity parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Affinity parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.Affinity parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Affinity parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.Affinity parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Affinity parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.Affinity parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.Affinity prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Affinity is a group of affinity scheduling rules.
*
*
* Protobuf type {@code k8s.io.api.core.v1.Affinity}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Affinity)
io.kubernetes.client.proto.V1.AffinityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Affinity_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Affinity_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.Affinity.class, io.kubernetes.client.proto.V1.Affinity.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.Affinity.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNodeAffinityFieldBuilder();
getPodAffinityFieldBuilder();
getPodAntiAffinityFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (nodeAffinityBuilder_ == null) {
nodeAffinity_ = null;
} else {
nodeAffinityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (podAffinityBuilder_ == null) {
podAffinity_ = null;
} else {
podAffinityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (podAntiAffinityBuilder_ == null) {
podAntiAffinity_ = null;
} else {
podAntiAffinityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Affinity_descriptor;
}
public io.kubernetes.client.proto.V1.Affinity getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.Affinity.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.Affinity build() {
io.kubernetes.client.proto.V1.Affinity result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.Affinity buildPartial() {
io.kubernetes.client.proto.V1.Affinity result = new io.kubernetes.client.proto.V1.Affinity(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (nodeAffinityBuilder_ == null) {
result.nodeAffinity_ = nodeAffinity_;
} else {
result.nodeAffinity_ = nodeAffinityBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (podAffinityBuilder_ == null) {
result.podAffinity_ = podAffinity_;
} else {
result.podAffinity_ = podAffinityBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (podAntiAffinityBuilder_ == null) {
result.podAntiAffinity_ = podAntiAffinity_;
} else {
result.podAntiAffinity_ = podAntiAffinityBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.Affinity) {
return mergeFrom((io.kubernetes.client.proto.V1.Affinity)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.Affinity other) {
if (other == io.kubernetes.client.proto.V1.Affinity.getDefaultInstance()) return this;
if (other.hasNodeAffinity()) {
mergeNodeAffinity(other.getNodeAffinity());
}
if (other.hasPodAffinity()) {
mergePodAffinity(other.getPodAffinity());
}
if (other.hasPodAntiAffinity()) {
mergePodAntiAffinity(other.getPodAntiAffinity());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.Affinity parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.Affinity) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.V1.NodeAffinity nodeAffinity_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.NodeAffinity, io.kubernetes.client.proto.V1.NodeAffinity.Builder, io.kubernetes.client.proto.V1.NodeAffinityOrBuilder> nodeAffinityBuilder_;
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
public boolean hasNodeAffinity() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
public io.kubernetes.client.proto.V1.NodeAffinity getNodeAffinity() {
if (nodeAffinityBuilder_ == null) {
return nodeAffinity_ == null ? io.kubernetes.client.proto.V1.NodeAffinity.getDefaultInstance() : nodeAffinity_;
} else {
return nodeAffinityBuilder_.getMessage();
}
}
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
public Builder setNodeAffinity(io.kubernetes.client.proto.V1.NodeAffinity value) {
if (nodeAffinityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeAffinity_ = value;
onChanged();
} else {
nodeAffinityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
public Builder setNodeAffinity(
io.kubernetes.client.proto.V1.NodeAffinity.Builder builderForValue) {
if (nodeAffinityBuilder_ == null) {
nodeAffinity_ = builderForValue.build();
onChanged();
} else {
nodeAffinityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
public Builder mergeNodeAffinity(io.kubernetes.client.proto.V1.NodeAffinity value) {
if (nodeAffinityBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
nodeAffinity_ != null &&
nodeAffinity_ != io.kubernetes.client.proto.V1.NodeAffinity.getDefaultInstance()) {
nodeAffinity_ =
io.kubernetes.client.proto.V1.NodeAffinity.newBuilder(nodeAffinity_).mergeFrom(value).buildPartial();
} else {
nodeAffinity_ = value;
}
onChanged();
} else {
nodeAffinityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
public Builder clearNodeAffinity() {
if (nodeAffinityBuilder_ == null) {
nodeAffinity_ = null;
onChanged();
} else {
nodeAffinityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
public io.kubernetes.client.proto.V1.NodeAffinity.Builder getNodeAffinityBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getNodeAffinityFieldBuilder().getBuilder();
}
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
public io.kubernetes.client.proto.V1.NodeAffinityOrBuilder getNodeAffinityOrBuilder() {
if (nodeAffinityBuilder_ != null) {
return nodeAffinityBuilder_.getMessageOrBuilder();
} else {
return nodeAffinity_ == null ?
io.kubernetes.client.proto.V1.NodeAffinity.getDefaultInstance() : nodeAffinity_;
}
}
/**
*
* Describes node affinity scheduling rules for the pod.
* +optional
*
*
* optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.NodeAffinity, io.kubernetes.client.proto.V1.NodeAffinity.Builder, io.kubernetes.client.proto.V1.NodeAffinityOrBuilder>
getNodeAffinityFieldBuilder() {
if (nodeAffinityBuilder_ == null) {
nodeAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.NodeAffinity, io.kubernetes.client.proto.V1.NodeAffinity.Builder, io.kubernetes.client.proto.V1.NodeAffinityOrBuilder>(
getNodeAffinity(),
getParentForChildren(),
isClean());
nodeAffinity_ = null;
}
return nodeAffinityBuilder_;
}
private io.kubernetes.client.proto.V1.PodAffinity podAffinity_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.PodAffinity, io.kubernetes.client.proto.V1.PodAffinity.Builder, io.kubernetes.client.proto.V1.PodAffinityOrBuilder> podAffinityBuilder_;
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
public boolean hasPodAffinity() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
public io.kubernetes.client.proto.V1.PodAffinity getPodAffinity() {
if (podAffinityBuilder_ == null) {
return podAffinity_ == null ? io.kubernetes.client.proto.V1.PodAffinity.getDefaultInstance() : podAffinity_;
} else {
return podAffinityBuilder_.getMessage();
}
}
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
public Builder setPodAffinity(io.kubernetes.client.proto.V1.PodAffinity value) {
if (podAffinityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
podAffinity_ = value;
onChanged();
} else {
podAffinityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
public Builder setPodAffinity(
io.kubernetes.client.proto.V1.PodAffinity.Builder builderForValue) {
if (podAffinityBuilder_ == null) {
podAffinity_ = builderForValue.build();
onChanged();
} else {
podAffinityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
public Builder mergePodAffinity(io.kubernetes.client.proto.V1.PodAffinity value) {
if (podAffinityBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
podAffinity_ != null &&
podAffinity_ != io.kubernetes.client.proto.V1.PodAffinity.getDefaultInstance()) {
podAffinity_ =
io.kubernetes.client.proto.V1.PodAffinity.newBuilder(podAffinity_).mergeFrom(value).buildPartial();
} else {
podAffinity_ = value;
}
onChanged();
} else {
podAffinityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
public Builder clearPodAffinity() {
if (podAffinityBuilder_ == null) {
podAffinity_ = null;
onChanged();
} else {
podAffinityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
public io.kubernetes.client.proto.V1.PodAffinity.Builder getPodAffinityBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getPodAffinityFieldBuilder().getBuilder();
}
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
public io.kubernetes.client.proto.V1.PodAffinityOrBuilder getPodAffinityOrBuilder() {
if (podAffinityBuilder_ != null) {
return podAffinityBuilder_.getMessageOrBuilder();
} else {
return podAffinity_ == null ?
io.kubernetes.client.proto.V1.PodAffinity.getDefaultInstance() : podAffinity_;
}
}
/**
*
* Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.PodAffinity, io.kubernetes.client.proto.V1.PodAffinity.Builder, io.kubernetes.client.proto.V1.PodAffinityOrBuilder>
getPodAffinityFieldBuilder() {
if (podAffinityBuilder_ == null) {
podAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.PodAffinity, io.kubernetes.client.proto.V1.PodAffinity.Builder, io.kubernetes.client.proto.V1.PodAffinityOrBuilder>(
getPodAffinity(),
getParentForChildren(),
isClean());
podAffinity_ = null;
}
return podAffinityBuilder_;
}
private io.kubernetes.client.proto.V1.PodAntiAffinity podAntiAffinity_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.PodAntiAffinity, io.kubernetes.client.proto.V1.PodAntiAffinity.Builder, io.kubernetes.client.proto.V1.PodAntiAffinityOrBuilder> podAntiAffinityBuilder_;
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
public boolean hasPodAntiAffinity() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
public io.kubernetes.client.proto.V1.PodAntiAffinity getPodAntiAffinity() {
if (podAntiAffinityBuilder_ == null) {
return podAntiAffinity_ == null ? io.kubernetes.client.proto.V1.PodAntiAffinity.getDefaultInstance() : podAntiAffinity_;
} else {
return podAntiAffinityBuilder_.getMessage();
}
}
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
public Builder setPodAntiAffinity(io.kubernetes.client.proto.V1.PodAntiAffinity value) {
if (podAntiAffinityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
podAntiAffinity_ = value;
onChanged();
} else {
podAntiAffinityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
public Builder setPodAntiAffinity(
io.kubernetes.client.proto.V1.PodAntiAffinity.Builder builderForValue) {
if (podAntiAffinityBuilder_ == null) {
podAntiAffinity_ = builderForValue.build();
onChanged();
} else {
podAntiAffinityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
public Builder mergePodAntiAffinity(io.kubernetes.client.proto.V1.PodAntiAffinity value) {
if (podAntiAffinityBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
podAntiAffinity_ != null &&
podAntiAffinity_ != io.kubernetes.client.proto.V1.PodAntiAffinity.getDefaultInstance()) {
podAntiAffinity_ =
io.kubernetes.client.proto.V1.PodAntiAffinity.newBuilder(podAntiAffinity_).mergeFrom(value).buildPartial();
} else {
podAntiAffinity_ = value;
}
onChanged();
} else {
podAntiAffinityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
public Builder clearPodAntiAffinity() {
if (podAntiAffinityBuilder_ == null) {
podAntiAffinity_ = null;
onChanged();
} else {
podAntiAffinityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
public io.kubernetes.client.proto.V1.PodAntiAffinity.Builder getPodAntiAffinityBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getPodAntiAffinityFieldBuilder().getBuilder();
}
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
public io.kubernetes.client.proto.V1.PodAntiAffinityOrBuilder getPodAntiAffinityOrBuilder() {
if (podAntiAffinityBuilder_ != null) {
return podAntiAffinityBuilder_.getMessageOrBuilder();
} else {
return podAntiAffinity_ == null ?
io.kubernetes.client.proto.V1.PodAntiAffinity.getDefaultInstance() : podAntiAffinity_;
}
}
/**
*
* Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
* +optional
*
*
* optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.PodAntiAffinity, io.kubernetes.client.proto.V1.PodAntiAffinity.Builder, io.kubernetes.client.proto.V1.PodAntiAffinityOrBuilder>
getPodAntiAffinityFieldBuilder() {
if (podAntiAffinityBuilder_ == null) {
podAntiAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.PodAntiAffinity, io.kubernetes.client.proto.V1.PodAntiAffinity.Builder, io.kubernetes.client.proto.V1.PodAntiAffinityOrBuilder>(
getPodAntiAffinity(),
getParentForChildren(),
isClean());
podAntiAffinity_ = null;
}
return podAntiAffinityBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.Affinity)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Affinity)
private static final io.kubernetes.client.proto.V1.Affinity DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Affinity();
}
public static io.kubernetes.client.proto.V1.Affinity getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Affinity parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Affinity(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.Affinity getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttachedVolumeOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.AttachedVolume)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the attached volume
*
*
* optional string name = 1;
*/
boolean hasName();
/**
*
* Name of the attached volume
*
*
* optional string name = 1;
*/
java.lang.String getName();
/**
*
* Name of the attached volume
*
*
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* DevicePath represents the device path where the volume should be available
*
*
* optional string devicePath = 2;
*/
boolean hasDevicePath();
/**
*
* DevicePath represents the device path where the volume should be available
*
*
* optional string devicePath = 2;
*/
java.lang.String getDevicePath();
/**
*
* DevicePath represents the device path where the volume should be available
*
*
* optional string devicePath = 2;
*/
com.google.protobuf.ByteString
getDevicePathBytes();
}
/**
*
* AttachedVolume describes a volume attached to a node
*
*
* Protobuf type {@code k8s.io.api.core.v1.AttachedVolume}
*/
public static final class AttachedVolume extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.AttachedVolume)
AttachedVolumeOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttachedVolume.newBuilder() to construct.
private AttachedVolume(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttachedVolume() {
name_ = "";
devicePath_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AttachedVolume(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
devicePath_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AttachedVolume_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AttachedVolume_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.AttachedVolume.class, io.kubernetes.client.proto.V1.AttachedVolume.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of the attached volume
*
*
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Name of the attached volume
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* Name of the attached volume
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEVICEPATH_FIELD_NUMBER = 2;
private volatile java.lang.Object devicePath_;
/**
*
* DevicePath represents the device path where the volume should be available
*
*
* optional string devicePath = 2;
*/
public boolean hasDevicePath() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* DevicePath represents the device path where the volume should be available
*
*
* optional string devicePath = 2;
*/
public java.lang.String getDevicePath() {
java.lang.Object ref = devicePath_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
devicePath_ = s;
}
return s;
}
}
/**
*
* DevicePath represents the device path where the volume should be available
*
*
* optional string devicePath = 2;
*/
public com.google.protobuf.ByteString
getDevicePathBytes() {
java.lang.Object ref = devicePath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
devicePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, devicePath_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, devicePath_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.AttachedVolume)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.AttachedVolume other = (io.kubernetes.client.proto.V1.AttachedVolume) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasDevicePath() == other.hasDevicePath());
if (hasDevicePath()) {
result = result && getDevicePath()
.equals(other.getDevicePath());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasDevicePath()) {
hash = (37 * hash) + DEVICEPATH_FIELD_NUMBER;
hash = (53 * hash) + getDevicePath().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.AttachedVolume parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.AttachedVolume parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.AttachedVolume parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.AttachedVolume parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.AttachedVolume parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.AttachedVolume parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.AttachedVolume parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.AttachedVolume parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.AttachedVolume parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.AttachedVolume parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.AttachedVolume parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.AttachedVolume parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.AttachedVolume prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* AttachedVolume describes a volume attached to a node
*
*
* Protobuf type {@code k8s.io.api.core.v1.AttachedVolume}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.AttachedVolume)
io.kubernetes.client.proto.V1.AttachedVolumeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AttachedVolume_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AttachedVolume_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.AttachedVolume.class, io.kubernetes.client.proto.V1.AttachedVolume.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.AttachedVolume.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
devicePath_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AttachedVolume_descriptor;
}
public io.kubernetes.client.proto.V1.AttachedVolume getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.AttachedVolume.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.AttachedVolume build() {
io.kubernetes.client.proto.V1.AttachedVolume result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.AttachedVolume buildPartial() {
io.kubernetes.client.proto.V1.AttachedVolume result = new io.kubernetes.client.proto.V1.AttachedVolume(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.devicePath_ = devicePath_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.AttachedVolume) {
return mergeFrom((io.kubernetes.client.proto.V1.AttachedVolume)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.AttachedVolume other) {
if (other == io.kubernetes.client.proto.V1.AttachedVolume.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasDevicePath()) {
bitField0_ |= 0x00000002;
devicePath_ = other.devicePath_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.AttachedVolume parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.AttachedVolume) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of the attached volume
*
*
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Name of the attached volume
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the attached volume
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the attached volume
*
*
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the attached volume
*
*
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the attached volume
*
*
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object devicePath_ = "";
/**
*
* DevicePath represents the device path where the volume should be available
*
*
* optional string devicePath = 2;
*/
public boolean hasDevicePath() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* DevicePath represents the device path where the volume should be available
*
*
* optional string devicePath = 2;
*/
public java.lang.String getDevicePath() {
java.lang.Object ref = devicePath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
devicePath_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* DevicePath represents the device path where the volume should be available
*
*
* optional string devicePath = 2;
*/
public com.google.protobuf.ByteString
getDevicePathBytes() {
java.lang.Object ref = devicePath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
devicePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* DevicePath represents the device path where the volume should be available
*
*
* optional string devicePath = 2;
*/
public Builder setDevicePath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
devicePath_ = value;
onChanged();
return this;
}
/**
*
* DevicePath represents the device path where the volume should be available
*
*
* optional string devicePath = 2;
*/
public Builder clearDevicePath() {
bitField0_ = (bitField0_ & ~0x00000002);
devicePath_ = getDefaultInstance().getDevicePath();
onChanged();
return this;
}
/**
*
* DevicePath represents the device path where the volume should be available
*
*
* optional string devicePath = 2;
*/
public Builder setDevicePathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
devicePath_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
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;
}
public io.kubernetes.client.proto.V1.AttachedVolume getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AvoidPodsOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.AvoidPods)
com.google.protobuf.MessageOrBuilder {
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
java.util.List
getPreferAvoidPodsList();
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
io.kubernetes.client.proto.V1.PreferAvoidPodsEntry getPreferAvoidPods(int index);
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
int getPreferAvoidPodsCount();
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
java.util.List extends io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder>
getPreferAvoidPodsOrBuilderList();
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder getPreferAvoidPodsOrBuilder(
int index);
}
/**
*
* AvoidPods describes pods that should avoid this node. This is the value for a
* Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and
* will eventually become a field of NodeStatus.
*
*
* Protobuf type {@code k8s.io.api.core.v1.AvoidPods}
*/
public static final class AvoidPods extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.AvoidPods)
AvoidPodsOrBuilder {
private static final long serialVersionUID = 0L;
// Use AvoidPods.newBuilder() to construct.
private AvoidPods(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AvoidPods() {
preferAvoidPods_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AvoidPods(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
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;
}
}
}
} catch (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;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AvoidPods_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.AvoidPods.class, io.kubernetes.client.proto.V1.AvoidPods.Builder.class);
}
public static final int PREFERAVOIDPODS_FIELD_NUMBER = 1;
private java.util.List preferAvoidPods_;
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public java.util.List getPreferAvoidPodsList() {
return preferAvoidPods_;
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public java.util.List extends io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder>
getPreferAvoidPodsOrBuilderList() {
return preferAvoidPods_;
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public int getPreferAvoidPodsCount() {
return preferAvoidPods_.size();
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public io.kubernetes.client.proto.V1.PreferAvoidPodsEntry getPreferAvoidPods(int index) {
return preferAvoidPods_.get(index);
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder getPreferAvoidPodsOrBuilder(
int index) {
return preferAvoidPods_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
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);
}
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);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* AvoidPods describes pods that should avoid this node. This is the value for a
* Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and
* will eventually become a field of NodeStatus.
*
*
* Protobuf type {@code k8s.io.api.core.v1.AvoidPods}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.AvoidPods)
io.kubernetes.client.proto.V1.AvoidPodsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AvoidPods_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AvoidPods_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.AvoidPods.class, io.kubernetes.client.proto.V1.AvoidPods.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.AvoidPods.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPreferAvoidPodsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (preferAvoidPodsBuilder_ == null) {
preferAvoidPods_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
preferAvoidPodsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AvoidPods_descriptor;
}
public io.kubernetes.client.proto.V1.AvoidPods getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.AvoidPods.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.AvoidPods build() {
io.kubernetes.client.proto.V1.AvoidPods result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.AvoidPods buildPartial() {
io.kubernetes.client.proto.V1.AvoidPods result = new io.kubernetes.client.proto.V1.AvoidPods(this);
int from_bitField0_ = bitField0_;
if (preferAvoidPodsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
preferAvoidPods_ = java.util.Collections.unmodifiableList(preferAvoidPods_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.preferAvoidPods_ = preferAvoidPods_;
} else {
result.preferAvoidPods_ = preferAvoidPodsBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.AvoidPods) {
return mergeFrom((io.kubernetes.client.proto.V1.AvoidPods)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.AvoidPods other) {
if (other == io.kubernetes.client.proto.V1.AvoidPods.getDefaultInstance()) return this;
if (preferAvoidPodsBuilder_ == null) {
if (!other.preferAvoidPods_.isEmpty()) {
if (preferAvoidPods_.isEmpty()) {
preferAvoidPods_ = other.preferAvoidPods_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePreferAvoidPodsIsMutable();
preferAvoidPods_.addAll(other.preferAvoidPods_);
}
onChanged();
}
} else {
if (!other.preferAvoidPods_.isEmpty()) {
if (preferAvoidPodsBuilder_.isEmpty()) {
preferAvoidPodsBuilder_.dispose();
preferAvoidPodsBuilder_ = null;
preferAvoidPods_ = other.preferAvoidPods_;
bitField0_ = (bitField0_ & ~0x00000001);
preferAvoidPodsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPreferAvoidPodsFieldBuilder() : null;
} else {
preferAvoidPodsBuilder_.addAllMessages(other.preferAvoidPods_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.AvoidPods parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.AvoidPods) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List preferAvoidPods_ =
java.util.Collections.emptyList();
private void ensurePreferAvoidPodsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
preferAvoidPods_ = new java.util.ArrayList(preferAvoidPods_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.PreferAvoidPodsEntry, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder, io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder> preferAvoidPodsBuilder_;
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public java.util.List getPreferAvoidPodsList() {
if (preferAvoidPodsBuilder_ == null) {
return java.util.Collections.unmodifiableList(preferAvoidPods_);
} else {
return preferAvoidPodsBuilder_.getMessageList();
}
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public int getPreferAvoidPodsCount() {
if (preferAvoidPodsBuilder_ == null) {
return preferAvoidPods_.size();
} else {
return preferAvoidPodsBuilder_.getCount();
}
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public io.kubernetes.client.proto.V1.PreferAvoidPodsEntry getPreferAvoidPods(int index) {
if (preferAvoidPodsBuilder_ == null) {
return preferAvoidPods_.get(index);
} else {
return preferAvoidPodsBuilder_.getMessage(index);
}
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public Builder setPreferAvoidPods(
int index, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry value) {
if (preferAvoidPodsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePreferAvoidPodsIsMutable();
preferAvoidPods_.set(index, value);
onChanged();
} else {
preferAvoidPodsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public Builder setPreferAvoidPods(
int index, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder builderForValue) {
if (preferAvoidPodsBuilder_ == null) {
ensurePreferAvoidPodsIsMutable();
preferAvoidPods_.set(index, builderForValue.build());
onChanged();
} else {
preferAvoidPodsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public Builder addPreferAvoidPods(io.kubernetes.client.proto.V1.PreferAvoidPodsEntry value) {
if (preferAvoidPodsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePreferAvoidPodsIsMutable();
preferAvoidPods_.add(value);
onChanged();
} else {
preferAvoidPodsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public Builder addPreferAvoidPods(
int index, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry value) {
if (preferAvoidPodsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePreferAvoidPodsIsMutable();
preferAvoidPods_.add(index, value);
onChanged();
} else {
preferAvoidPodsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public Builder addPreferAvoidPods(
io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder builderForValue) {
if (preferAvoidPodsBuilder_ == null) {
ensurePreferAvoidPodsIsMutable();
preferAvoidPods_.add(builderForValue.build());
onChanged();
} else {
preferAvoidPodsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public Builder addPreferAvoidPods(
int index, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder builderForValue) {
if (preferAvoidPodsBuilder_ == null) {
ensurePreferAvoidPodsIsMutable();
preferAvoidPods_.add(index, builderForValue.build());
onChanged();
} else {
preferAvoidPodsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public Builder addAllPreferAvoidPods(
java.lang.Iterable extends io.kubernetes.client.proto.V1.PreferAvoidPodsEntry> values) {
if (preferAvoidPodsBuilder_ == null) {
ensurePreferAvoidPodsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preferAvoidPods_);
onChanged();
} else {
preferAvoidPodsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public Builder clearPreferAvoidPods() {
if (preferAvoidPodsBuilder_ == null) {
preferAvoidPods_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
preferAvoidPodsBuilder_.clear();
}
return this;
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public Builder removePreferAvoidPods(int index) {
if (preferAvoidPodsBuilder_ == null) {
ensurePreferAvoidPodsIsMutable();
preferAvoidPods_.remove(index);
onChanged();
} else {
preferAvoidPodsBuilder_.remove(index);
}
return this;
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder getPreferAvoidPodsBuilder(
int index) {
return getPreferAvoidPodsFieldBuilder().getBuilder(index);
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder getPreferAvoidPodsOrBuilder(
int index) {
if (preferAvoidPodsBuilder_ == null) {
return preferAvoidPods_.get(index); } else {
return preferAvoidPodsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public java.util.List extends io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder>
getPreferAvoidPodsOrBuilderList() {
if (preferAvoidPodsBuilder_ != null) {
return preferAvoidPodsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(preferAvoidPods_);
}
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder addPreferAvoidPodsBuilder() {
return getPreferAvoidPodsFieldBuilder().addBuilder(
io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.getDefaultInstance());
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder addPreferAvoidPodsBuilder(
int index) {
return getPreferAvoidPodsFieldBuilder().addBuilder(
index, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.getDefaultInstance());
}
/**
*
* Bounded-sized list of signatures of pods that should avoid this node, sorted
* in timestamp order from oldest to newest. Size of the slice is unspecified.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1;
*/
public java.util.List
getPreferAvoidPodsBuilderList() {
return getPreferAvoidPodsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.PreferAvoidPodsEntry, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder, io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder>
getPreferAvoidPodsFieldBuilder() {
if (preferAvoidPodsBuilder_ == null) {
preferAvoidPodsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.PreferAvoidPodsEntry, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder, io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder>(
preferAvoidPods_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
preferAvoidPods_ = null;
}
return preferAvoidPodsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
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;
}
public io.kubernetes.client.proto.V1.AvoidPods getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AzureDiskVolumeSourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.AzureDiskVolumeSource)
com.google.protobuf.MessageOrBuilder {
/**
*
* The Name of the data disk in the blob storage
*
*
* optional string diskName = 1;
*/
boolean hasDiskName();
/**
*
* The Name of the data disk in the blob storage
*
*
* optional string diskName = 1;
*/
java.lang.String getDiskName();
/**
*
* The Name of the data disk in the blob storage
*
*
* optional string diskName = 1;
*/
com.google.protobuf.ByteString
getDiskNameBytes();
/**
*
* The URI the data disk in the blob storage
*
*
* optional string diskURI = 2;
*/
boolean hasDiskURI();
/**
*
* The URI the data disk in the blob storage
*
*
* optional string diskURI = 2;
*/
java.lang.String getDiskURI();
/**
*
* The URI the data disk in the blob storage
*
*
* optional string diskURI = 2;
*/
com.google.protobuf.ByteString
getDiskURIBytes();
/**
*
* Host Caching mode: None, Read Only, Read Write.
* +optional
*
*
* optional string cachingMode = 3;
*/
boolean hasCachingMode();
/**
*
* Host Caching mode: None, Read Only, Read Write.
* +optional
*
*
* optional string cachingMode = 3;
*/
java.lang.String getCachingMode();
/**
*
* Host Caching mode: None, Read Only, Read Write.
* +optional
*
*
* optional string cachingMode = 3;
*/
com.google.protobuf.ByteString
getCachingModeBytes();
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* +optional
*
*
* optional string fsType = 4;
*/
boolean hasFsType();
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* +optional
*
*
* optional string fsType = 4;
*/
java.lang.String getFsType();
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* +optional
*
*
* optional string fsType = 4;
*/
com.google.protobuf.ByteString
getFsTypeBytes();
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 5;
*/
boolean hasReadOnly();
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 5;
*/
boolean getReadOnly();
/**
*
* Expected values Shared: mulitple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
*
*
* optional string kind = 6;
*/
boolean hasKind();
/**
*
* Expected values Shared: mulitple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
*
*
* optional string kind = 6;
*/
java.lang.String getKind();
/**
*
* Expected values Shared: mulitple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
*
*
* optional string kind = 6;
*/
com.google.protobuf.ByteString
getKindBytes();
}
/**
*
* AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
*
*
* Protobuf type {@code k8s.io.api.core.v1.AzureDiskVolumeSource}
*/
public static final class AzureDiskVolumeSource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.AzureDiskVolumeSource)
AzureDiskVolumeSourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use AzureDiskVolumeSource.newBuilder() to construct.
private AzureDiskVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AzureDiskVolumeSource() {
diskName_ = "";
diskURI_ = "";
cachingMode_ = "";
fsType_ = "";
readOnly_ = false;
kind_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AzureDiskVolumeSource(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
diskName_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
diskURI_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
cachingMode_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
fsType_ = bs;
break;
}
case 40: {
bitField0_ |= 0x00000010;
readOnly_ = input.readBool();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
kind_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.AzureDiskVolumeSource.class, io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder.class);
}
private int bitField0_;
public static final int DISKNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object diskName_;
/**
*
* The Name of the data disk in the blob storage
*
*
* optional string diskName = 1;
*/
public boolean hasDiskName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* The Name of the data disk in the blob storage
*
*
* optional string diskName = 1;
*/
public java.lang.String getDiskName() {
java.lang.Object ref = diskName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
diskName_ = s;
}
return s;
}
}
/**
*
* The Name of the data disk in the blob storage
*
*
* optional string diskName = 1;
*/
public com.google.protobuf.ByteString
getDiskNameBytes() {
java.lang.Object ref = diskName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diskName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISKURI_FIELD_NUMBER = 2;
private volatile java.lang.Object diskURI_;
/**
*
* The URI the data disk in the blob storage
*
*
* optional string diskURI = 2;
*/
public boolean hasDiskURI() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* The URI the data disk in the blob storage
*
*
* optional string diskURI = 2;
*/
public java.lang.String getDiskURI() {
java.lang.Object ref = diskURI_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
diskURI_ = s;
}
return s;
}
}
/**
*
* The URI the data disk in the blob storage
*
*
* optional string diskURI = 2;
*/
public com.google.protobuf.ByteString
getDiskURIBytes() {
java.lang.Object ref = diskURI_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diskURI_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CACHINGMODE_FIELD_NUMBER = 3;
private volatile java.lang.Object cachingMode_;
/**
*
* Host Caching mode: None, Read Only, Read Write.
* +optional
*
*
* optional string cachingMode = 3;
*/
public boolean hasCachingMode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Host Caching mode: None, Read Only, Read Write.
* +optional
*
*
* optional string cachingMode = 3;
*/
public java.lang.String getCachingMode() {
java.lang.Object ref = cachingMode_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
cachingMode_ = s;
}
return s;
}
}
/**
*
* Host Caching mode: None, Read Only, Read Write.
* +optional
*
*
* optional string cachingMode = 3;
*/
public com.google.protobuf.ByteString
getCachingModeBytes() {
java.lang.Object ref = cachingMode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cachingMode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FSTYPE_FIELD_NUMBER = 4;
private volatile java.lang.Object fsType_;
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* +optional
*
*
* optional string fsType = 4;
*/
public boolean hasFsType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* +optional
*
*
* optional string fsType = 4;
*/
public java.lang.String getFsType() {
java.lang.Object ref = fsType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
fsType_ = s;
}
return s;
}
}
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* +optional
*
*
* optional string fsType = 4;
*/
public com.google.protobuf.ByteString
getFsTypeBytes() {
java.lang.Object ref = fsType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fsType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int READONLY_FIELD_NUMBER = 5;
private boolean readOnly_;
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 5;
*/
public boolean hasReadOnly() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 5;
*/
public boolean getReadOnly() {
return readOnly_;
}
public static final int KIND_FIELD_NUMBER = 6;
private volatile java.lang.Object kind_;
/**
*
* Expected values Shared: mulitple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
*
*
* optional string kind = 6;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
* Expected values Shared: mulitple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
*
*
* optional string kind = 6;
*/
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
kind_ = s;
}
return s;
}
}
/**
*
* Expected values Shared: mulitple 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;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
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);
}
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);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
*
*
* Protobuf type {@code k8s.io.api.core.v1.AzureDiskVolumeSource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.AzureDiskVolumeSource)
io.kubernetes.client.proto.V1.AzureDiskVolumeSourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.AzureDiskVolumeSource.class, io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.AzureDiskVolumeSource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
diskName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
diskURI_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
cachingMode_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
fsType_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
readOnly_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
kind_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_descriptor;
}
public io.kubernetes.client.proto.V1.AzureDiskVolumeSource getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.AzureDiskVolumeSource.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.AzureDiskVolumeSource build() {
io.kubernetes.client.proto.V1.AzureDiskVolumeSource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.AzureDiskVolumeSource buildPartial() {
io.kubernetes.client.proto.V1.AzureDiskVolumeSource result = new io.kubernetes.client.proto.V1.AzureDiskVolumeSource(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.diskName_ = diskName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.diskURI_ = diskURI_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.cachingMode_ = cachingMode_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.fsType_ = fsType_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.readOnly_ = readOnly_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.kind_ = kind_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.AzureDiskVolumeSource) {
return mergeFrom((io.kubernetes.client.proto.V1.AzureDiskVolumeSource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.AzureDiskVolumeSource other) {
if (other == io.kubernetes.client.proto.V1.AzureDiskVolumeSource.getDefaultInstance()) return this;
if (other.hasDiskName()) {
bitField0_ |= 0x00000001;
diskName_ = other.diskName_;
onChanged();
}
if (other.hasDiskURI()) {
bitField0_ |= 0x00000002;
diskURI_ = other.diskURI_;
onChanged();
}
if (other.hasCachingMode()) {
bitField0_ |= 0x00000004;
cachingMode_ = other.cachingMode_;
onChanged();
}
if (other.hasFsType()) {
bitField0_ |= 0x00000008;
fsType_ = other.fsType_;
onChanged();
}
if (other.hasReadOnly()) {
setReadOnly(other.getReadOnly());
}
if (other.hasKind()) {
bitField0_ |= 0x00000020;
kind_ = other.kind_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.AzureDiskVolumeSource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.AzureDiskVolumeSource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object diskName_ = "";
/**
*
* The Name of the data disk in the blob storage
*
*
* optional string diskName = 1;
*/
public boolean hasDiskName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* The Name of the data disk in the blob storage
*
*
* optional string diskName = 1;
*/
public java.lang.String getDiskName() {
java.lang.Object ref = diskName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
diskName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The Name of the data disk in the blob storage
*
*
* optional string diskName = 1;
*/
public com.google.protobuf.ByteString
getDiskNameBytes() {
java.lang.Object ref = diskName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diskName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The Name of the data disk in the blob storage
*
*
* optional string diskName = 1;
*/
public Builder setDiskName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
diskName_ = value;
onChanged();
return this;
}
/**
*
* The Name of the data disk in the blob storage
*
*
* optional string diskName = 1;
*/
public Builder clearDiskName() {
bitField0_ = (bitField0_ & ~0x00000001);
diskName_ = getDefaultInstance().getDiskName();
onChanged();
return this;
}
/**
*
* The Name of the data disk in the blob storage
*
*
* optional string diskName = 1;
*/
public Builder setDiskNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
diskName_ = value;
onChanged();
return this;
}
private java.lang.Object diskURI_ = "";
/**
*
* The URI the data disk in the blob storage
*
*
* optional string diskURI = 2;
*/
public boolean hasDiskURI() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* The URI the data disk in the blob storage
*
*
* optional string diskURI = 2;
*/
public java.lang.String getDiskURI() {
java.lang.Object ref = diskURI_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
diskURI_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The URI the data disk in the blob storage
*
*
* optional string diskURI = 2;
*/
public com.google.protobuf.ByteString
getDiskURIBytes() {
java.lang.Object ref = diskURI_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diskURI_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The URI the data disk in the blob storage
*
*
* optional string diskURI = 2;
*/
public Builder setDiskURI(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
diskURI_ = value;
onChanged();
return this;
}
/**
*
* The URI the data disk in the blob storage
*
*
* optional string diskURI = 2;
*/
public Builder clearDiskURI() {
bitField0_ = (bitField0_ & ~0x00000002);
diskURI_ = getDefaultInstance().getDiskURI();
onChanged();
return this;
}
/**
*
* The URI the data disk in the blob storage
*
*
* optional string diskURI = 2;
*/
public Builder setDiskURIBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
diskURI_ = value;
onChanged();
return this;
}
private java.lang.Object cachingMode_ = "";
/**
*
* Host Caching mode: None, Read Only, Read Write.
* +optional
*
*
* optional string cachingMode = 3;
*/
public boolean hasCachingMode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Host Caching mode: None, Read Only, Read Write.
* +optional
*
*
* optional string cachingMode = 3;
*/
public java.lang.String getCachingMode() {
java.lang.Object ref = cachingMode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
cachingMode_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Host Caching mode: None, Read Only, Read Write.
* +optional
*
*
* optional string cachingMode = 3;
*/
public com.google.protobuf.ByteString
getCachingModeBytes() {
java.lang.Object ref = cachingMode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cachingMode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Host Caching mode: None, Read Only, Read Write.
* +optional
*
*
* optional string cachingMode = 3;
*/
public Builder setCachingMode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
cachingMode_ = value;
onChanged();
return this;
}
/**
*
* Host Caching mode: None, Read Only, Read Write.
* +optional
*
*
* optional string cachingMode = 3;
*/
public Builder clearCachingMode() {
bitField0_ = (bitField0_ & ~0x00000004);
cachingMode_ = getDefaultInstance().getCachingMode();
onChanged();
return this;
}
/**
*
* Host Caching mode: None, Read Only, Read Write.
* +optional
*
*
* optional string cachingMode = 3;
*/
public Builder setCachingModeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
cachingMode_ = value;
onChanged();
return this;
}
private java.lang.Object fsType_ = "";
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* +optional
*
*
* optional string fsType = 4;
*/
public boolean hasFsType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* +optional
*
*
* optional string fsType = 4;
*/
public java.lang.String getFsType() {
java.lang.Object ref = fsType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
fsType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* +optional
*
*
* optional string fsType = 4;
*/
public com.google.protobuf.ByteString
getFsTypeBytes() {
java.lang.Object ref = fsType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fsType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* +optional
*
*
* optional string fsType = 4;
*/
public Builder setFsType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
fsType_ = value;
onChanged();
return this;
}
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* +optional
*
*
* optional string fsType = 4;
*/
public Builder clearFsType() {
bitField0_ = (bitField0_ & ~0x00000008);
fsType_ = getDefaultInstance().getFsType();
onChanged();
return this;
}
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* +optional
*
*
* optional string fsType = 4;
*/
public Builder setFsTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
fsType_ = value;
onChanged();
return this;
}
private boolean readOnly_ ;
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 5;
*/
public boolean hasReadOnly() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 5;
*/
public boolean getReadOnly() {
return readOnly_;
}
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 5;
*/
public Builder setReadOnly(boolean value) {
bitField0_ |= 0x00000010;
readOnly_ = value;
onChanged();
return this;
}
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 5;
*/
public Builder clearReadOnly() {
bitField0_ = (bitField0_ & ~0x00000010);
readOnly_ = false;
onChanged();
return this;
}
private java.lang.Object kind_ = "";
/**
*
* Expected values Shared: mulitple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
*
*
* optional string kind = 6;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
* Expected values Shared: mulitple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
*
*
* optional string kind = 6;
*/
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
kind_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Expected values Shared: mulitple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
*
*
* optional string kind = 6;
*/
public com.google.protobuf.ByteString
getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Expected values Shared: mulitple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
*
*
* optional string kind = 6;
*/
public Builder setKind(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
kind_ = value;
onChanged();
return this;
}
/**
*
* Expected values Shared: mulitple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
*
*
* optional string kind = 6;
*/
public Builder clearKind() {
bitField0_ = (bitField0_ & ~0x00000020);
kind_ = getDefaultInstance().getKind();
onChanged();
return this;
}
/**
*
* Expected values Shared: mulitple 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;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
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;
}
public io.kubernetes.client.proto.V1.AzureDiskVolumeSource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AzureFileVolumeSourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.AzureFileVolumeSource)
com.google.protobuf.MessageOrBuilder {
/**
*
* the name of secret that contains Azure Storage Account Name and Key
*
*
* optional string secretName = 1;
*/
boolean hasSecretName();
/**
*
* the name of secret that contains Azure Storage Account Name and Key
*
*
* optional string secretName = 1;
*/
java.lang.String getSecretName();
/**
*
* the name of secret that contains Azure Storage Account Name and Key
*
*
* optional string secretName = 1;
*/
com.google.protobuf.ByteString
getSecretNameBytes();
/**
*
* Share Name
*
*
* optional string shareName = 2;
*/
boolean hasShareName();
/**
*
* Share Name
*
*
* optional string shareName = 2;
*/
java.lang.String getShareName();
/**
*
* Share Name
*
*
* optional string shareName = 2;
*/
com.google.protobuf.ByteString
getShareNameBytes();
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 3;
*/
boolean hasReadOnly();
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 3;
*/
boolean getReadOnly();
}
/**
*
* AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
*
*
* Protobuf type {@code k8s.io.api.core.v1.AzureFileVolumeSource}
*/
public static final class AzureFileVolumeSource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.AzureFileVolumeSource)
AzureFileVolumeSourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use AzureFileVolumeSource.newBuilder() to construct.
private AzureFileVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AzureFileVolumeSource() {
secretName_ = "";
shareName_ = "";
readOnly_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AzureFileVolumeSource(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
secretName_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
shareName_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
readOnly_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.AzureFileVolumeSource.class, io.kubernetes.client.proto.V1.AzureFileVolumeSource.Builder.class);
}
private int bitField0_;
public static final int SECRETNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object secretName_;
/**
*
* the name of secret that contains Azure Storage Account Name and Key
*
*
* optional string secretName = 1;
*/
public boolean hasSecretName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* the name of secret that contains Azure Storage Account Name and Key
*
*
* optional string secretName = 1;
*/
public java.lang.String getSecretName() {
java.lang.Object ref = secretName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
secretName_ = s;
}
return s;
}
}
/**
*
* the name of secret that contains Azure Storage Account Name and Key
*
*
* optional string secretName = 1;
*/
public com.google.protobuf.ByteString
getSecretNameBytes() {
java.lang.Object ref = secretName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secretName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHARENAME_FIELD_NUMBER = 2;
private volatile java.lang.Object shareName_;
/**
*
* Share Name
*
*
* optional string shareName = 2;
*/
public boolean hasShareName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Share Name
*
*
* optional string shareName = 2;
*/
public java.lang.String getShareName() {
java.lang.Object ref = shareName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
shareName_ = s;
}
return s;
}
}
/**
*
* Share Name
*
*
* optional string shareName = 2;
*/
public com.google.protobuf.ByteString
getShareNameBytes() {
java.lang.Object ref = shareName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shareName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int READONLY_FIELD_NUMBER = 3;
private boolean readOnly_;
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 3;
*/
public boolean hasReadOnly() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 3;
*/
public boolean getReadOnly() {
return readOnly_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, secretName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shareName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, readOnly_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, secretName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shareName_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, readOnly_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.AzureFileVolumeSource)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.AzureFileVolumeSource other = (io.kubernetes.client.proto.V1.AzureFileVolumeSource) obj;
boolean result = true;
result = result && (hasSecretName() == other.hasSecretName());
if (hasSecretName()) {
result = result && getSecretName()
.equals(other.getSecretName());
}
result = result && (hasShareName() == other.hasShareName());
if (hasShareName()) {
result = result && getShareName()
.equals(other.getShareName());
}
result = result && (hasReadOnly() == other.hasReadOnly());
if (hasReadOnly()) {
result = result && (getReadOnly()
== other.getReadOnly());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSecretName()) {
hash = (37 * hash) + SECRETNAME_FIELD_NUMBER;
hash = (53 * hash) + getSecretName().hashCode();
}
if (hasShareName()) {
hash = (37 * hash) + SHARENAME_FIELD_NUMBER;
hash = (53 * hash) + getShareName().hashCode();
}
if (hasReadOnly()) {
hash = (37 * hash) + READONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReadOnly());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.AzureFileVolumeSource prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
*
*
* Protobuf type {@code k8s.io.api.core.v1.AzureFileVolumeSource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.AzureFileVolumeSource)
io.kubernetes.client.proto.V1.AzureFileVolumeSourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.AzureFileVolumeSource.class, io.kubernetes.client.proto.V1.AzureFileVolumeSource.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.AzureFileVolumeSource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
secretName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
shareName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
readOnly_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_descriptor;
}
public io.kubernetes.client.proto.V1.AzureFileVolumeSource getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.AzureFileVolumeSource.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.AzureFileVolumeSource build() {
io.kubernetes.client.proto.V1.AzureFileVolumeSource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.AzureFileVolumeSource buildPartial() {
io.kubernetes.client.proto.V1.AzureFileVolumeSource result = new io.kubernetes.client.proto.V1.AzureFileVolumeSource(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.secretName_ = secretName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.shareName_ = shareName_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.readOnly_ = readOnly_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.AzureFileVolumeSource) {
return mergeFrom((io.kubernetes.client.proto.V1.AzureFileVolumeSource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.AzureFileVolumeSource other) {
if (other == io.kubernetes.client.proto.V1.AzureFileVolumeSource.getDefaultInstance()) return this;
if (other.hasSecretName()) {
bitField0_ |= 0x00000001;
secretName_ = other.secretName_;
onChanged();
}
if (other.hasShareName()) {
bitField0_ |= 0x00000002;
shareName_ = other.shareName_;
onChanged();
}
if (other.hasReadOnly()) {
setReadOnly(other.getReadOnly());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.AzureFileVolumeSource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.AzureFileVolumeSource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object secretName_ = "";
/**
*
* the name of secret that contains Azure Storage Account Name and Key
*
*
* optional string secretName = 1;
*/
public boolean hasSecretName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* the name of secret that contains Azure Storage Account Name and Key
*
*
* optional string secretName = 1;
*/
public java.lang.String getSecretName() {
java.lang.Object ref = secretName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
secretName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* the name of secret that contains Azure Storage Account Name and Key
*
*
* optional string secretName = 1;
*/
public com.google.protobuf.ByteString
getSecretNameBytes() {
java.lang.Object ref = secretName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secretName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* the name of secret that contains Azure Storage Account Name and Key
*
*
* optional string secretName = 1;
*/
public Builder setSecretName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
secretName_ = value;
onChanged();
return this;
}
/**
*
* the name of secret that contains Azure Storage Account Name and Key
*
*
* optional string secretName = 1;
*/
public Builder clearSecretName() {
bitField0_ = (bitField0_ & ~0x00000001);
secretName_ = getDefaultInstance().getSecretName();
onChanged();
return this;
}
/**
*
* the name of secret that contains Azure Storage Account Name and Key
*
*
* optional string secretName = 1;
*/
public Builder setSecretNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
secretName_ = value;
onChanged();
return this;
}
private java.lang.Object shareName_ = "";
/**
*
* Share Name
*
*
* optional string shareName = 2;
*/
public boolean hasShareName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Share Name
*
*
* optional string shareName = 2;
*/
public java.lang.String getShareName() {
java.lang.Object ref = shareName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
shareName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Share Name
*
*
* optional string shareName = 2;
*/
public com.google.protobuf.ByteString
getShareNameBytes() {
java.lang.Object ref = shareName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shareName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Share Name
*
*
* optional string shareName = 2;
*/
public Builder setShareName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
shareName_ = value;
onChanged();
return this;
}
/**
*
* Share Name
*
*
* optional string shareName = 2;
*/
public Builder clearShareName() {
bitField0_ = (bitField0_ & ~0x00000002);
shareName_ = getDefaultInstance().getShareName();
onChanged();
return this;
}
/**
*
* Share Name
*
*
* optional string shareName = 2;
*/
public Builder setShareNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
shareName_ = value;
onChanged();
return this;
}
private boolean readOnly_ ;
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 3;
*/
public boolean hasReadOnly() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 3;
*/
public boolean getReadOnly() {
return readOnly_;
}
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 3;
*/
public Builder setReadOnly(boolean value) {
bitField0_ |= 0x00000004;
readOnly_ = value;
onChanged();
return this;
}
/**
*
* Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* +optional
*
*
* optional bool readOnly = 3;
*/
public Builder clearReadOnly() {
bitField0_ = (bitField0_ & ~0x00000004);
readOnly_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.AzureFileVolumeSource)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.AzureFileVolumeSource)
private static final io.kubernetes.client.proto.V1.AzureFileVolumeSource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.AzureFileVolumeSource();
}
public static io.kubernetes.client.proto.V1.AzureFileVolumeSource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public AzureFileVolumeSource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AzureFileVolumeSource(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.AzureFileVolumeSource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BindingOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Binding)
com.google.protobuf.MessageOrBuilder {
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
boolean hasMetadata();
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMeta getMetadata();
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder();
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
boolean hasTarget();
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
io.kubernetes.client.proto.V1.ObjectReference getTarget();
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getTargetOrBuilder();
}
/**
*
* Binding ties one object to another; for example, a pod is bound to a node by a scheduler.
* Deprecated in 1.7, please use the bindings subresource of pods instead.
*
*
* Protobuf type {@code k8s.io.api.core.v1.Binding}
*/
public static final class Binding extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Binding)
BindingOrBuilder {
private static final long serialVersionUID = 0L;
// Use Binding.newBuilder() to construct.
private Binding(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Binding() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Binding(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
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;
}
}
}
} catch (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;
}
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/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_;
}
public static final int TARGET_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1.ObjectReference target_;
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
public boolean hasTarget() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
public io.kubernetes.client.proto.V1.ObjectReference getTarget() {
return target_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : target_;
}
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getTargetOrBuilder() {
return target_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : target_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
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);
}
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);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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;
}
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();
}
}
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;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Binding_descriptor;
}
public io.kubernetes.client.proto.V1.Binding getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.Binding.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.Binding build() {
io.kubernetes.client.proto.V1.Binding result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
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;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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;
}
public final boolean isInitialized() {
return true;
}
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/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(
io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
metadata_ != null &&
metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) {
metadata_ =
io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_;
}
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private io.kubernetes.client.proto.V1.ObjectReference target_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> targetBuilder_;
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
public boolean hasTarget() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
public io.kubernetes.client.proto.V1.ObjectReference getTarget() {
if (targetBuilder_ == null) {
return target_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : target_;
} else {
return targetBuilder_.getMessage();
}
}
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
public Builder setTarget(io.kubernetes.client.proto.V1.ObjectReference value) {
if (targetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
onChanged();
} else {
targetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
public Builder setTarget(
io.kubernetes.client.proto.V1.ObjectReference.Builder builderForValue) {
if (targetBuilder_ == null) {
target_ = builderForValue.build();
onChanged();
} else {
targetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
public Builder mergeTarget(io.kubernetes.client.proto.V1.ObjectReference value) {
if (targetBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
target_ != null &&
target_ != io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance()) {
target_ =
io.kubernetes.client.proto.V1.ObjectReference.newBuilder(target_).mergeFrom(value).buildPartial();
} else {
target_ = value;
}
onChanged();
} else {
targetBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
public Builder clearTarget() {
if (targetBuilder_ == null) {
target_ = null;
onChanged();
} else {
targetBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
public io.kubernetes.client.proto.V1.ObjectReference.Builder getTargetBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTargetFieldBuilder().getBuilder();
}
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getTargetOrBuilder() {
if (targetBuilder_ != null) {
return targetBuilder_.getMessageOrBuilder();
} else {
return target_ == null ?
io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : target_;
}
}
/**
*
* The target object that you want to bind to the standard object.
*
*
* optional .k8s.io.api.core.v1.ObjectReference target = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder>
getTargetFieldBuilder() {
if (targetBuilder_ == null) {
targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder>(
getTarget(),
getParentForChildren(),
isClean());
target_ = null;
}
return targetBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.Binding)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Binding)
private static final io.kubernetes.client.proto.V1.Binding DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Binding();
}
public static io.kubernetes.client.proto.V1.Binding getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Binding parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Binding(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.Binding getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CapabilitiesOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Capabilities)
com.google.protobuf.MessageOrBuilder {
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
java.util.List
getAddList();
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
int getAddCount();
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
java.lang.String getAdd(int index);
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
com.google.protobuf.ByteString
getAddBytes(int index);
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
java.util.List
getDropList();
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
int getDropCount();
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
java.lang.String getDrop(int index);
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
com.google.protobuf.ByteString
getDropBytes(int index);
}
/**
*
* Adds and removes POSIX capabilities from running containers.
*
*
* Protobuf type {@code k8s.io.api.core.v1.Capabilities}
*/
public static final class Capabilities extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Capabilities)
CapabilitiesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Capabilities.newBuilder() to construct.
private Capabilities(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Capabilities() {
add_ = com.google.protobuf.LazyStringArrayList.EMPTY;
drop_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Capabilities(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
add_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
add_.add(bs);
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
drop_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
drop_.add(bs);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
add_ = add_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
drop_ = drop_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Capabilities_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Capabilities_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.Capabilities.class, io.kubernetes.client.proto.V1.Capabilities.Builder.class);
}
public static final int ADD_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList add_;
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
public com.google.protobuf.ProtocolStringList
getAddList() {
return add_;
}
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
public int getAddCount() {
return add_.size();
}
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
public java.lang.String getAdd(int index) {
return add_.get(index);
}
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
public com.google.protobuf.ByteString
getAddBytes(int index) {
return add_.getByteString(index);
}
public static final int DROP_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList drop_;
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
public com.google.protobuf.ProtocolStringList
getDropList() {
return drop_;
}
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
public int getDropCount() {
return drop_.size();
}
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
public java.lang.String getDrop(int index) {
return drop_.get(index);
}
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
public com.google.protobuf.ByteString
getDropBytes(int index) {
return drop_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < add_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, add_.getRaw(i));
}
for (int i = 0; i < drop_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, drop_.getRaw(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < add_.size(); i++) {
dataSize += computeStringSizeNoTag(add_.getRaw(i));
}
size += dataSize;
size += 1 * getAddList().size();
}
{
int dataSize = 0;
for (int i = 0; i < drop_.size(); i++) {
dataSize += computeStringSizeNoTag(drop_.getRaw(i));
}
size += dataSize;
size += 1 * getDropList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.Capabilities)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.Capabilities other = (io.kubernetes.client.proto.V1.Capabilities) obj;
boolean result = true;
result = result && getAddList()
.equals(other.getAddList());
result = result && getDropList()
.equals(other.getDropList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getAddCount() > 0) {
hash = (37 * hash) + ADD_FIELD_NUMBER;
hash = (53 * hash) + getAddList().hashCode();
}
if (getDropCount() > 0) {
hash = (37 * hash) + DROP_FIELD_NUMBER;
hash = (53 * hash) + getDropList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.Capabilities parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.Capabilities parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Capabilities parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.Capabilities parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Capabilities parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.Capabilities parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Capabilities parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.Capabilities parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Capabilities parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.Capabilities parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Capabilities parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.Capabilities parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.Capabilities prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Adds and removes POSIX capabilities from running containers.
*
*
* Protobuf type {@code k8s.io.api.core.v1.Capabilities}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Capabilities)
io.kubernetes.client.proto.V1.CapabilitiesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Capabilities_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Capabilities_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.Capabilities.class, io.kubernetes.client.proto.V1.Capabilities.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.Capabilities.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
add_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
drop_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Capabilities_descriptor;
}
public io.kubernetes.client.proto.V1.Capabilities getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.Capabilities.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.Capabilities build() {
io.kubernetes.client.proto.V1.Capabilities result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.Capabilities buildPartial() {
io.kubernetes.client.proto.V1.Capabilities result = new io.kubernetes.client.proto.V1.Capabilities(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
add_ = add_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.add_ = add_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
drop_ = drop_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.drop_ = drop_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.Capabilities) {
return mergeFrom((io.kubernetes.client.proto.V1.Capabilities)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.Capabilities other) {
if (other == io.kubernetes.client.proto.V1.Capabilities.getDefaultInstance()) return this;
if (!other.add_.isEmpty()) {
if (add_.isEmpty()) {
add_ = other.add_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAddIsMutable();
add_.addAll(other.add_);
}
onChanged();
}
if (!other.drop_.isEmpty()) {
if (drop_.isEmpty()) {
drop_ = other.drop_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDropIsMutable();
drop_.addAll(other.drop_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.Capabilities parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.Capabilities) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList add_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAddIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
add_ = new com.google.protobuf.LazyStringArrayList(add_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
public com.google.protobuf.ProtocolStringList
getAddList() {
return add_.getUnmodifiableView();
}
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
public int getAddCount() {
return add_.size();
}
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
public java.lang.String getAdd(int index) {
return add_.get(index);
}
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
public com.google.protobuf.ByteString
getAddBytes(int index) {
return add_.getByteString(index);
}
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
public Builder setAdd(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAddIsMutable();
add_.set(index, value);
onChanged();
return this;
}
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
public Builder addAdd(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAddIsMutable();
add_.add(value);
onChanged();
return this;
}
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
public Builder addAllAdd(
java.lang.Iterable values) {
ensureAddIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, add_);
onChanged();
return this;
}
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
public Builder clearAdd() {
add_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Added capabilities
* +optional
*
*
* repeated string add = 1;
*/
public Builder addAddBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureAddIsMutable();
add_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList drop_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDropIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
drop_ = new com.google.protobuf.LazyStringArrayList(drop_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
public com.google.protobuf.ProtocolStringList
getDropList() {
return drop_.getUnmodifiableView();
}
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
public int getDropCount() {
return drop_.size();
}
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
public java.lang.String getDrop(int index) {
return drop_.get(index);
}
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
public com.google.protobuf.ByteString
getDropBytes(int index) {
return drop_.getByteString(index);
}
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
public Builder setDrop(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDropIsMutable();
drop_.set(index, value);
onChanged();
return this;
}
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
public Builder addDrop(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDropIsMutable();
drop_.add(value);
onChanged();
return this;
}
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
public Builder addAllDrop(
java.lang.Iterable values) {
ensureDropIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, drop_);
onChanged();
return this;
}
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
public Builder clearDrop() {
drop_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Removed capabilities
* +optional
*
*
* repeated string drop = 2;
*/
public Builder addDropBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureDropIsMutable();
drop_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.Capabilities)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Capabilities)
private static final io.kubernetes.client.proto.V1.Capabilities DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Capabilities();
}
public static io.kubernetes.client.proto.V1.Capabilities getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Capabilities parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Capabilities(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.Capabilities 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://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
java.util.List
getMonitorsList();
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
int getMonitorsCount();
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
java.lang.String getMonitors(int index);
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
com.google.protobuf.ByteString
getMonitorsBytes(int index);
/**
*
* Optional: Used as the mounted root, rather than the full Ceph tree, default is /
* +optional
*
*
* optional string path = 2;
*/
boolean hasPath();
/**
*
* Optional: Used as the mounted root, rather than the full Ceph tree, default is /
* +optional
*
*
* optional string path = 2;
*/
java.lang.String getPath();
/**
*
* Optional: Used as the mounted root, rather than the full Ceph tree, default is /
* +optional
*
*
* optional string path = 2;
*/
com.google.protobuf.ByteString
getPathBytes();
/**
*
* Optional: User is the rados user name, default is admin
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string user = 3;
*/
boolean hasUser();
/**
*
* Optional: User is the rados user name, default is admin
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string user = 3;
*/
java.lang.String getUser();
/**
*
* Optional: User is the rados user name, default is admin
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string user = 3;
*/
com.google.protobuf.ByteString
getUserBytes();
/**
*
* Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string secretFile = 4;
*/
boolean hasSecretFile();
/**
*
* Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string secretFile = 4;
*/
java.lang.String getSecretFile();
/**
*
* Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string secretFile = 4;
*/
com.google.protobuf.ByteString
getSecretFileBytes();
/**
*
* Optional: SecretRef is reference to the authentication secret for User, default is empty.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
*/
boolean hasSecretRef();
/**
*
* Optional: SecretRef is reference to the authentication secret for User, default is empty.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
*/
io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef();
/**
*
* Optional: SecretRef is reference to the authentication secret for User, default is empty.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
*/
io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder();
/**
*
* Optional: Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional bool readOnly = 6;
*/
boolean hasReadOnly();
/**
*
* Optional: Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional bool readOnly = 6;
*/
boolean getReadOnly();
}
/**
*
* Represents a Ceph Filesystem mount that lasts the lifetime of a pod
* Cephfs volumes do not support ownership management or SELinux relabeling.
*
*
* Protobuf type {@code k8s.io.api.core.v1.CephFSVolumeSource}
*/
public static final class CephFSVolumeSource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.CephFSVolumeSource)
CephFSVolumeSourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use CephFSVolumeSource.newBuilder() to construct.
private CephFSVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CephFSVolumeSource() {
monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
path_ = "";
user_ = "";
secretFile_ = "";
readOnly_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CephFSVolumeSource(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
monitors_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
monitors_.add(bs);
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
path_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
user_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
secretFile_ = bs;
break;
}
case 42: {
io.kubernetes.client.proto.V1.LocalObjectReference.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = secretRef_.toBuilder();
}
secretRef_ = input.readMessage(io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(secretRef_);
secretRef_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 48: {
bitField0_ |= 0x00000010;
readOnly_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
monitors_ = monitors_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_CephFSVolumeSource_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_CephFSVolumeSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.CephFSVolumeSource.class, io.kubernetes.client.proto.V1.CephFSVolumeSource.Builder.class);
}
private int bitField0_;
public static final int MONITORS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList monitors_;
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
public com.google.protobuf.ProtocolStringList
getMonitorsList() {
return monitors_;
}
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
public int getMonitorsCount() {
return monitors_.size();
}
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
public java.lang.String getMonitors(int index) {
return monitors_.get(index);
}
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
public com.google.protobuf.ByteString
getMonitorsBytes(int index) {
return monitors_.getByteString(index);
}
public static final int PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object path_;
/**
*
* Optional: Used as the mounted root, rather than the full Ceph tree, default is /
* +optional
*
*
* optional string path = 2;
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Optional: Used as the mounted root, rather than the full Ceph tree, default is /
* +optional
*
*
* optional string path = 2;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
}
}
/**
*
* Optional: Used as the mounted root, rather than the full Ceph tree, default is /
* +optional
*
*
* optional string path = 2;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_FIELD_NUMBER = 3;
private volatile java.lang.Object user_;
/**
*
* Optional: User is the rados user name, default is admin
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string user = 3;
*/
public boolean hasUser() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Optional: User is the rados user name, default is admin
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string user = 3;
*/
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
user_ = s;
}
return s;
}
}
/**
*
* Optional: User is the rados user name, default is admin
* More info: https://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string secretFile = 4;
*/
public boolean hasSecretFile() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string secretFile = 4;
*/
public java.lang.String getSecretFile() {
java.lang.Object ref = secretFile_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
secretFile_ = s;
}
return s;
}
}
/**
*
* Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
* More info: https://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
*/
public boolean hasSecretRef() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Optional: SecretRef is reference to the authentication secret for User, default is empty.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() {
return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_;
}
/**
*
* Optional: SecretRef is reference to the authentication secret for User, default is empty.
* More info: https://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional bool readOnly = 6;
*/
public boolean hasReadOnly() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* Optional: Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional bool readOnly = 6;
*/
public boolean getReadOnly() {
return readOnly_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
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);
}
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);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents a Ceph Filesystem mount that lasts the lifetime of a pod
* Cephfs volumes do not support ownership management or SELinux relabeling.
*
*
* Protobuf type {@code k8s.io.api.core.v1.CephFSVolumeSource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.CephFSVolumeSource)
io.kubernetes.client.proto.V1.CephFSVolumeSourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_CephFSVolumeSource_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_CephFSVolumeSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.CephFSVolumeSource.class, io.kubernetes.client.proto.V1.CephFSVolumeSource.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.CephFSVolumeSource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSecretRefFieldBuilder();
}
}
public Builder clear() {
super.clear();
monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
path_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
user_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
secretFile_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
if (secretRefBuilder_ == null) {
secretRef_ = null;
} else {
secretRefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
readOnly_ = false;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_CephFSVolumeSource_descriptor;
}
public io.kubernetes.client.proto.V1.CephFSVolumeSource getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.CephFSVolumeSource.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.CephFSVolumeSource build() {
io.kubernetes.client.proto.V1.CephFSVolumeSource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.CephFSVolumeSource buildPartial() {
io.kubernetes.client.proto.V1.CephFSVolumeSource result = new io.kubernetes.client.proto.V1.CephFSVolumeSource(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
monitors_ = monitors_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.monitors_ = monitors_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.path_ = path_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.user_ = user_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.secretFile_ = secretFile_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000008;
}
if (secretRefBuilder_ == null) {
result.secretRef_ = secretRef_;
} else {
result.secretRef_ = secretRefBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000010;
}
result.readOnly_ = readOnly_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.CephFSVolumeSource) {
return mergeFrom((io.kubernetes.client.proto.V1.CephFSVolumeSource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.CephFSVolumeSource other) {
if (other == io.kubernetes.client.proto.V1.CephFSVolumeSource.getDefaultInstance()) return this;
if (!other.monitors_.isEmpty()) {
if (monitors_.isEmpty()) {
monitors_ = other.monitors_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMonitorsIsMutable();
monitors_.addAll(other.monitors_);
}
onChanged();
}
if (other.hasPath()) {
bitField0_ |= 0x00000002;
path_ = other.path_;
onChanged();
}
if (other.hasUser()) {
bitField0_ |= 0x00000004;
user_ = other.user_;
onChanged();
}
if (other.hasSecretFile()) {
bitField0_ |= 0x00000008;
secretFile_ = other.secretFile_;
onChanged();
}
if (other.hasSecretRef()) {
mergeSecretRef(other.getSecretRef());
}
if (other.hasReadOnly()) {
setReadOnly(other.getReadOnly());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.CephFSVolumeSource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.CephFSVolumeSource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureMonitorsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
monitors_ = new com.google.protobuf.LazyStringArrayList(monitors_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
public com.google.protobuf.ProtocolStringList
getMonitorsList() {
return monitors_.getUnmodifiableView();
}
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
public int getMonitorsCount() {
return monitors_.size();
}
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
public java.lang.String getMonitors(int index) {
return monitors_.get(index);
}
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
public com.google.protobuf.ByteString
getMonitorsBytes(int index) {
return monitors_.getByteString(index);
}
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
public Builder setMonitors(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMonitorsIsMutable();
monitors_.set(index, value);
onChanged();
return this;
}
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
public Builder addMonitors(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMonitorsIsMutable();
monitors_.add(value);
onChanged();
return this;
}
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
public Builder addAllMonitors(
java.lang.Iterable values) {
ensureMonitorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, monitors_);
onChanged();
return this;
}
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
public Builder clearMonitors() {
monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Required: Monitors is a collection of Ceph monitors
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
*
*
* repeated string monitors = 1;
*/
public Builder addMonitorsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureMonitorsIsMutable();
monitors_.add(value);
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
*
* Optional: Used as the mounted root, rather than the full Ceph tree, default is /
* +optional
*
*
* optional string path = 2;
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Optional: Used as the mounted root, rather than the full Ceph tree, default is /
* +optional
*
*
* optional string path = 2;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional: Used as the mounted root, rather than the full Ceph tree, default is /
* +optional
*
*
* optional string path = 2;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional: Used as the mounted root, rather than the full Ceph tree, default is /
* +optional
*
*
* optional string path = 2;
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
path_ = value;
onChanged();
return this;
}
/**
*
* Optional: Used as the mounted root, rather than the full Ceph tree, default is /
* +optional
*
*
* optional string path = 2;
*/
public Builder clearPath() {
bitField0_ = (bitField0_ & ~0x00000002);
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* Optional: Used as the mounted root, rather than the full Ceph tree, default is /
* +optional
*
*
* optional string path = 2;
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
path_ = value;
onChanged();
return this;
}
private java.lang.Object user_ = "";
/**
*
* Optional: User is the rados user name, default is admin
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string user = 3;
*/
public boolean hasUser() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Optional: User is the rados user name, default is admin
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string user = 3;
*/
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
user_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional: User is the rados user name, default is admin
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string user = 3;
*/
public com.google.protobuf.ByteString
getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
user_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional: User is the rados user name, default is admin
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string user = 3;
*/
public Builder setUser(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
user_ = value;
onChanged();
return this;
}
/**
*
* Optional: User is the rados user name, default is admin
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string user = 3;
*/
public Builder clearUser() {
bitField0_ = (bitField0_ & ~0x00000004);
user_ = getDefaultInstance().getUser();
onChanged();
return this;
}
/**
*
* Optional: User is the rados user name, default is admin
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string user = 3;
*/
public Builder setUserBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
user_ = value;
onChanged();
return this;
}
private java.lang.Object secretFile_ = "";
/**
*
* Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string secretFile = 4;
*/
public boolean hasSecretFile() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string secretFile = 4;
*/
public java.lang.String getSecretFile() {
java.lang.Object ref = secretFile_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
secretFile_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string secretFile = 4;
*/
public com.google.protobuf.ByteString
getSecretFileBytes() {
java.lang.Object ref = secretFile_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secretFile_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string secretFile = 4;
*/
public Builder setSecretFile(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
secretFile_ = value;
onChanged();
return this;
}
/**
*
* Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string secretFile = 4;
*/
public Builder clearSecretFile() {
bitField0_ = (bitField0_ & ~0x00000008);
secretFile_ = getDefaultInstance().getSecretFile();
onChanged();
return this;
}
/**
*
* Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional string secretFile = 4;
*/
public Builder setSecretFileBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
secretFile_ = value;
onChanged();
return this;
}
private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> secretRefBuilder_;
/**
*
* Optional: SecretRef is reference to the authentication secret for User, default is empty.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
*/
public boolean hasSecretRef() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* Optional: SecretRef is reference to the authentication secret for User, default is empty.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() {
if (secretRefBuilder_ == null) {
return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_;
} else {
return secretRefBuilder_.getMessage();
}
}
/**
*
* Optional: SecretRef is reference to the authentication secret for User, default is empty.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
*/
public Builder setSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) {
if (secretRefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
secretRef_ = value;
onChanged();
} else {
secretRefBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
*
* Optional: SecretRef is reference to the authentication secret for User, default is empty.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
*/
public Builder setSecretRef(
io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) {
if (secretRefBuilder_ == null) {
secretRef_ = builderForValue.build();
onChanged();
} else {
secretRefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
*
* Optional: SecretRef is reference to the authentication secret for User, default is empty.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
*/
public Builder mergeSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) {
if (secretRefBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
secretRef_ != null &&
secretRef_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) {
secretRef_ =
io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(secretRef_).mergeFrom(value).buildPartial();
} else {
secretRef_ = value;
}
onChanged();
} else {
secretRefBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
*
* Optional: SecretRef is reference to the authentication secret for User, default is empty.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
*/
public Builder clearSecretRef() {
if (secretRefBuilder_ == null) {
secretRef_ = null;
onChanged();
} else {
secretRefBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
*
* Optional: SecretRef is reference to the authentication secret for User, default is empty.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getSecretRefBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getSecretRefFieldBuilder().getBuilder();
}
/**
*
* Optional: SecretRef is reference to the authentication secret for User, default is empty.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
*/
public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() {
if (secretRefBuilder_ != null) {
return secretRefBuilder_.getMessageOrBuilder();
} else {
return secretRef_ == null ?
io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_;
}
}
/**
*
* Optional: SecretRef is reference to the authentication secret for User, default is empty.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>
getSecretRefFieldBuilder() {
if (secretRefBuilder_ == null) {
secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>(
getSecretRef(),
getParentForChildren(),
isClean());
secretRef_ = null;
}
return secretRefBuilder_;
}
private boolean readOnly_ ;
/**
*
* Optional: Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional bool readOnly = 6;
*/
public boolean hasReadOnly() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
* Optional: Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional bool readOnly = 6;
*/
public boolean getReadOnly() {
return readOnly_;
}
/**
*
* Optional: Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional bool readOnly = 6;
*/
public Builder setReadOnly(boolean value) {
bitField0_ |= 0x00000020;
readOnly_ = value;
onChanged();
return this;
}
/**
*
* Optional: Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
* +optional
*
*
* optional bool readOnly = 6;
*/
public Builder clearReadOnly() {
bitField0_ = (bitField0_ & ~0x00000020);
readOnly_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
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;
}
public io.kubernetes.client.proto.V1.CephFSVolumeSource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CinderVolumeSourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.CinderVolumeSource)
com.google.protobuf.MessageOrBuilder {
/**
*
* volume id used to identify the volume in cinder
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
*
*
* optional string volumeID = 1;
*/
boolean hasVolumeID();
/**
*
* volume id used to identify the volume in cinder
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
*
*
* optional string volumeID = 1;
*/
java.lang.String getVolumeID();
/**
*
* volume id used to identify the volume in cinder
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
*
*
* optional string volumeID = 1;
*/
com.google.protobuf.ByteString
getVolumeIDBytes();
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional string fsType = 2;
*/
boolean hasFsType();
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional string fsType = 2;
*/
java.lang.String getFsType();
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional string fsType = 2;
*/
com.google.protobuf.ByteString
getFsTypeBytes();
/**
*
* Optional: Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional bool readOnly = 3;
*/
boolean hasReadOnly();
/**
*
* Optional: Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional bool readOnly = 3;
*/
boolean getReadOnly();
}
/**
*
* 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();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
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;
}
}
}
} catch (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;
}
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://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
*
*
* optional string volumeID = 1;
*/
public boolean hasVolumeID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* volume id used to identify the volume in cinder
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
*
*
* optional string volumeID = 1;
*/
public java.lang.String getVolumeID() {
java.lang.Object ref = volumeID_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
volumeID_ = s;
}
return s;
}
}
/**
*
* volume id used to identify the volume in cinder
* More info: https://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional string fsType = 2;
*/
public boolean hasFsType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional string fsType = 2;
*/
public java.lang.String getFsType() {
java.lang.Object ref = fsType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
fsType_ = s;
}
return s;
}
}
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://releases.k8s.io/HEAD/examples/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://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional bool readOnly = 3;
*/
public boolean hasReadOnly() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Optional: Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional bool readOnly = 3;
*/
public boolean getReadOnly() {
return readOnly_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, volumeID_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fsType_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, readOnly_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, volumeID_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, readOnly_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.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 && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasVolumeID()) {
hash = (37 * hash) + VOLUMEID_FIELD_NUMBER;
hash = (53 * hash) + getVolumeID().hashCode();
}
if (hasFsType()) {
hash = (37 * hash) + FSTYPE_FIELD_NUMBER;
hash = (53 * hash) + getFsType().hashCode();
}
if (hasReadOnly()) {
hash = (37 * hash) + READONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReadOnly());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.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);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents a cinder volume resource in Openstack.
* A Cinder volume must exist before mounting to a container.
* The volume must also be in the same region as the kubelet.
* Cinder volumes support ownership management and SELinux relabeling.
*
*
* Protobuf type {@code k8s.io.api.core.v1.CinderVolumeSource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.CinderVolumeSource)
io.kubernetes.client.proto.V1.CinderVolumeSourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_CinderVolumeSource_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_CinderVolumeSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.CinderVolumeSource.class, io.kubernetes.client.proto.V1.CinderVolumeSource.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.CinderVolumeSource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
volumeID_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
fsType_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
readOnly_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_CinderVolumeSource_descriptor;
}
public io.kubernetes.client.proto.V1.CinderVolumeSource getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.CinderVolumeSource.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.CinderVolumeSource build() {
io.kubernetes.client.proto.V1.CinderVolumeSource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.CinderVolumeSource buildPartial() {
io.kubernetes.client.proto.V1.CinderVolumeSource result = new io.kubernetes.client.proto.V1.CinderVolumeSource(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.volumeID_ = volumeID_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.fsType_ = fsType_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.readOnly_ = readOnly_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.CinderVolumeSource) {
return mergeFrom((io.kubernetes.client.proto.V1.CinderVolumeSource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.CinderVolumeSource other) {
if (other == io.kubernetes.client.proto.V1.CinderVolumeSource.getDefaultInstance()) return this;
if (other.hasVolumeID()) {
bitField0_ |= 0x00000001;
volumeID_ = other.volumeID_;
onChanged();
}
if (other.hasFsType()) {
bitField0_ |= 0x00000002;
fsType_ = other.fsType_;
onChanged();
}
if (other.hasReadOnly()) {
setReadOnly(other.getReadOnly());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.CinderVolumeSource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.CinderVolumeSource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object volumeID_ = "";
/**
*
* volume id used to identify the volume in cinder
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
*
*
* optional string volumeID = 1;
*/
public boolean hasVolumeID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* volume id used to identify the volume in cinder
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
*
*
* optional string volumeID = 1;
*/
public java.lang.String getVolumeID() {
java.lang.Object ref = volumeID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
volumeID_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* volume id used to identify the volume in cinder
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
*
*
* optional string volumeID = 1;
*/
public com.google.protobuf.ByteString
getVolumeIDBytes() {
java.lang.Object ref = volumeID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
volumeID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* volume id used to identify the volume in cinder
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
*
*
* optional string volumeID = 1;
*/
public Builder setVolumeID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
volumeID_ = value;
onChanged();
return this;
}
/**
*
* volume id used to identify the volume in cinder
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
*
*
* optional string volumeID = 1;
*/
public Builder clearVolumeID() {
bitField0_ = (bitField0_ & ~0x00000001);
volumeID_ = getDefaultInstance().getVolumeID();
onChanged();
return this;
}
/**
*
* volume id used to identify the volume in cinder
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
*
*
* optional string volumeID = 1;
*/
public Builder setVolumeIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
volumeID_ = value;
onChanged();
return this;
}
private java.lang.Object fsType_ = "";
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional string fsType = 2;
*/
public boolean hasFsType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional string fsType = 2;
*/
public java.lang.String getFsType() {
java.lang.Object ref = fsType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
fsType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional string fsType = 2;
*/
public com.google.protobuf.ByteString
getFsTypeBytes() {
java.lang.Object ref = fsType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fsType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional string fsType = 2;
*/
public Builder setFsType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
fsType_ = value;
onChanged();
return this;
}
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional string fsType = 2;
*/
public Builder clearFsType() {
bitField0_ = (bitField0_ & ~0x00000002);
fsType_ = getDefaultInstance().getFsType();
onChanged();
return this;
}
/**
*
* Filesystem type to mount.
* Must be a filesystem type supported by the host operating system.
* Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional string fsType = 2;
*/
public Builder setFsTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
fsType_ = value;
onChanged();
return this;
}
private boolean readOnly_ ;
/**
*
* Optional: Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional bool readOnly = 3;
*/
public boolean hasReadOnly() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Optional: Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional bool readOnly = 3;
*/
public boolean getReadOnly() {
return readOnly_;
}
/**
*
* Optional: Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional bool readOnly = 3;
*/
public Builder setReadOnly(boolean value) {
bitField0_ |= 0x00000004;
readOnly_ = value;
onChanged();
return this;
}
/**
*
* Optional: Defaults to false (read/write). ReadOnly here will force
* the ReadOnly setting in VolumeMounts.
* More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
* +optional
*
*
* optional bool readOnly = 3;
*/
public Builder clearReadOnly() {
bitField0_ = (bitField0_ & ~0x00000004);
readOnly_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
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;
}
public io.kubernetes.client.proto.V1.CinderVolumeSource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ComponentConditionOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ComponentCondition)
com.google.protobuf.MessageOrBuilder {
/**
*
* Type of condition for a component.
* Valid value: "Healthy"
*
*
* optional string type = 1;
*/
boolean hasType();
/**
*
* Type of condition for a component.
* Valid value: "Healthy"
*
*
* optional string type = 1;
*/
java.lang.String getType();
/**
*
* Type of condition for a component.
* Valid value: "Healthy"
*
*
* optional string type = 1;
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
*
* Status of the condition for a component.
* Valid values for "Healthy": "True", "False", or "Unknown".
*
*
* optional string status = 2;
*/
boolean hasStatus();
/**
*
* Status of the condition for a component.
* Valid values for "Healthy": "True", "False", or "Unknown".
*
*
* optional string status = 2;
*/
java.lang.String getStatus();
/**
*
* Status of the condition for a component.
* Valid values for "Healthy": "True", "False", or "Unknown".
*
*
* optional string status = 2;
*/
com.google.protobuf.ByteString
getStatusBytes();
/**
*
* Message about the condition for a component.
* For example, information about a health check.
* +optional
*
*
* optional string message = 3;
*/
boolean hasMessage();
/**
*
* Message about the condition for a component.
* For example, information about a health check.
* +optional
*
*
* optional string message = 3;
*/
java.lang.String getMessage();
/**
*
* Message about the condition for a component.
* For example, information about a health check.
* +optional
*
*
* optional string message = 3;
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
*
* Condition error code for a component.
* For example, a health check error code.
* +optional
*
*
* optional string error = 4;
*/
boolean hasError();
/**
*
* Condition error code for a component.
* For example, a health check error code.
* +optional
*
*
* optional string error = 4;
*/
java.lang.String getError();
/**
*
* Condition error code for a component.
* For example, a health check error code.
* +optional
*
*
* optional string error = 4;
*/
com.google.protobuf.ByteString
getErrorBytes();
}
/**
*
* Information about the condition of a component.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ComponentCondition}
*/
public static final class ComponentCondition extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ComponentCondition)
ComponentConditionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComponentCondition.newBuilder() to construct.
private ComponentCondition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComponentCondition() {
type_ = "";
status_ = "";
message_ = "";
error_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComponentCondition(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
type_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
status_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
message_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
error_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentCondition_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ComponentCondition.class, io.kubernetes.client.proto.V1.ComponentCondition.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object type_;
/**
*
* Type of condition for a component.
* Valid value: "Healthy"
*
*
* optional string type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Type of condition for a component.
* Valid value: "Healthy"
*
*
* optional string type = 1;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
type_ = s;
}
return s;
}
}
/**
*
* Type of condition for a component.
* Valid value: "Healthy"
*
*
* optional string type = 1;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 2;
private volatile java.lang.Object status_;
/**
*
* Status of the condition for a component.
* Valid values for "Healthy": "True", "False", or "Unknown".
*
*
* optional string status = 2;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Status of the condition for a component.
* Valid values for "Healthy": "True", "False", or "Unknown".
*
*
* optional string status = 2;
*/
public java.lang.String getStatus() {
java.lang.Object ref = status_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
status_ = s;
}
return s;
}
}
/**
*
* Status of the condition for a component.
* Valid values for "Healthy": "True", "False", or "Unknown".
*
*
* optional string status = 2;
*/
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_FIELD_NUMBER = 3;
private volatile java.lang.Object message_;
/**
*
* Message about the condition for a component.
* For example, information about a health check.
* +optional
*
*
* optional string message = 3;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Message about the condition for a component.
* For example, information about a health check.
* +optional
*
*
* optional string message = 3;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
}
}
/**
*
* Message about the condition for a component.
* For example, information about a health check.
* +optional
*
*
* optional string message = 3;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERROR_FIELD_NUMBER = 4;
private volatile java.lang.Object error_;
/**
*
* Condition error code for a component.
* For example, a health check error code.
* +optional
*
*
* optional string error = 4;
*/
public boolean hasError() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Condition error code for a component.
* For example, a health check error code.
* +optional
*
*
* optional string error = 4;
*/
public java.lang.String getError() {
java.lang.Object ref = error_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
error_ = s;
}
return s;
}
}
/**
*
* Condition error code for a component.
* For example, a health check error code.
* +optional
*
*
* optional string error = 4;
*/
public com.google.protobuf.ByteString
getErrorBytes() {
java.lang.Object ref = error_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
error_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, error_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, error_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.ComponentCondition)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.ComponentCondition other = (io.kubernetes.client.proto.V1.ComponentCondition) obj;
boolean result = true;
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && getType()
.equals(other.getType());
}
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus()
.equals(other.getStatus());
}
result = result && (hasMessage() == other.hasMessage());
if (hasMessage()) {
result = result && getMessage()
.equals(other.getMessage());
}
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.ComponentCondition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ComponentCondition parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentCondition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ComponentCondition parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentCondition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ComponentCondition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentCondition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ComponentCondition parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentCondition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ComponentCondition parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentCondition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ComponentCondition parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.ComponentCondition prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Information about the condition of a component.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ComponentCondition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ComponentCondition)
io.kubernetes.client.proto.V1.ComponentConditionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentCondition_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ComponentCondition.class, io.kubernetes.client.proto.V1.ComponentCondition.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.ComponentCondition.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
type_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
status_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
message_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
error_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentCondition_descriptor;
}
public io.kubernetes.client.proto.V1.ComponentCondition getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ComponentCondition.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ComponentCondition build() {
io.kubernetes.client.proto.V1.ComponentCondition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.ComponentCondition buildPartial() {
io.kubernetes.client.proto.V1.ComponentCondition result = new io.kubernetes.client.proto.V1.ComponentCondition(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.message_ = message_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.error_ = error_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.ComponentCondition) {
return mergeFrom((io.kubernetes.client.proto.V1.ComponentCondition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.ComponentCondition other) {
if (other == io.kubernetes.client.proto.V1.ComponentCondition.getDefaultInstance()) return this;
if (other.hasType()) {
bitField0_ |= 0x00000001;
type_ = other.type_;
onChanged();
}
if (other.hasStatus()) {
bitField0_ |= 0x00000002;
status_ = other.status_;
onChanged();
}
if (other.hasMessage()) {
bitField0_ |= 0x00000004;
message_ = other.message_;
onChanged();
}
if (other.hasError()) {
bitField0_ |= 0x00000008;
error_ = other.error_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ComponentCondition parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ComponentCondition) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object type_ = "";
/**
*
* Type of condition for a component.
* Valid value: "Healthy"
*
*
* optional string type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Type of condition for a component.
* Valid value: "Healthy"
*
*
* optional string type = 1;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
type_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Type of condition for a component.
* Valid value: "Healthy"
*
*
* optional string type = 1;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Type of condition for a component.
* Valid value: "Healthy"
*
*
* optional string type = 1;
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
/**
*
* Type of condition for a component.
* Valid value: "Healthy"
*
*
* optional string type = 1;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
* Type of condition for a component.
* Valid value: "Healthy"
*
*
* optional string type = 1;
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
private java.lang.Object status_ = "";
/**
*
* Status of the condition for a component.
* Valid values for "Healthy": "True", "False", or "Unknown".
*
*
* optional string status = 2;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Status of the condition for a component.
* Valid values for "Healthy": "True", "False", or "Unknown".
*
*
* optional string status = 2;
*/
public java.lang.String getStatus() {
java.lang.Object ref = status_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
status_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Status of the condition for a component.
* Valid values for "Healthy": "True", "False", or "Unknown".
*
*
* optional string status = 2;
*/
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Status of the condition for a component.
* Valid values for "Healthy": "True", "False", or "Unknown".
*
*
* optional string status = 2;
*/
public Builder setStatus(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
status_ = value;
onChanged();
return this;
}
/**
*
* Status of the condition for a component.
* Valid values for "Healthy": "True", "False", or "Unknown".
*
*
* optional string status = 2;
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000002);
status_ = getDefaultInstance().getStatus();
onChanged();
return this;
}
/**
*
* Status of the condition for a component.
* Valid values for "Healthy": "True", "False", or "Unknown".
*
*
* optional string status = 2;
*/
public Builder setStatusBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
status_ = value;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
*
* Message about the condition for a component.
* For example, information about a health check.
* +optional
*
*
* optional string message = 3;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Message about the condition for a component.
* For example, information about a health check.
* +optional
*
*
* optional string message = 3;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Message about the condition for a component.
* For example, information about a health check.
* +optional
*
*
* optional string message = 3;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Message about the condition for a component.
* For example, information about a health check.
* +optional
*
*
* optional string message = 3;
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
message_ = value;
onChanged();
return this;
}
/**
*
* Message about the condition for a component.
* For example, information about a health check.
* +optional
*
*
* optional string message = 3;
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000004);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
*
* Message about the condition for a component.
* For example, information about a health check.
* +optional
*
*
* optional string message = 3;
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
message_ = value;
onChanged();
return this;
}
private java.lang.Object error_ = "";
/**
*
* Condition error code for a component.
* For example, a health check error code.
* +optional
*
*
* optional string error = 4;
*/
public boolean hasError() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Condition error code for a component.
* For example, a health check error code.
* +optional
*
*
* optional string error = 4;
*/
public java.lang.String getError() {
java.lang.Object ref = error_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
error_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Condition error code for a component.
* For example, a health check error code.
* +optional
*
*
* optional string error = 4;
*/
public com.google.protobuf.ByteString
getErrorBytes() {
java.lang.Object ref = error_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
error_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Condition error code for a component.
* For example, a health check error code.
* +optional
*
*
* optional string error = 4;
*/
public Builder setError(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
error_ = value;
onChanged();
return this;
}
/**
*
* Condition error code for a component.
* For example, a health check error code.
* +optional
*
*
* optional string error = 4;
*/
public Builder clearError() {
bitField0_ = (bitField0_ & ~0x00000008);
error_ = getDefaultInstance().getError();
onChanged();
return this;
}
/**
*
* Condition error code for a component.
* For example, a health check error code.
* +optional
*
*
* optional string error = 4;
*/
public Builder setErrorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
error_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ComponentCondition)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ComponentCondition)
private static final io.kubernetes.client.proto.V1.ComponentCondition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ComponentCondition();
}
public static io.kubernetes.client.proto.V1.ComponentCondition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ComponentCondition parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ComponentCondition(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ComponentCondition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ComponentStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ComponentStatus)
com.google.protobuf.MessageOrBuilder {
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
boolean hasMetadata();
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMeta getMetadata();
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder();
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
java.util.List
getConditionsList();
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
io.kubernetes.client.proto.V1.ComponentCondition getConditions(int index);
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
int getConditionsCount();
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
java.util.List extends io.kubernetes.client.proto.V1.ComponentConditionOrBuilder>
getConditionsOrBuilderList();
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
io.kubernetes.client.proto.V1.ComponentConditionOrBuilder getConditionsOrBuilder(
int index);
}
/**
*
* ComponentStatus (and ComponentStatusList) holds the cluster validation info.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ComponentStatus}
*/
public static final class ComponentStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ComponentStatus)
ComponentStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComponentStatus.newBuilder() to construct.
private ComponentStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComponentStatus() {
conditions_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComponentStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
conditions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
conditions_.add(
input.readMessage(io.kubernetes.client.proto.V1.ComponentCondition.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
conditions_ = java.util.Collections.unmodifiableList(conditions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentStatus_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ComponentStatus.class, io.kubernetes.client.proto.V1.ComponentStatus.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_;
}
public static final int CONDITIONS_FIELD_NUMBER = 2;
private java.util.List conditions_;
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public java.util.List getConditionsList() {
return conditions_;
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1.ComponentConditionOrBuilder>
getConditionsOrBuilderList() {
return conditions_;
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public int getConditionsCount() {
return conditions_.size();
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public io.kubernetes.client.proto.V1.ComponentCondition getConditions(int index) {
return conditions_.get(index);
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public io.kubernetes.client.proto.V1.ComponentConditionOrBuilder getConditionsOrBuilder(
int index) {
return conditions_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
for (int i = 0; i < conditions_.size(); i++) {
output.writeMessage(2, conditions_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMetadata());
}
for (int i = 0; i < conditions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, conditions_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.ComponentStatus)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.ComponentStatus other = (io.kubernetes.client.proto.V1.ComponentStatus) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata()
.equals(other.getMetadata());
}
result = result && getConditionsList()
.equals(other.getConditionsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (getConditionsCount() > 0) {
hash = (37 * hash) + CONDITIONS_FIELD_NUMBER;
hash = (53 * hash) + getConditionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.ComponentStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ComponentStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ComponentStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ComponentStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ComponentStatus parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ComponentStatus parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ComponentStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.ComponentStatus prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ComponentStatus (and ComponentStatusList) holds the cluster validation info.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ComponentStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ComponentStatus)
io.kubernetes.client.proto.V1.ComponentStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentStatus_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ComponentStatus.class, io.kubernetes.client.proto.V1.ComponentStatus.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.ComponentStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getConditionsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (conditionsBuilder_ == null) {
conditions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
conditionsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentStatus_descriptor;
}
public io.kubernetes.client.proto.V1.ComponentStatus getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ComponentStatus.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ComponentStatus build() {
io.kubernetes.client.proto.V1.ComponentStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.ComponentStatus buildPartial() {
io.kubernetes.client.proto.V1.ComponentStatus result = new io.kubernetes.client.proto.V1.ComponentStatus(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (conditionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
conditions_ = java.util.Collections.unmodifiableList(conditions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.conditions_ = conditions_;
} else {
result.conditions_ = conditionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.ComponentStatus) {
return mergeFrom((io.kubernetes.client.proto.V1.ComponentStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.ComponentStatus other) {
if (other == io.kubernetes.client.proto.V1.ComponentStatus.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (conditionsBuilder_ == null) {
if (!other.conditions_.isEmpty()) {
if (conditions_.isEmpty()) {
conditions_ = other.conditions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureConditionsIsMutable();
conditions_.addAll(other.conditions_);
}
onChanged();
}
} else {
if (!other.conditions_.isEmpty()) {
if (conditionsBuilder_.isEmpty()) {
conditionsBuilder_.dispose();
conditionsBuilder_ = null;
conditions_ = other.conditions_;
bitField0_ = (bitField0_ & ~0x00000002);
conditionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConditionsFieldBuilder() : null;
} else {
conditionsBuilder_.addAllMessages(other.conditions_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ComponentStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ComponentStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_;
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(
io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
metadata_ != null &&
metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) {
metadata_ =
io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_;
}
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private java.util.List conditions_ =
java.util.Collections.emptyList();
private void ensureConditionsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
conditions_ = new java.util.ArrayList(conditions_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.ComponentCondition, io.kubernetes.client.proto.V1.ComponentCondition.Builder, io.kubernetes.client.proto.V1.ComponentConditionOrBuilder> conditionsBuilder_;
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public java.util.List getConditionsList() {
if (conditionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(conditions_);
} else {
return conditionsBuilder_.getMessageList();
}
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public int getConditionsCount() {
if (conditionsBuilder_ == null) {
return conditions_.size();
} else {
return conditionsBuilder_.getCount();
}
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public io.kubernetes.client.proto.V1.ComponentCondition getConditions(int index) {
if (conditionsBuilder_ == null) {
return conditions_.get(index);
} else {
return conditionsBuilder_.getMessage(index);
}
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public Builder setConditions(
int index, io.kubernetes.client.proto.V1.ComponentCondition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.set(index, value);
onChanged();
} else {
conditionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public Builder setConditions(
int index, io.kubernetes.client.proto.V1.ComponentCondition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.set(index, builderForValue.build());
onChanged();
} else {
conditionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public Builder addConditions(io.kubernetes.client.proto.V1.ComponentCondition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.add(value);
onChanged();
} else {
conditionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public Builder addConditions(
int index, io.kubernetes.client.proto.V1.ComponentCondition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.add(index, value);
onChanged();
} else {
conditionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public Builder addConditions(
io.kubernetes.client.proto.V1.ComponentCondition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.add(builderForValue.build());
onChanged();
} else {
conditionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public Builder addConditions(
int index, io.kubernetes.client.proto.V1.ComponentCondition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.add(index, builderForValue.build());
onChanged();
} else {
conditionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public Builder addAllConditions(
java.lang.Iterable extends io.kubernetes.client.proto.V1.ComponentCondition> values) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, conditions_);
onChanged();
} else {
conditionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public Builder clearConditions() {
if (conditionsBuilder_ == null) {
conditions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
conditionsBuilder_.clear();
}
return this;
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public Builder removeConditions(int index) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.remove(index);
onChanged();
} else {
conditionsBuilder_.remove(index);
}
return this;
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public io.kubernetes.client.proto.V1.ComponentCondition.Builder getConditionsBuilder(
int index) {
return getConditionsFieldBuilder().getBuilder(index);
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public io.kubernetes.client.proto.V1.ComponentConditionOrBuilder getConditionsOrBuilder(
int index) {
if (conditionsBuilder_ == null) {
return conditions_.get(index); } else {
return conditionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1.ComponentConditionOrBuilder>
getConditionsOrBuilderList() {
if (conditionsBuilder_ != null) {
return conditionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(conditions_);
}
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public io.kubernetes.client.proto.V1.ComponentCondition.Builder addConditionsBuilder() {
return getConditionsFieldBuilder().addBuilder(
io.kubernetes.client.proto.V1.ComponentCondition.getDefaultInstance());
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public io.kubernetes.client.proto.V1.ComponentCondition.Builder addConditionsBuilder(
int index) {
return getConditionsFieldBuilder().addBuilder(
index, io.kubernetes.client.proto.V1.ComponentCondition.getDefaultInstance());
}
/**
*
* List of component conditions observed
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2;
*/
public java.util.List
getConditionsBuilderList() {
return getConditionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.ComponentCondition, io.kubernetes.client.proto.V1.ComponentCondition.Builder, io.kubernetes.client.proto.V1.ComponentConditionOrBuilder>
getConditionsFieldBuilder() {
if (conditionsBuilder_ == null) {
conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.ComponentCondition, io.kubernetes.client.proto.V1.ComponentCondition.Builder, io.kubernetes.client.proto.V1.ComponentConditionOrBuilder>(
conditions_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
conditions_ = null;
}
return conditionsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ComponentStatus)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ComponentStatus)
private static final io.kubernetes.client.proto.V1.ComponentStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ComponentStatus();
}
public static io.kubernetes.client.proto.V1.ComponentStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ComponentStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ComponentStatus(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ComponentStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ComponentStatusListOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ComponentStatusList)
com.google.protobuf.MessageOrBuilder {
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
boolean hasMetadata();
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ListMeta getMetadata();
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder();
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
java.util.List
getItemsList();
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
io.kubernetes.client.proto.V1.ComponentStatus getItems(int index);
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
int getItemsCount();
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
java.util.List extends io.kubernetes.client.proto.V1.ComponentStatusOrBuilder>
getItemsOrBuilderList();
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
io.kubernetes.client.proto.V1.ComponentStatusOrBuilder getItemsOrBuilder(
int index);
}
/**
*
* Status of all the conditions for the component as a list of ComponentStatus objects.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ComponentStatusList}
*/
public static final class ComponentStatusList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ComponentStatusList)
ComponentStatusListOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComponentStatusList.newBuilder() to construct.
private ComponentStatusList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComponentStatusList() {
items_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComponentStatusList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
items_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
items_.add(
input.readMessage(io.kubernetes.client.proto.V1.ComponentStatus.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
items_ = java.util.Collections.unmodifiableList(items_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentStatusList_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentStatusList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ComponentStatusList.class, io.kubernetes.client.proto.V1.ComponentStatusList.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ListMeta metadata_;
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_;
}
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_;
}
public static final int ITEMS_FIELD_NUMBER = 2;
private java.util.List items_;
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public java.util.List getItemsList() {
return items_;
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1.ComponentStatusOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public int getItemsCount() {
return items_.size();
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public io.kubernetes.client.proto.V1.ComponentStatus getItems(int index) {
return items_.get(index);
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public io.kubernetes.client.proto.V1.ComponentStatusOrBuilder getItemsOrBuilder(
int index) {
return items_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(2, items_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMetadata());
}
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, items_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.ComponentStatusList)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.ComponentStatusList other = (io.kubernetes.client.proto.V1.ComponentStatusList) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata()
.equals(other.getMetadata());
}
result = result && getItemsList()
.equals(other.getItemsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.ComponentStatusList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ComponentStatusList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentStatusList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ComponentStatusList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentStatusList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ComponentStatusList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentStatusList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ComponentStatusList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentStatusList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ComponentStatusList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ComponentStatusList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ComponentStatusList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.ComponentStatusList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Status of all the conditions for the component as a list of ComponentStatus objects.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ComponentStatusList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ComponentStatusList)
io.kubernetes.client.proto.V1.ComponentStatusListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentStatusList_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentStatusList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ComponentStatusList.class, io.kubernetes.client.proto.V1.ComponentStatusList.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.ComponentStatusList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getItemsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
itemsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ComponentStatusList_descriptor;
}
public io.kubernetes.client.proto.V1.ComponentStatusList getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ComponentStatusList.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ComponentStatusList build() {
io.kubernetes.client.proto.V1.ComponentStatusList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.ComponentStatusList buildPartial() {
io.kubernetes.client.proto.V1.ComponentStatusList result = new io.kubernetes.client.proto.V1.ComponentStatusList(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.ComponentStatusList) {
return mergeFrom((io.kubernetes.client.proto.V1.ComponentStatusList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.ComponentStatusList other) {
if (other == io.kubernetes.client.proto.V1.ComponentStatusList.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getItemsFieldBuilder() : null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ComponentStatusList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ComponentStatusList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_;
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder setMetadata(
io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
metadata_ != null &&
metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) {
metadata_ =
io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_;
}
}
/**
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = new java.util.ArrayList(items_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.ComponentStatus, io.kubernetes.client.proto.V1.ComponentStatus.Builder, io.kubernetes.client.proto.V1.ComponentStatusOrBuilder> itemsBuilder_;
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public io.kubernetes.client.proto.V1.ComponentStatus getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public Builder setItems(
int index, io.kubernetes.client.proto.V1.ComponentStatus value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public Builder setItems(
int index, io.kubernetes.client.proto.V1.ComponentStatus.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public Builder addItems(io.kubernetes.client.proto.V1.ComponentStatus value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public Builder addItems(
int index, io.kubernetes.client.proto.V1.ComponentStatus value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public Builder addItems(
io.kubernetes.client.proto.V1.ComponentStatus.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public Builder addItems(
int index, io.kubernetes.client.proto.V1.ComponentStatus.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public Builder addAllItems(
java.lang.Iterable extends io.kubernetes.client.proto.V1.ComponentStatus> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public io.kubernetes.client.proto.V1.ComponentStatus.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public io.kubernetes.client.proto.V1.ComponentStatusOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index); } else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1.ComponentStatusOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public io.kubernetes.client.proto.V1.ComponentStatus.Builder addItemsBuilder() {
return getItemsFieldBuilder().addBuilder(
io.kubernetes.client.proto.V1.ComponentStatus.getDefaultInstance());
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public io.kubernetes.client.proto.V1.ComponentStatus.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder().addBuilder(
index, io.kubernetes.client.proto.V1.ComponentStatus.getDefaultInstance());
}
/**
*
* List of ComponentStatus objects.
*
*
* repeated .k8s.io.api.core.v1.ComponentStatus items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.ComponentStatus, io.kubernetes.client.proto.V1.ComponentStatus.Builder, io.kubernetes.client.proto.V1.ComponentStatusOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.ComponentStatus, io.kubernetes.client.proto.V1.ComponentStatus.Builder, io.kubernetes.client.proto.V1.ComponentStatusOrBuilder>(
items_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ComponentStatusList)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ComponentStatusList)
private static final io.kubernetes.client.proto.V1.ComponentStatusList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ComponentStatusList();
}
public static io.kubernetes.client.proto.V1.ComponentStatusList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ComponentStatusList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ComponentStatusList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ComponentStatusList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigMapOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ConfigMap)
com.google.protobuf.MessageOrBuilder {
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
boolean hasMetadata();
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMeta getMetadata();
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder();
/**
*
* Data contains the configuration data.
* Each key must consist of alphanumeric characters, '-', '_' or '.'.
* +optional
*
*
* map<string, string> data = 2;
*/
int getDataCount();
/**
*
* Data contains the configuration data.
* Each key must consist of alphanumeric characters, '-', '_' or '.'.
* +optional
*
*
* map<string, string> data = 2;
*/
boolean containsData(
java.lang.String key);
/**
* Use {@link #getDataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getData();
/**
*
* Data contains the configuration data.
* Each key must consist of alphanumeric characters, '-', '_' or '.'.
* +optional
*
*
* map<string, string> data = 2;
*/
java.util.Map
getDataMap();
/**
*
* Data contains the configuration data.
* Each key must consist of alphanumeric characters, '-', '_' or '.'.
* +optional
*
*
* map<string, string> data = 2;
*/
java.lang.String getDataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Data contains the configuration data.
* Each key must consist of alphanumeric characters, '-', '_' or '.'.
* +optional
*
*
* map<string, string> data = 2;
*/
java.lang.String getDataOrThrow(
java.lang.String key);
}
/**
*
* ConfigMap holds configuration data for pods to consume.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ConfigMap}
*/
public static final class ConfigMap extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ConfigMap)
ConfigMapOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConfigMap.newBuilder() to construct.
private ConfigMap(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigMap() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConfigMap(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
data_ = com.google.protobuf.MapField.newMapField(
DataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
data__ = input.readMessage(
DataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
data_.getMutableMap().put(
data__.getKey(), data__.getValue());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMap_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetData();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ConfigMap.class, io.kubernetes.client.proto.V1.ConfigMap.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/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 DATA_FIELD_NUMBER = 2;
private static final class DataDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> 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<
java.lang.String, java.lang.String> 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 '.'.
* +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 '.'.
* +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 '.'.
* +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 '.'.
* +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);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
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);
unknownFields.writeTo(output);
}
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__);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return 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 && internalGetData().equals(
other.internalGetData());
result = result && unknownFields.equals(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 (!internalGetData().getMap().isEmpty()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetData().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);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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();
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();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
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();
}
}
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableData().clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMap_descriptor;
}
public io.kubernetes.client.proto.V1.ConfigMap getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ConfigMap.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ConfigMap build() {
io.kubernetes.client.proto.V1.ConfigMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
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();
}
result.data_ = internalGetData();
result.data_.makeImmutable();
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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());
}
internalGetMutableData().mergeFrom(
other.internalGetData());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
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/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(
io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
metadata_ != null &&
metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) {
metadata_ =
io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_;
}
}
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> data_;
private com.google.protobuf.MapField
internalGetData() {
if (data_ == null) {
return com.google.protobuf.MapField.emptyMapField(
DataDefaultEntryHolder.defaultEntry);
}
return data_;
}
private com.google.protobuf.MapField
internalGetMutableData() {
onChanged();;
if (data_ == null) {
data_ = com.google.protobuf.MapField.newMapField(
DataDefaultEntryHolder.defaultEntry);
}
if (!data_.isMutable()) {
data_ = data_.copy();
}
return data_;
}
public int getDataCount() {
return internalGetData().getMap().size();
}
/**
*
* Data contains the configuration data.
* Each key must consist of alphanumeric characters, '-', '_' or '.'.
* +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 '.'.
* +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 '.'.
* +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 '.'.
* +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 '.'.
* +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 '.'.
* +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 '.'.
* +optional
*
*
* map<string, string> data = 2;
*/
public Builder putAllData(
java.util.Map values) {
internalGetMutableData().getMutableMap()
.putAll(values);
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
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() {
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;
}
public io.kubernetes.client.proto.V1.ConfigMap getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigMapEnvSourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ConfigMapEnvSource)
com.google.protobuf.MessageOrBuilder {
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
boolean hasLocalObjectReference();
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference();
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder();
/**
*
* Specify whether the ConfigMap must be defined
* +optional
*
*
* optional bool optional = 2;
*/
boolean hasOptional();
/**
*
* Specify whether the ConfigMap must be defined
* +optional
*
*
* optional bool optional = 2;
*/
boolean getOptional();
}
/**
*
* ConfigMapEnvSource selects a ConfigMap to populate the environment
* variables with.
*
* The contents of the target ConfigMap's Data field will represent the
* key-value pairs as environment variables.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ConfigMapEnvSource}
*/
public static final class ConfigMapEnvSource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ConfigMapEnvSource)
ConfigMapEnvSourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConfigMapEnvSource.newBuilder() to construct.
private ConfigMapEnvSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigMapEnvSource() {
optional_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConfigMapEnvSource(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
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;
}
}
}
} catch (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;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapEnvSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ConfigMapEnvSource.class, io.kubernetes.client.proto.V1.ConfigMapEnvSource.Builder.class);
}
private int bitField0_;
public static final int LOCALOBJECTREFERENCE_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_;
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public boolean hasLocalObjectReference() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() {
return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() {
return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
}
public static final int OPTIONAL_FIELD_NUMBER = 2;
private boolean optional_;
/**
*
* Specify whether the ConfigMap must be defined
* +optional
*
*
* optional bool optional = 2;
*/
public boolean hasOptional() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Specify whether the ConfigMap must be defined
* +optional
*
*
* optional bool optional = 2;
*/
public boolean getOptional() {
return optional_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
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);
}
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);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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;
}
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();
}
}
public Builder clear() {
super.clear();
if (localObjectReferenceBuilder_ == null) {
localObjectReference_ = null;
} else {
localObjectReferenceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
optional_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapEnvSource_descriptor;
}
public io.kubernetes.client.proto.V1.ConfigMapEnvSource getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ConfigMapEnvSource.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ConfigMapEnvSource build() {
io.kubernetes.client.proto.V1.ConfigMapEnvSource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
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;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ConfigMapEnvSource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ConfigMapEnvSource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> localObjectReferenceBuilder_;
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public boolean hasLocalObjectReference() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() {
if (localObjectReferenceBuilder_ == null) {
return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
} else {
return localObjectReferenceBuilder_.getMessage();
}
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder setLocalObjectReference(io.kubernetes.client.proto.V1.LocalObjectReference value) {
if (localObjectReferenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localObjectReference_ = value;
onChanged();
} else {
localObjectReferenceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder setLocalObjectReference(
io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) {
if (localObjectReferenceBuilder_ == null) {
localObjectReference_ = builderForValue.build();
onChanged();
} else {
localObjectReferenceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder mergeLocalObjectReference(io.kubernetes.client.proto.V1.LocalObjectReference value) {
if (localObjectReferenceBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
localObjectReference_ != null &&
localObjectReference_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) {
localObjectReference_ =
io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(localObjectReference_).mergeFrom(value).buildPartial();
} else {
localObjectReference_ = value;
}
onChanged();
} else {
localObjectReferenceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder clearLocalObjectReference() {
if (localObjectReferenceBuilder_ == null) {
localObjectReference_ = null;
onChanged();
} else {
localObjectReferenceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getLocalObjectReferenceBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getLocalObjectReferenceFieldBuilder().getBuilder();
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() {
if (localObjectReferenceBuilder_ != null) {
return localObjectReferenceBuilder_.getMessageOrBuilder();
} else {
return localObjectReference_ == null ?
io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
}
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>
getLocalObjectReferenceFieldBuilder() {
if (localObjectReferenceBuilder_ == null) {
localObjectReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>(
getLocalObjectReference(),
getParentForChildren(),
isClean());
localObjectReference_ = null;
}
return localObjectReferenceBuilder_;
}
private boolean optional_ ;
/**
*
* Specify whether the ConfigMap must be defined
* +optional
*
*
* optional bool optional = 2;
*/
public boolean hasOptional() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Specify whether the ConfigMap must be defined
* +optional
*
*
* optional bool optional = 2;
*/
public boolean getOptional() {
return optional_;
}
/**
*
* Specify whether the ConfigMap must be defined
* +optional
*
*
* optional bool optional = 2;
*/
public Builder setOptional(boolean value) {
bitField0_ |= 0x00000002;
optional_ = value;
onChanged();
return this;
}
/**
*
* Specify whether the ConfigMap must be defined
* +optional
*
*
* optional bool optional = 2;
*/
public Builder clearOptional() {
bitField0_ = (bitField0_ & ~0x00000002);
optional_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ConfigMapEnvSource)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ConfigMapEnvSource)
private static final io.kubernetes.client.proto.V1.ConfigMapEnvSource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ConfigMapEnvSource();
}
public static io.kubernetes.client.proto.V1.ConfigMapEnvSource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigMapEnvSource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigMapEnvSource(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ConfigMapEnvSource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigMapKeySelectorOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ConfigMapKeySelector)
com.google.protobuf.MessageOrBuilder {
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
boolean hasLocalObjectReference();
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference();
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder();
/**
*
* The key to select.
*
*
* optional string key = 2;
*/
boolean hasKey();
/**
*
* The key to select.
*
*
* optional string key = 2;
*/
java.lang.String getKey();
/**
*
* The key to select.
*
*
* optional string key = 2;
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
*
* Specify whether the ConfigMap or it's key must be defined
* +optional
*
*
* optional bool optional = 3;
*/
boolean hasOptional();
/**
*
* Specify whether the ConfigMap or it's key must be defined
* +optional
*
*
* optional bool optional = 3;
*/
boolean getOptional();
}
/**
*
* Selects a key from a ConfigMap.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ConfigMapKeySelector}
*/
public static final class ConfigMapKeySelector extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ConfigMapKeySelector)
ConfigMapKeySelectorOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConfigMapKeySelector.newBuilder() to construct.
private ConfigMapKeySelector(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigMapKeySelector() {
key_ = "";
optional_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConfigMapKeySelector(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
io.kubernetes.client.proto.V1.LocalObjectReference.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = localObjectReference_.toBuilder();
}
localObjectReference_ = input.readMessage(io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localObjectReference_);
localObjectReference_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
key_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
optional_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ConfigMapKeySelector.class, io.kubernetes.client.proto.V1.ConfigMapKeySelector.Builder.class);
}
private int bitField0_;
public static final int LOCALOBJECTREFERENCE_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_;
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public boolean hasLocalObjectReference() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() {
return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() {
return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
}
public static final int KEY_FIELD_NUMBER = 2;
private volatile java.lang.Object key_;
/**
*
* The key to select.
*
*
* optional string key = 2;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* The key to select.
*
*
* optional string key = 2;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
}
}
/**
*
* The key to select.
*
*
* optional string key = 2;
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONAL_FIELD_NUMBER = 3;
private boolean optional_;
/**
*
* Specify whether the ConfigMap or it's key must be defined
* +optional
*
*
* optional bool optional = 3;
*/
public boolean hasOptional() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Specify whether the ConfigMap or it's key must be defined
* +optional
*
*
* optional bool optional = 3;
*/
public boolean getOptional() {
return optional_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getLocalObjectReference());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, optional_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLocalObjectReference());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, optional_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.ConfigMapKeySelector)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.ConfigMapKeySelector other = (io.kubernetes.client.proto.V1.ConfigMapKeySelector) obj;
boolean result = true;
result = result && (hasLocalObjectReference() == other.hasLocalObjectReference());
if (hasLocalObjectReference()) {
result = result && getLocalObjectReference()
.equals(other.getLocalObjectReference());
}
result = result && (hasKey() == other.hasKey());
if (hasKey()) {
result = result && getKey()
.equals(other.getKey());
}
result = result && (hasOptional() == other.hasOptional());
if (hasOptional()) {
result = result && (getOptional()
== other.getOptional());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasLocalObjectReference()) {
hash = (37 * hash) + LOCALOBJECTREFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getLocalObjectReference().hashCode();
}
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasOptional()) {
hash = (37 * hash) + OPTIONAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOptional());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.ConfigMapKeySelector prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Selects a key from a ConfigMap.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ConfigMapKeySelector}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ConfigMapKeySelector)
io.kubernetes.client.proto.V1.ConfigMapKeySelectorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ConfigMapKeySelector.class, io.kubernetes.client.proto.V1.ConfigMapKeySelector.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.ConfigMapKeySelector.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLocalObjectReferenceFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (localObjectReferenceBuilder_ == null) {
localObjectReference_ = null;
} else {
localObjectReferenceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
key_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
optional_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_descriptor;
}
public io.kubernetes.client.proto.V1.ConfigMapKeySelector getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ConfigMapKeySelector.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ConfigMapKeySelector build() {
io.kubernetes.client.proto.V1.ConfigMapKeySelector result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.ConfigMapKeySelector buildPartial() {
io.kubernetes.client.proto.V1.ConfigMapKeySelector result = new io.kubernetes.client.proto.V1.ConfigMapKeySelector(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (localObjectReferenceBuilder_ == null) {
result.localObjectReference_ = localObjectReference_;
} else {
result.localObjectReference_ = localObjectReferenceBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.optional_ = optional_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.ConfigMapKeySelector) {
return mergeFrom((io.kubernetes.client.proto.V1.ConfigMapKeySelector)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.ConfigMapKeySelector other) {
if (other == io.kubernetes.client.proto.V1.ConfigMapKeySelector.getDefaultInstance()) return this;
if (other.hasLocalObjectReference()) {
mergeLocalObjectReference(other.getLocalObjectReference());
}
if (other.hasKey()) {
bitField0_ |= 0x00000002;
key_ = other.key_;
onChanged();
}
if (other.hasOptional()) {
setOptional(other.getOptional());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ConfigMapKeySelector parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ConfigMapKeySelector) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> localObjectReferenceBuilder_;
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public boolean hasLocalObjectReference() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() {
if (localObjectReferenceBuilder_ == null) {
return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
} else {
return localObjectReferenceBuilder_.getMessage();
}
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder setLocalObjectReference(io.kubernetes.client.proto.V1.LocalObjectReference value) {
if (localObjectReferenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localObjectReference_ = value;
onChanged();
} else {
localObjectReferenceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder setLocalObjectReference(
io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) {
if (localObjectReferenceBuilder_ == null) {
localObjectReference_ = builderForValue.build();
onChanged();
} else {
localObjectReferenceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder mergeLocalObjectReference(io.kubernetes.client.proto.V1.LocalObjectReference value) {
if (localObjectReferenceBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
localObjectReference_ != null &&
localObjectReference_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) {
localObjectReference_ =
io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(localObjectReference_).mergeFrom(value).buildPartial();
} else {
localObjectReference_ = value;
}
onChanged();
} else {
localObjectReferenceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder clearLocalObjectReference() {
if (localObjectReferenceBuilder_ == null) {
localObjectReference_ = null;
onChanged();
} else {
localObjectReferenceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getLocalObjectReferenceBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getLocalObjectReferenceFieldBuilder().getBuilder();
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() {
if (localObjectReferenceBuilder_ != null) {
return localObjectReferenceBuilder_.getMessageOrBuilder();
} else {
return localObjectReference_ == null ?
io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
}
}
/**
*
* The ConfigMap to select from.
*
*
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>
getLocalObjectReferenceFieldBuilder() {
if (localObjectReferenceBuilder_ == null) {
localObjectReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>(
getLocalObjectReference(),
getParentForChildren(),
isClean());
localObjectReference_ = null;
}
return localObjectReferenceBuilder_;
}
private java.lang.Object key_ = "";
/**
*
* The key to select.
*
*
* optional string key = 2;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* The key to select.
*
*
* optional string key = 2;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The key to select.
*
*
* optional string key = 2;
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The key to select.
*
*
* optional string key = 2;
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
key_ = value;
onChanged();
return this;
}
/**
*
* The key to select.
*
*
* optional string key = 2;
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000002);
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
*
* The key to select.
*
*
* optional string key = 2;
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
key_ = value;
onChanged();
return this;
}
private boolean optional_ ;
/**
*
* Specify whether the ConfigMap or it's key must be defined
* +optional
*
*
* optional bool optional = 3;
*/
public boolean hasOptional() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Specify whether the ConfigMap or it's key must be defined
* +optional
*
*
* optional bool optional = 3;
*/
public boolean getOptional() {
return optional_;
}
/**
*
* Specify whether the ConfigMap or it's key must be defined
* +optional
*
*
* optional bool optional = 3;
*/
public Builder setOptional(boolean value) {
bitField0_ |= 0x00000004;
optional_ = value;
onChanged();
return this;
}
/**
*
* Specify whether the ConfigMap or it's key must be defined
* +optional
*
*
* optional bool optional = 3;
*/
public Builder clearOptional() {
bitField0_ = (bitField0_ & ~0x00000004);
optional_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ConfigMapKeySelector)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ConfigMapKeySelector)
private static final io.kubernetes.client.proto.V1.ConfigMapKeySelector DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ConfigMapKeySelector();
}
public static io.kubernetes.client.proto.V1.ConfigMapKeySelector getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigMapKeySelector parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigMapKeySelector(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ConfigMapKeySelector getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigMapListOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ConfigMapList)
com.google.protobuf.MessageOrBuilder {
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
boolean hasMetadata();
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ListMeta getMetadata();
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder();
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
java.util.List
getItemsList();
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
io.kubernetes.client.proto.V1.ConfigMap getItems(int index);
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
int getItemsCount();
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
java.util.List extends io.kubernetes.client.proto.V1.ConfigMapOrBuilder>
getItemsOrBuilderList();
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
io.kubernetes.client.proto.V1.ConfigMapOrBuilder getItemsOrBuilder(
int index);
}
/**
*
* ConfigMapList is a resource containing a list of ConfigMap objects.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ConfigMapList}
*/
public static final class ConfigMapList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ConfigMapList)
ConfigMapListOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConfigMapList.newBuilder() to construct.
private ConfigMapList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigMapList() {
items_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConfigMapList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
items_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
items_.add(
input.readMessage(io.kubernetes.client.proto.V1.ConfigMap.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
items_ = java.util.Collections.unmodifiableList(items_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapList_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ConfigMapList.class, io.kubernetes.client.proto.V1.ConfigMapList.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ListMeta metadata_;
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_;
}
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_;
}
public static final int ITEMS_FIELD_NUMBER = 2;
private java.util.List items_;
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public java.util.List getItemsList() {
return items_;
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1.ConfigMapOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public int getItemsCount() {
return items_.size();
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public io.kubernetes.client.proto.V1.ConfigMap getItems(int index) {
return items_.get(index);
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public io.kubernetes.client.proto.V1.ConfigMapOrBuilder getItemsOrBuilder(
int index) {
return items_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(2, items_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMetadata());
}
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, items_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.ConfigMapList)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.ConfigMapList other = (io.kubernetes.client.proto.V1.ConfigMapList) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata()
.equals(other.getMetadata());
}
result = result && getItemsList()
.equals(other.getItemsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.ConfigMapList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ConfigMapList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ConfigMapList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ConfigMapList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ConfigMapList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ConfigMapList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ConfigMapList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.ConfigMapList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ConfigMapList is a resource containing a list of ConfigMap objects.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ConfigMapList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ConfigMapList)
io.kubernetes.client.proto.V1.ConfigMapListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapList_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ConfigMapList.class, io.kubernetes.client.proto.V1.ConfigMapList.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.ConfigMapList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getItemsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
itemsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapList_descriptor;
}
public io.kubernetes.client.proto.V1.ConfigMapList getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ConfigMapList.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ConfigMapList build() {
io.kubernetes.client.proto.V1.ConfigMapList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.ConfigMapList buildPartial() {
io.kubernetes.client.proto.V1.ConfigMapList result = new io.kubernetes.client.proto.V1.ConfigMapList(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.ConfigMapList) {
return mergeFrom((io.kubernetes.client.proto.V1.ConfigMapList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.ConfigMapList other) {
if (other == io.kubernetes.client.proto.V1.ConfigMapList.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getItemsFieldBuilder() : null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ConfigMapList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ConfigMapList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_;
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder setMetadata(
io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
metadata_ != null &&
metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) {
metadata_ =
io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_;
}
}
/**
*
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = new java.util.ArrayList(items_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.ConfigMap, io.kubernetes.client.proto.V1.ConfigMap.Builder, io.kubernetes.client.proto.V1.ConfigMapOrBuilder> itemsBuilder_;
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public io.kubernetes.client.proto.V1.ConfigMap getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public Builder setItems(
int index, io.kubernetes.client.proto.V1.ConfigMap value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public Builder setItems(
int index, io.kubernetes.client.proto.V1.ConfigMap.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public Builder addItems(io.kubernetes.client.proto.V1.ConfigMap value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public Builder addItems(
int index, io.kubernetes.client.proto.V1.ConfigMap value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public Builder addItems(
io.kubernetes.client.proto.V1.ConfigMap.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public Builder addItems(
int index, io.kubernetes.client.proto.V1.ConfigMap.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public Builder addAllItems(
java.lang.Iterable extends io.kubernetes.client.proto.V1.ConfigMap> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public io.kubernetes.client.proto.V1.ConfigMap.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public io.kubernetes.client.proto.V1.ConfigMapOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index); } else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1.ConfigMapOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public io.kubernetes.client.proto.V1.ConfigMap.Builder addItemsBuilder() {
return getItemsFieldBuilder().addBuilder(
io.kubernetes.client.proto.V1.ConfigMap.getDefaultInstance());
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public io.kubernetes.client.proto.V1.ConfigMap.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder().addBuilder(
index, io.kubernetes.client.proto.V1.ConfigMap.getDefaultInstance());
}
/**
*
* Items is the list of ConfigMaps.
*
*
* repeated .k8s.io.api.core.v1.ConfigMap items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.ConfigMap, io.kubernetes.client.proto.V1.ConfigMap.Builder, io.kubernetes.client.proto.V1.ConfigMapOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.ConfigMap, io.kubernetes.client.proto.V1.ConfigMap.Builder, io.kubernetes.client.proto.V1.ConfigMapOrBuilder>(
items_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ConfigMapList)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ConfigMapList)
private static final io.kubernetes.client.proto.V1.ConfigMapList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ConfigMapList();
}
public static io.kubernetes.client.proto.V1.ConfigMapList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigMapList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigMapList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ConfigMapList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigMapProjectionOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ConfigMapProjection)
com.google.protobuf.MessageOrBuilder {
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
boolean hasLocalObjectReference();
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference();
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder();
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
java.util.List
getItemsList();
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
io.kubernetes.client.proto.V1.KeyToPath getItems(int index);
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
int getItemsCount();
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
java.util.List extends io.kubernetes.client.proto.V1.KeyToPathOrBuilder>
getItemsOrBuilderList();
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(
int index);
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
boolean hasOptional();
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
boolean getOptional();
}
/**
*
* Adapts a ConfigMap into a projected volume.
*
* The contents of the target ConfigMap's Data field will be presented in a
* projected volume as files using the keys in the Data field as the file names,
* unless the items element is populated with specific mappings of keys to paths.
* Note that this is identical to a configmap volume source without the default
* mode.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ConfigMapProjection}
*/
public static final class ConfigMapProjection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ConfigMapProjection)
ConfigMapProjectionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConfigMapProjection.newBuilder() to construct.
private ConfigMapProjection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigMapProjection() {
items_ = java.util.Collections.emptyList();
optional_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConfigMapProjection(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
io.kubernetes.client.proto.V1.LocalObjectReference.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = localObjectReference_.toBuilder();
}
localObjectReference_ = input.readMessage(io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localObjectReference_);
localObjectReference_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
items_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
items_.add(
input.readMessage(io.kubernetes.client.proto.V1.KeyToPath.PARSER, extensionRegistry));
break;
}
case 32: {
bitField0_ |= 0x00000002;
optional_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
items_ = java.util.Collections.unmodifiableList(items_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapProjection_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapProjection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ConfigMapProjection.class, io.kubernetes.client.proto.V1.ConfigMapProjection.Builder.class);
}
private int bitField0_;
public static final int LOCALOBJECTREFERENCE_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_;
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public boolean hasLocalObjectReference() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() {
return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() {
return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
}
public static final int ITEMS_FIELD_NUMBER = 2;
private java.util.List items_;
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public java.util.List getItemsList() {
return items_;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1.KeyToPathOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public int getItemsCount() {
return items_.size();
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public io.kubernetes.client.proto.V1.KeyToPath getItems(int index) {
return items_.get(index);
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(
int index) {
return items_.get(index);
}
public static final int OPTIONAL_FIELD_NUMBER = 4;
private boolean optional_;
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
public boolean hasOptional() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
public boolean getOptional() {
return optional_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getLocalObjectReference());
}
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(2, items_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(4, optional_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLocalObjectReference());
}
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, items_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, optional_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.ConfigMapProjection)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.ConfigMapProjection other = (io.kubernetes.client.proto.V1.ConfigMapProjection) obj;
boolean result = true;
result = result && (hasLocalObjectReference() == other.hasLocalObjectReference());
if (hasLocalObjectReference()) {
result = result && getLocalObjectReference()
.equals(other.getLocalObjectReference());
}
result = result && getItemsList()
.equals(other.getItemsList());
result = result && (hasOptional() == other.hasOptional());
if (hasOptional()) {
result = result && (getOptional()
== other.getOptional());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasLocalObjectReference()) {
hash = (37 * hash) + LOCALOBJECTREFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getLocalObjectReference().hashCode();
}
if (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
if (hasOptional()) {
hash = (37 * hash) + OPTIONAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOptional());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.ConfigMapProjection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ConfigMapProjection parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapProjection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ConfigMapProjection parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapProjection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ConfigMapProjection parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapProjection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ConfigMapProjection parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapProjection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ConfigMapProjection parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapProjection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ConfigMapProjection parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.ConfigMapProjection prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Adapts a ConfigMap into a projected volume.
*
* The contents of the target ConfigMap's Data field will be presented in a
* projected volume as files using the keys in the Data field as the file names,
* unless the items element is populated with specific mappings of keys to paths.
* Note that this is identical to a configmap volume source without the default
* mode.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ConfigMapProjection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ConfigMapProjection)
io.kubernetes.client.proto.V1.ConfigMapProjectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapProjection_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapProjection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ConfigMapProjection.class, io.kubernetes.client.proto.V1.ConfigMapProjection.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.ConfigMapProjection.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLocalObjectReferenceFieldBuilder();
getItemsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (localObjectReferenceBuilder_ == null) {
localObjectReference_ = null;
} else {
localObjectReferenceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
itemsBuilder_.clear();
}
optional_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapProjection_descriptor;
}
public io.kubernetes.client.proto.V1.ConfigMapProjection getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ConfigMapProjection.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ConfigMapProjection build() {
io.kubernetes.client.proto.V1.ConfigMapProjection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.ConfigMapProjection buildPartial() {
io.kubernetes.client.proto.V1.ConfigMapProjection result = new io.kubernetes.client.proto.V1.ConfigMapProjection(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (localObjectReferenceBuilder_ == null) {
result.localObjectReference_ = localObjectReference_;
} else {
result.localObjectReference_ = localObjectReferenceBuilder_.build();
}
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.optional_ = optional_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.ConfigMapProjection) {
return mergeFrom((io.kubernetes.client.proto.V1.ConfigMapProjection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.ConfigMapProjection other) {
if (other == io.kubernetes.client.proto.V1.ConfigMapProjection.getDefaultInstance()) return this;
if (other.hasLocalObjectReference()) {
mergeLocalObjectReference(other.getLocalObjectReference());
}
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getItemsFieldBuilder() : null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
if (other.hasOptional()) {
setOptional(other.getOptional());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ConfigMapProjection parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ConfigMapProjection) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> localObjectReferenceBuilder_;
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public boolean hasLocalObjectReference() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() {
if (localObjectReferenceBuilder_ == null) {
return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
} else {
return localObjectReferenceBuilder_.getMessage();
}
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder setLocalObjectReference(io.kubernetes.client.proto.V1.LocalObjectReference value) {
if (localObjectReferenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localObjectReference_ = value;
onChanged();
} else {
localObjectReferenceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder setLocalObjectReference(
io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) {
if (localObjectReferenceBuilder_ == null) {
localObjectReference_ = builderForValue.build();
onChanged();
} else {
localObjectReferenceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder mergeLocalObjectReference(io.kubernetes.client.proto.V1.LocalObjectReference value) {
if (localObjectReferenceBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
localObjectReference_ != null &&
localObjectReference_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) {
localObjectReference_ =
io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(localObjectReference_).mergeFrom(value).buildPartial();
} else {
localObjectReference_ = value;
}
onChanged();
} else {
localObjectReferenceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder clearLocalObjectReference() {
if (localObjectReferenceBuilder_ == null) {
localObjectReference_ = null;
onChanged();
} else {
localObjectReferenceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getLocalObjectReferenceBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getLocalObjectReferenceFieldBuilder().getBuilder();
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() {
if (localObjectReferenceBuilder_ != null) {
return localObjectReferenceBuilder_.getMessageOrBuilder();
} else {
return localObjectReference_ == null ?
io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
}
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>
getLocalObjectReferenceFieldBuilder() {
if (localObjectReferenceBuilder_ == null) {
localObjectReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>(
getLocalObjectReference(),
getParentForChildren(),
isClean());
localObjectReference_ = null;
}
return localObjectReferenceBuilder_;
}
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = new java.util.ArrayList(items_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder> itemsBuilder_;
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public io.kubernetes.client.proto.V1.KeyToPath getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder setItems(
int index, io.kubernetes.client.proto.V1.KeyToPath value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder setItems(
int index, io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder addItems(io.kubernetes.client.proto.V1.KeyToPath value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder addItems(
int index, io.kubernetes.client.proto.V1.KeyToPath value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder addItems(
io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder addItems(
int index, io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder addAllItems(
java.lang.Iterable extends io.kubernetes.client.proto.V1.KeyToPath> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public io.kubernetes.client.proto.V1.KeyToPath.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index); } else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1.KeyToPathOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public io.kubernetes.client.proto.V1.KeyToPath.Builder addItemsBuilder() {
return getItemsFieldBuilder().addBuilder(
io.kubernetes.client.proto.V1.KeyToPath.getDefaultInstance());
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public io.kubernetes.client.proto.V1.KeyToPath.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder().addBuilder(
index, io.kubernetes.client.proto.V1.KeyToPath.getDefaultInstance());
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder>(
items_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
private boolean optional_ ;
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
public boolean hasOptional() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
public boolean getOptional() {
return optional_;
}
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
public Builder setOptional(boolean value) {
bitField0_ |= 0x00000004;
optional_ = value;
onChanged();
return this;
}
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
public Builder clearOptional() {
bitField0_ = (bitField0_ & ~0x00000004);
optional_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ConfigMapProjection)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ConfigMapProjection)
private static final io.kubernetes.client.proto.V1.ConfigMapProjection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ConfigMapProjection();
}
public static io.kubernetes.client.proto.V1.ConfigMapProjection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigMapProjection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigMapProjection(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ConfigMapProjection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigMapVolumeSourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ConfigMapVolumeSource)
com.google.protobuf.MessageOrBuilder {
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
boolean hasLocalObjectReference();
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference();
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder();
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
java.util.List
getItemsList();
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
io.kubernetes.client.proto.V1.KeyToPath getItems(int index);
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
int getItemsCount();
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
java.util.List extends io.kubernetes.client.proto.V1.KeyToPathOrBuilder>
getItemsOrBuilderList();
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(
int index);
/**
*
* Optional: mode bits to use on created files by default. Must be a
* value between 0 and 0777. Defaults to 0644.
* Directories within the path are not affected by this setting.
* This might be in conflict with other options that affect the file
* mode, like fsGroup, and the result can be other mode bits set.
* +optional
*
*
* optional int32 defaultMode = 3;
*/
boolean hasDefaultMode();
/**
*
* Optional: mode bits to use on created files by default. Must be a
* value between 0 and 0777. Defaults to 0644.
* Directories within the path are not affected by this setting.
* This might be in conflict with other options that affect the file
* mode, like fsGroup, and the result can be other mode bits set.
* +optional
*
*
* optional int32 defaultMode = 3;
*/
int getDefaultMode();
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
boolean hasOptional();
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
boolean getOptional();
}
/**
*
* Adapts a ConfigMap into a volume.
*
* The contents of the target ConfigMap's Data field will be presented in a
* volume as files using the keys in the Data field as the file names, unless
* the items element is populated with specific mappings of keys to paths.
* ConfigMap volumes support ownership management and SELinux relabeling.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ConfigMapVolumeSource}
*/
public static final class ConfigMapVolumeSource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ConfigMapVolumeSource)
ConfigMapVolumeSourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConfigMapVolumeSource.newBuilder() to construct.
private ConfigMapVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigMapVolumeSource() {
items_ = java.util.Collections.emptyList();
defaultMode_ = 0;
optional_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConfigMapVolumeSource(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
io.kubernetes.client.proto.V1.LocalObjectReference.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = localObjectReference_.toBuilder();
}
localObjectReference_ = input.readMessage(io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localObjectReference_);
localObjectReference_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
items_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
items_.add(
input.readMessage(io.kubernetes.client.proto.V1.KeyToPath.PARSER, extensionRegistry));
break;
}
case 24: {
bitField0_ |= 0x00000002;
defaultMode_ = input.readInt32();
break;
}
case 32: {
bitField0_ |= 0x00000004;
optional_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
items_ = java.util.Collections.unmodifiableList(items_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ConfigMapVolumeSource.class, io.kubernetes.client.proto.V1.ConfigMapVolumeSource.Builder.class);
}
private int bitField0_;
public static final int LOCALOBJECTREFERENCE_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_;
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public boolean hasLocalObjectReference() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() {
return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() {
return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
}
public static final int ITEMS_FIELD_NUMBER = 2;
private java.util.List items_;
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public java.util.List getItemsList() {
return items_;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1.KeyToPathOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public int getItemsCount() {
return items_.size();
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public io.kubernetes.client.proto.V1.KeyToPath getItems(int index) {
return items_.get(index);
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(
int index) {
return items_.get(index);
}
public static final int DEFAULTMODE_FIELD_NUMBER = 3;
private int defaultMode_;
/**
*
* Optional: mode bits to use on created files by default. Must be a
* value between 0 and 0777. Defaults to 0644.
* Directories within the path are not affected by this setting.
* This might be in conflict with other options that affect the file
* mode, like fsGroup, and the result can be other mode bits set.
* +optional
*
*
* optional int32 defaultMode = 3;
*/
public boolean hasDefaultMode() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Optional: mode bits to use on created files by default. Must be a
* value between 0 and 0777. Defaults to 0644.
* Directories within the path are not affected by this setting.
* This might be in conflict with other options that affect the file
* mode, like fsGroup, and the result can be other mode bits set.
* +optional
*
*
* optional int32 defaultMode = 3;
*/
public int getDefaultMode() {
return defaultMode_;
}
public static final int OPTIONAL_FIELD_NUMBER = 4;
private boolean optional_;
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
public boolean hasOptional() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
public boolean getOptional() {
return optional_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getLocalObjectReference());
}
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(2, items_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(3, defaultMode_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(4, optional_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLocalObjectReference());
}
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, items_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, defaultMode_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, optional_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.ConfigMapVolumeSource)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.ConfigMapVolumeSource other = (io.kubernetes.client.proto.V1.ConfigMapVolumeSource) obj;
boolean result = true;
result = result && (hasLocalObjectReference() == other.hasLocalObjectReference());
if (hasLocalObjectReference()) {
result = result && getLocalObjectReference()
.equals(other.getLocalObjectReference());
}
result = result && getItemsList()
.equals(other.getItemsList());
result = result && (hasDefaultMode() == other.hasDefaultMode());
if (hasDefaultMode()) {
result = result && (getDefaultMode()
== other.getDefaultMode());
}
result = result && (hasOptional() == other.hasOptional());
if (hasOptional()) {
result = result && (getOptional()
== other.getOptional());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasLocalObjectReference()) {
hash = (37 * hash) + LOCALOBJECTREFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getLocalObjectReference().hashCode();
}
if (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
if (hasDefaultMode()) {
hash = (37 * hash) + DEFAULTMODE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultMode();
}
if (hasOptional()) {
hash = (37 * hash) + OPTIONAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOptional());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.ConfigMapVolumeSource prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Adapts a ConfigMap into a volume.
*
* The contents of the target ConfigMap's Data field will be presented in a
* volume as files using the keys in the Data field as the file names, unless
* the items element is populated with specific mappings of keys to paths.
* ConfigMap volumes support ownership management and SELinux relabeling.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ConfigMapVolumeSource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ConfigMapVolumeSource)
io.kubernetes.client.proto.V1.ConfigMapVolumeSourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ConfigMapVolumeSource.class, io.kubernetes.client.proto.V1.ConfigMapVolumeSource.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.ConfigMapVolumeSource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLocalObjectReferenceFieldBuilder();
getItemsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (localObjectReferenceBuilder_ == null) {
localObjectReference_ = null;
} else {
localObjectReferenceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
itemsBuilder_.clear();
}
defaultMode_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
optional_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_descriptor;
}
public io.kubernetes.client.proto.V1.ConfigMapVolumeSource getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ConfigMapVolumeSource.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ConfigMapVolumeSource build() {
io.kubernetes.client.proto.V1.ConfigMapVolumeSource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.ConfigMapVolumeSource buildPartial() {
io.kubernetes.client.proto.V1.ConfigMapVolumeSource result = new io.kubernetes.client.proto.V1.ConfigMapVolumeSource(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (localObjectReferenceBuilder_ == null) {
result.localObjectReference_ = localObjectReference_;
} else {
result.localObjectReference_ = localObjectReferenceBuilder_.build();
}
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.defaultMode_ = defaultMode_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.optional_ = optional_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.ConfigMapVolumeSource) {
return mergeFrom((io.kubernetes.client.proto.V1.ConfigMapVolumeSource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.ConfigMapVolumeSource other) {
if (other == io.kubernetes.client.proto.V1.ConfigMapVolumeSource.getDefaultInstance()) return this;
if (other.hasLocalObjectReference()) {
mergeLocalObjectReference(other.getLocalObjectReference());
}
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getItemsFieldBuilder() : null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
if (other.hasDefaultMode()) {
setDefaultMode(other.getDefaultMode());
}
if (other.hasOptional()) {
setOptional(other.getOptional());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ConfigMapVolumeSource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ConfigMapVolumeSource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> localObjectReferenceBuilder_;
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public boolean hasLocalObjectReference() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() {
if (localObjectReferenceBuilder_ == null) {
return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
} else {
return localObjectReferenceBuilder_.getMessage();
}
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder setLocalObjectReference(io.kubernetes.client.proto.V1.LocalObjectReference value) {
if (localObjectReferenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localObjectReference_ = value;
onChanged();
} else {
localObjectReferenceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder setLocalObjectReference(
io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) {
if (localObjectReferenceBuilder_ == null) {
localObjectReference_ = builderForValue.build();
onChanged();
} else {
localObjectReferenceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder mergeLocalObjectReference(io.kubernetes.client.proto.V1.LocalObjectReference value) {
if (localObjectReferenceBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
localObjectReference_ != null &&
localObjectReference_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) {
localObjectReference_ =
io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(localObjectReference_).mergeFrom(value).buildPartial();
} else {
localObjectReference_ = value;
}
onChanged();
} else {
localObjectReferenceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public Builder clearLocalObjectReference() {
if (localObjectReferenceBuilder_ == null) {
localObjectReference_ = null;
onChanged();
} else {
localObjectReferenceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getLocalObjectReferenceBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getLocalObjectReferenceFieldBuilder().getBuilder();
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() {
if (localObjectReferenceBuilder_ != null) {
return localObjectReferenceBuilder_.getMessageOrBuilder();
} else {
return localObjectReference_ == null ?
io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_;
}
}
/**
* optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>
getLocalObjectReferenceFieldBuilder() {
if (localObjectReferenceBuilder_ == null) {
localObjectReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>(
getLocalObjectReference(),
getParentForChildren(),
isClean());
localObjectReference_ = null;
}
return localObjectReferenceBuilder_;
}
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = new java.util.ArrayList(items_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder> itemsBuilder_;
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public io.kubernetes.client.proto.V1.KeyToPath getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder setItems(
int index, io.kubernetes.client.proto.V1.KeyToPath value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder setItems(
int index, io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder addItems(io.kubernetes.client.proto.V1.KeyToPath value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder addItems(
int index, io.kubernetes.client.proto.V1.KeyToPath value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder addItems(
io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder addItems(
int index, io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder addAllItems(
java.lang.Iterable extends io.kubernetes.client.proto.V1.KeyToPath> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public io.kubernetes.client.proto.V1.KeyToPath.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index); } else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1.KeyToPathOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public io.kubernetes.client.proto.V1.KeyToPath.Builder addItemsBuilder() {
return getItemsFieldBuilder().addBuilder(
io.kubernetes.client.proto.V1.KeyToPath.getDefaultInstance());
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public io.kubernetes.client.proto.V1.KeyToPath.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder().addBuilder(
index, io.kubernetes.client.proto.V1.KeyToPath.getDefaultInstance());
}
/**
*
* If unspecified, each key-value pair in the Data field of the referenced
* ConfigMap will be projected into the volume as a file whose name is the
* key and content is the value. If specified, the listed keys will be
* projected into the specified paths, and unlisted keys will not be
* present. If a key is specified which is not present in the ConfigMap,
* the volume setup will error unless it is marked optional. Paths must be
* relative and may not contain the '..' path or start with '..'.
* +optional
*
*
* repeated .k8s.io.api.core.v1.KeyToPath items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder>(
items_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
private int defaultMode_ ;
/**
*
* Optional: mode bits to use on created files by default. Must be a
* value between 0 and 0777. Defaults to 0644.
* Directories within the path are not affected by this setting.
* This might be in conflict with other options that affect the file
* mode, like fsGroup, and the result can be other mode bits set.
* +optional
*
*
* optional int32 defaultMode = 3;
*/
public boolean hasDefaultMode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Optional: mode bits to use on created files by default. Must be a
* value between 0 and 0777. Defaults to 0644.
* Directories within the path are not affected by this setting.
* This might be in conflict with other options that affect the file
* mode, like fsGroup, and the result can be other mode bits set.
* +optional
*
*
* optional int32 defaultMode = 3;
*/
public int getDefaultMode() {
return defaultMode_;
}
/**
*
* Optional: mode bits to use on created files by default. Must be a
* value between 0 and 0777. Defaults to 0644.
* Directories within the path are not affected by this setting.
* This might be in conflict with other options that affect the file
* mode, like fsGroup, and the result can be other mode bits set.
* +optional
*
*
* optional int32 defaultMode = 3;
*/
public Builder setDefaultMode(int value) {
bitField0_ |= 0x00000004;
defaultMode_ = value;
onChanged();
return this;
}
/**
*
* Optional: mode bits to use on created files by default. Must be a
* value between 0 and 0777. Defaults to 0644.
* Directories within the path are not affected by this setting.
* This might be in conflict with other options that affect the file
* mode, like fsGroup, and the result can be other mode bits set.
* +optional
*
*
* optional int32 defaultMode = 3;
*/
public Builder clearDefaultMode() {
bitField0_ = (bitField0_ & ~0x00000004);
defaultMode_ = 0;
onChanged();
return this;
}
private boolean optional_ ;
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
public boolean hasOptional() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
public boolean getOptional() {
return optional_;
}
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
public Builder setOptional(boolean value) {
bitField0_ |= 0x00000008;
optional_ = value;
onChanged();
return this;
}
/**
*
* Specify whether the ConfigMap or it's keys must be defined
* +optional
*
*
* optional bool optional = 4;
*/
public Builder clearOptional() {
bitField0_ = (bitField0_ & ~0x00000008);
optional_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ConfigMapVolumeSource)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ConfigMapVolumeSource)
private static final io.kubernetes.client.proto.V1.ConfigMapVolumeSource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ConfigMapVolumeSource();
}
public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ConfigMapVolumeSource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigMapVolumeSource(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ConfigMapVolumeSource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Container)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
*
*
* optional string name = 1;
*/
boolean hasName();
/**
*
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
*
*
* optional string name = 1;
*/
java.lang.String getName();
/**
*
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
*
*
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Docker image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
*
*
* optional string image = 2;
*/
boolean hasImage();
/**
*
* Docker image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
*
*
* optional string image = 2;
*/
java.lang.String getImage();
/**
*
* Docker image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
*
*
* optional string image = 2;
*/
com.google.protobuf.ByteString
getImageBytes();
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
java.util.List
getCommandList();
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
int getCommandCount();
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
java.lang.String getCommand(int index);
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
com.google.protobuf.ByteString
getCommandBytes(int index);
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
java.util.List
getArgsList();
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
int getArgsCount();
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
java.lang.String getArgs(int index);
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
com.google.protobuf.ByteString
getArgsBytes(int index);
/**
*
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
*
*
* optional string workingDir = 5;
*/
boolean hasWorkingDir();
/**
*
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
*
*
* optional string workingDir = 5;
*/
java.lang.String getWorkingDir();
/**
*
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
*
*
* optional string workingDir = 5;
*/
com.google.protobuf.ByteString
getWorkingDirBytes();
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
java.util.List
getPortsList();
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
io.kubernetes.client.proto.V1.ContainerPort getPorts(int index);
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
int getPortsCount();
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
java.util.List extends io.kubernetes.client.proto.V1.ContainerPortOrBuilder>
getPortsOrBuilderList();
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
io.kubernetes.client.proto.V1.ContainerPortOrBuilder getPortsOrBuilder(
int index);
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
java.util.List
getEnvFromList();
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
io.kubernetes.client.proto.V1.EnvFromSource getEnvFrom(int index);
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
int getEnvFromCount();
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
java.util.List extends io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder>
getEnvFromOrBuilderList();
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder getEnvFromOrBuilder(
int index);
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
java.util.List
getEnvList();
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
io.kubernetes.client.proto.V1.EnvVar getEnv(int index);
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
int getEnvCount();
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
java.util.List extends io.kubernetes.client.proto.V1.EnvVarOrBuilder>
getEnvOrBuilderList();
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
io.kubernetes.client.proto.V1.EnvVarOrBuilder getEnvOrBuilder(
int index);
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
boolean hasResources();
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
io.kubernetes.client.proto.V1.ResourceRequirements getResources();
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder();
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
java.util.List
getVolumeMountsList();
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
io.kubernetes.client.proto.V1.VolumeMount getVolumeMounts(int index);
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
int getVolumeMountsCount();
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
java.util.List extends io.kubernetes.client.proto.V1.VolumeMountOrBuilder>
getVolumeMountsOrBuilderList();
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
io.kubernetes.client.proto.V1.VolumeMountOrBuilder getVolumeMountsOrBuilder(
int index);
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
boolean hasLivenessProbe();
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
io.kubernetes.client.proto.V1.Probe getLivenessProbe();
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
io.kubernetes.client.proto.V1.ProbeOrBuilder getLivenessProbeOrBuilder();
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
boolean hasReadinessProbe();
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
io.kubernetes.client.proto.V1.Probe getReadinessProbe();
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
io.kubernetes.client.proto.V1.ProbeOrBuilder getReadinessProbeOrBuilder();
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
boolean hasLifecycle();
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
io.kubernetes.client.proto.V1.Lifecycle getLifecycle();
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
io.kubernetes.client.proto.V1.LifecycleOrBuilder getLifecycleOrBuilder();
/**
*
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePath = 13;
*/
boolean hasTerminationMessagePath();
/**
*
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePath = 13;
*/
java.lang.String getTerminationMessagePath();
/**
*
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePath = 13;
*/
com.google.protobuf.ByteString
getTerminationMessagePathBytes();
/**
*
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePolicy = 20;
*/
boolean hasTerminationMessagePolicy();
/**
*
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePolicy = 20;
*/
java.lang.String getTerminationMessagePolicy();
/**
*
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePolicy = 20;
*/
com.google.protobuf.ByteString
getTerminationMessagePolicyBytes();
/**
*
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
*
*
* optional string imagePullPolicy = 14;
*/
boolean hasImagePullPolicy();
/**
*
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
*
*
* optional string imagePullPolicy = 14;
*/
java.lang.String getImagePullPolicy();
/**
*
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
*
*
* optional string imagePullPolicy = 14;
*/
com.google.protobuf.ByteString
getImagePullPolicyBytes();
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
boolean hasSecurityContext();
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
io.kubernetes.client.proto.V1.SecurityContext getSecurityContext();
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
io.kubernetes.client.proto.V1.SecurityContextOrBuilder getSecurityContextOrBuilder();
/**
*
* Whether this container should allocate a buffer for stdin in the container runtime. If this
* is not set, reads from stdin in the container will always result in EOF.
* Default is false.
* +optional
*
*
* optional bool stdin = 16;
*/
boolean hasStdin();
/**
*
* Whether this container should allocate a buffer for stdin in the container runtime. If this
* is not set, reads from stdin in the container will always result in EOF.
* Default is false.
* +optional
*
*
* optional bool stdin = 16;
*/
boolean getStdin();
/**
*
* Whether the container runtime should close the stdin channel after it has been opened by
* a single attach. When stdin is true the stdin stream will remain open across multiple attach
* sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
* first client attaches to stdin, and then remains open and accepts data until the client disconnects,
* at which time stdin is closed and remains closed until the container is restarted. If this
* flag is false, a container processes that reads from stdin will never receive an EOF.
* Default is false
* +optional
*
*
* optional bool stdinOnce = 17;
*/
boolean hasStdinOnce();
/**
*
* Whether the container runtime should close the stdin channel after it has been opened by
* a single attach. When stdin is true the stdin stream will remain open across multiple attach
* sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
* first client attaches to stdin, and then remains open and accepts data until the client disconnects,
* at which time stdin is closed and remains closed until the container is restarted. If this
* flag is false, a container processes that reads from stdin will never receive an EOF.
* Default is false
* +optional
*
*
* optional bool stdinOnce = 17;
*/
boolean getStdinOnce();
/**
*
* Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
* Default is false.
* +optional
*
*
* optional bool tty = 18;
*/
boolean hasTty();
/**
*
* Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
* Default is false.
* +optional
*
*
* optional bool tty = 18;
*/
boolean getTty();
}
/**
*
* A single application container that you want to run within a pod.
*
*
* Protobuf type {@code k8s.io.api.core.v1.Container}
*/
public static final class Container extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Container)
ContainerOrBuilder {
private static final long serialVersionUID = 0L;
// Use Container.newBuilder() to construct.
private Container(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Container() {
name_ = "";
image_ = "";
command_ = com.google.protobuf.LazyStringArrayList.EMPTY;
args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
workingDir_ = "";
ports_ = java.util.Collections.emptyList();
envFrom_ = java.util.Collections.emptyList();
env_ = java.util.Collections.emptyList();
volumeMounts_ = java.util.Collections.emptyList();
terminationMessagePath_ = "";
terminationMessagePolicy_ = "";
imagePullPolicy_ = "";
stdin_ = false;
stdinOnce_ = false;
tty_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Container(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
image_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
command_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
command_.add(bs);
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
args_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
args_.add(bs);
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
workingDir_ = bs;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
ports_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
ports_.add(
input.readMessage(io.kubernetes.client.proto.V1.ContainerPort.PARSER, extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
env_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
env_.add(
input.readMessage(io.kubernetes.client.proto.V1.EnvVar.PARSER, extensionRegistry));
break;
}
case 66: {
io.kubernetes.client.proto.V1.ResourceRequirements.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = resources_.toBuilder();
}
resources_ = input.readMessage(io.kubernetes.client.proto.V1.ResourceRequirements.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resources_);
resources_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
volumeMounts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
volumeMounts_.add(
input.readMessage(io.kubernetes.client.proto.V1.VolumeMount.PARSER, extensionRegistry));
break;
}
case 82: {
io.kubernetes.client.proto.V1.Probe.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = livenessProbe_.toBuilder();
}
livenessProbe_ = input.readMessage(io.kubernetes.client.proto.V1.Probe.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(livenessProbe_);
livenessProbe_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 90: {
io.kubernetes.client.proto.V1.Probe.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = readinessProbe_.toBuilder();
}
readinessProbe_ = input.readMessage(io.kubernetes.client.proto.V1.Probe.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(readinessProbe_);
readinessProbe_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 98: {
io.kubernetes.client.proto.V1.Lifecycle.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = lifecycle_.toBuilder();
}
lifecycle_ = input.readMessage(io.kubernetes.client.proto.V1.Lifecycle.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lifecycle_);
lifecycle_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 106: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
terminationMessagePath_ = bs;
break;
}
case 114: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
imagePullPolicy_ = bs;
break;
}
case 122: {
io.kubernetes.client.proto.V1.SecurityContext.Builder subBuilder = null;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
subBuilder = securityContext_.toBuilder();
}
securityContext_ = input.readMessage(io.kubernetes.client.proto.V1.SecurityContext.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(securityContext_);
securityContext_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000400;
break;
}
case 128: {
bitField0_ |= 0x00000800;
stdin_ = input.readBool();
break;
}
case 136: {
bitField0_ |= 0x00001000;
stdinOnce_ = input.readBool();
break;
}
case 144: {
bitField0_ |= 0x00002000;
tty_ = input.readBool();
break;
}
case 154: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
envFrom_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
envFrom_.add(
input.readMessage(io.kubernetes.client.proto.V1.EnvFromSource.PARSER, extensionRegistry));
break;
}
case 162: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
terminationMessagePolicy_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
command_ = command_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
args_ = args_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
ports_ = java.util.Collections.unmodifiableList(ports_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
env_ = java.util.Collections.unmodifiableList(env_);
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
volumeMounts_ = java.util.Collections.unmodifiableList(volumeMounts_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
envFrom_ = java.util.Collections.unmodifiableList(envFrom_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Container_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Container_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.Container.class, io.kubernetes.client.proto.V1.Container.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
*
*
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IMAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object image_;
/**
*
* Docker image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
*
*
* optional string image = 2;
*/
public boolean hasImage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Docker image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
*
*
* optional string image = 2;
*/
public java.lang.String getImage() {
java.lang.Object ref = image_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
image_ = s;
}
return s;
}
}
/**
*
* Docker image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
*
*
* optional string image = 2;
*/
public com.google.protobuf.ByteString
getImageBytes() {
java.lang.Object ref = image_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
image_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMAND_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList command_;
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
public com.google.protobuf.ProtocolStringList
getCommandList() {
return command_;
}
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
public int getCommandCount() {
return command_.size();
}
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
public java.lang.String getCommand(int index) {
return command_.get(index);
}
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
public com.google.protobuf.ByteString
getCommandBytes(int index) {
return command_.getByteString(index);
}
public static final int ARGS_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList args_;
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
public com.google.protobuf.ProtocolStringList
getArgsList() {
return args_;
}
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
public int getArgsCount() {
return args_.size();
}
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
public java.lang.String getArgs(int index) {
return args_.get(index);
}
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
public com.google.protobuf.ByteString
getArgsBytes(int index) {
return args_.getByteString(index);
}
public static final int WORKINGDIR_FIELD_NUMBER = 5;
private volatile java.lang.Object workingDir_;
/**
*
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
*
*
* optional string workingDir = 5;
*/
public boolean hasWorkingDir() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
*
*
* optional string workingDir = 5;
*/
public java.lang.String getWorkingDir() {
java.lang.Object ref = workingDir_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
workingDir_ = s;
}
return s;
}
}
/**
*
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
*
*
* optional string workingDir = 5;
*/
public com.google.protobuf.ByteString
getWorkingDirBytes() {
java.lang.Object ref = workingDir_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workingDir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORTS_FIELD_NUMBER = 6;
private java.util.List ports_;
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public java.util.List getPortsList() {
return ports_;
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public java.util.List extends io.kubernetes.client.proto.V1.ContainerPortOrBuilder>
getPortsOrBuilderList() {
return ports_;
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public int getPortsCount() {
return ports_.size();
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public io.kubernetes.client.proto.V1.ContainerPort getPorts(int index) {
return ports_.get(index);
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public io.kubernetes.client.proto.V1.ContainerPortOrBuilder getPortsOrBuilder(
int index) {
return ports_.get(index);
}
public static final int ENVFROM_FIELD_NUMBER = 19;
private java.util.List envFrom_;
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public java.util.List getEnvFromList() {
return envFrom_;
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public java.util.List extends io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder>
getEnvFromOrBuilderList() {
return envFrom_;
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public int getEnvFromCount() {
return envFrom_.size();
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public io.kubernetes.client.proto.V1.EnvFromSource getEnvFrom(int index) {
return envFrom_.get(index);
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder getEnvFromOrBuilder(
int index) {
return envFrom_.get(index);
}
public static final int ENV_FIELD_NUMBER = 7;
private java.util.List env_;
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public java.util.List getEnvList() {
return env_;
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public java.util.List extends io.kubernetes.client.proto.V1.EnvVarOrBuilder>
getEnvOrBuilderList() {
return env_;
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public int getEnvCount() {
return env_.size();
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public io.kubernetes.client.proto.V1.EnvVar getEnv(int index) {
return env_.get(index);
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public io.kubernetes.client.proto.V1.EnvVarOrBuilder getEnvOrBuilder(
int index) {
return env_.get(index);
}
public static final int RESOURCES_FIELD_NUMBER = 8;
private io.kubernetes.client.proto.V1.ResourceRequirements resources_;
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
public boolean hasResources() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
public io.kubernetes.client.proto.V1.ResourceRequirements getResources() {
return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_;
}
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder() {
return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_;
}
public static final int VOLUMEMOUNTS_FIELD_NUMBER = 9;
private java.util.List volumeMounts_;
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public java.util.List getVolumeMountsList() {
return volumeMounts_;
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public java.util.List extends io.kubernetes.client.proto.V1.VolumeMountOrBuilder>
getVolumeMountsOrBuilderList() {
return volumeMounts_;
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public int getVolumeMountsCount() {
return volumeMounts_.size();
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public io.kubernetes.client.proto.V1.VolumeMount getVolumeMounts(int index) {
return volumeMounts_.get(index);
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public io.kubernetes.client.proto.V1.VolumeMountOrBuilder getVolumeMountsOrBuilder(
int index) {
return volumeMounts_.get(index);
}
public static final int LIVENESSPROBE_FIELD_NUMBER = 10;
private io.kubernetes.client.proto.V1.Probe livenessProbe_;
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
public boolean hasLivenessProbe() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
public io.kubernetes.client.proto.V1.Probe getLivenessProbe() {
return livenessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : livenessProbe_;
}
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
public io.kubernetes.client.proto.V1.ProbeOrBuilder getLivenessProbeOrBuilder() {
return livenessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : livenessProbe_;
}
public static final int READINESSPROBE_FIELD_NUMBER = 11;
private io.kubernetes.client.proto.V1.Probe readinessProbe_;
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
public boolean hasReadinessProbe() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
public io.kubernetes.client.proto.V1.Probe getReadinessProbe() {
return readinessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : readinessProbe_;
}
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
public io.kubernetes.client.proto.V1.ProbeOrBuilder getReadinessProbeOrBuilder() {
return readinessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : readinessProbe_;
}
public static final int LIFECYCLE_FIELD_NUMBER = 12;
private io.kubernetes.client.proto.V1.Lifecycle lifecycle_;
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
public boolean hasLifecycle() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
public io.kubernetes.client.proto.V1.Lifecycle getLifecycle() {
return lifecycle_ == null ? io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance() : lifecycle_;
}
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
public io.kubernetes.client.proto.V1.LifecycleOrBuilder getLifecycleOrBuilder() {
return lifecycle_ == null ? io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance() : lifecycle_;
}
public static final int TERMINATIONMESSAGEPATH_FIELD_NUMBER = 13;
private volatile java.lang.Object terminationMessagePath_;
/**
*
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePath = 13;
*/
public boolean hasTerminationMessagePath() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
*
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePath = 13;
*/
public java.lang.String getTerminationMessagePath() {
java.lang.Object ref = terminationMessagePath_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
terminationMessagePath_ = s;
}
return s;
}
}
/**
*
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePath = 13;
*/
public com.google.protobuf.ByteString
getTerminationMessagePathBytes() {
java.lang.Object ref = terminationMessagePath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
terminationMessagePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TERMINATIONMESSAGEPOLICY_FIELD_NUMBER = 20;
private volatile java.lang.Object terminationMessagePolicy_;
/**
*
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePolicy = 20;
*/
public boolean hasTerminationMessagePolicy() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
*
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePolicy = 20;
*/
public java.lang.String getTerminationMessagePolicy() {
java.lang.Object ref = terminationMessagePolicy_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
terminationMessagePolicy_ = s;
}
return s;
}
}
/**
*
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePolicy = 20;
*/
public com.google.protobuf.ByteString
getTerminationMessagePolicyBytes() {
java.lang.Object ref = terminationMessagePolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
terminationMessagePolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IMAGEPULLPOLICY_FIELD_NUMBER = 14;
private volatile java.lang.Object imagePullPolicy_;
/**
*
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
*
*
* optional string imagePullPolicy = 14;
*/
public boolean hasImagePullPolicy() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
*
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
*
*
* optional string imagePullPolicy = 14;
*/
public java.lang.String getImagePullPolicy() {
java.lang.Object ref = imagePullPolicy_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
imagePullPolicy_ = s;
}
return s;
}
}
/**
*
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
*
*
* optional string imagePullPolicy = 14;
*/
public com.google.protobuf.ByteString
getImagePullPolicyBytes() {
java.lang.Object ref = imagePullPolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imagePullPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SECURITYCONTEXT_FIELD_NUMBER = 15;
private io.kubernetes.client.proto.V1.SecurityContext securityContext_;
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
public boolean hasSecurityContext() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
public io.kubernetes.client.proto.V1.SecurityContext getSecurityContext() {
return securityContext_ == null ? io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance() : securityContext_;
}
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
public io.kubernetes.client.proto.V1.SecurityContextOrBuilder getSecurityContextOrBuilder() {
return securityContext_ == null ? io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance() : securityContext_;
}
public static final int STDIN_FIELD_NUMBER = 16;
private boolean stdin_;
/**
*
* Whether this container should allocate a buffer for stdin in the container runtime. If this
* is not set, reads from stdin in the container will always result in EOF.
* Default is false.
* +optional
*
*
* optional bool stdin = 16;
*/
public boolean hasStdin() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
*
* Whether this container should allocate a buffer for stdin in the container runtime. If this
* is not set, reads from stdin in the container will always result in EOF.
* Default is false.
* +optional
*
*
* optional bool stdin = 16;
*/
public boolean getStdin() {
return stdin_;
}
public static final int STDINONCE_FIELD_NUMBER = 17;
private boolean stdinOnce_;
/**
*
* Whether the container runtime should close the stdin channel after it has been opened by
* a single attach. When stdin is true the stdin stream will remain open across multiple attach
* sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
* first client attaches to stdin, and then remains open and accepts data until the client disconnects,
* at which time stdin is closed and remains closed until the container is restarted. If this
* flag is false, a container processes that reads from stdin will never receive an EOF.
* Default is false
* +optional
*
*
* optional bool stdinOnce = 17;
*/
public boolean hasStdinOnce() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
*
* Whether the container runtime should close the stdin channel after it has been opened by
* a single attach. When stdin is true the stdin stream will remain open across multiple attach
* sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
* first client attaches to stdin, and then remains open and accepts data until the client disconnects,
* at which time stdin is closed and remains closed until the container is restarted. If this
* flag is false, a container processes that reads from stdin will never receive an EOF.
* Default is false
* +optional
*
*
* optional bool stdinOnce = 17;
*/
public boolean getStdinOnce() {
return stdinOnce_;
}
public static final int TTY_FIELD_NUMBER = 18;
private boolean tty_;
/**
*
* Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
* Default is false.
* +optional
*
*
* optional bool tty = 18;
*/
public boolean hasTty() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
*
* Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
* Default is false.
* +optional
*
*
* optional bool tty = 18;
*/
public boolean getTty() {
return tty_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, image_);
}
for (int i = 0; i < command_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, command_.getRaw(i));
}
for (int i = 0; i < args_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, args_.getRaw(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workingDir_);
}
for (int i = 0; i < ports_.size(); i++) {
output.writeMessage(6, ports_.get(i));
}
for (int i = 0; i < env_.size(); i++) {
output.writeMessage(7, env_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(8, getResources());
}
for (int i = 0; i < volumeMounts_.size(); i++) {
output.writeMessage(9, volumeMounts_.get(i));
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(10, getLivenessProbe());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(11, getReadinessProbe());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(12, getLifecycle());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, terminationMessagePath_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, imagePullPolicy_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeMessage(15, getSecurityContext());
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeBool(16, stdin_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeBool(17, stdinOnce_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeBool(18, tty_);
}
for (int i = 0; i < envFrom_.size(); i++) {
output.writeMessage(19, envFrom_.get(i));
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 20, terminationMessagePolicy_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, image_);
}
{
int dataSize = 0;
for (int i = 0; i < command_.size(); i++) {
dataSize += computeStringSizeNoTag(command_.getRaw(i));
}
size += dataSize;
size += 1 * getCommandList().size();
}
{
int dataSize = 0;
for (int i = 0; i < args_.size(); i++) {
dataSize += computeStringSizeNoTag(args_.getRaw(i));
}
size += dataSize;
size += 1 * getArgsList().size();
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workingDir_);
}
for (int i = 0; i < ports_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, ports_.get(i));
}
for (int i = 0; i < env_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, env_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getResources());
}
for (int i = 0; i < volumeMounts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, volumeMounts_.get(i));
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getLivenessProbe());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getReadinessProbe());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getLifecycle());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, terminationMessagePath_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, imagePullPolicy_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getSecurityContext());
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(16, stdin_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(17, stdinOnce_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(18, tty_);
}
for (int i = 0; i < envFrom_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, envFrom_.get(i));
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, terminationMessagePolicy_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.Container)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.Container other = (io.kubernetes.client.proto.V1.Container) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasImage() == other.hasImage());
if (hasImage()) {
result = result && getImage()
.equals(other.getImage());
}
result = result && getCommandList()
.equals(other.getCommandList());
result = result && getArgsList()
.equals(other.getArgsList());
result = result && (hasWorkingDir() == other.hasWorkingDir());
if (hasWorkingDir()) {
result = result && getWorkingDir()
.equals(other.getWorkingDir());
}
result = result && getPortsList()
.equals(other.getPortsList());
result = result && getEnvFromList()
.equals(other.getEnvFromList());
result = result && getEnvList()
.equals(other.getEnvList());
result = result && (hasResources() == other.hasResources());
if (hasResources()) {
result = result && getResources()
.equals(other.getResources());
}
result = result && getVolumeMountsList()
.equals(other.getVolumeMountsList());
result = result && (hasLivenessProbe() == other.hasLivenessProbe());
if (hasLivenessProbe()) {
result = result && getLivenessProbe()
.equals(other.getLivenessProbe());
}
result = result && (hasReadinessProbe() == other.hasReadinessProbe());
if (hasReadinessProbe()) {
result = result && getReadinessProbe()
.equals(other.getReadinessProbe());
}
result = result && (hasLifecycle() == other.hasLifecycle());
if (hasLifecycle()) {
result = result && getLifecycle()
.equals(other.getLifecycle());
}
result = result && (hasTerminationMessagePath() == other.hasTerminationMessagePath());
if (hasTerminationMessagePath()) {
result = result && getTerminationMessagePath()
.equals(other.getTerminationMessagePath());
}
result = result && (hasTerminationMessagePolicy() == other.hasTerminationMessagePolicy());
if (hasTerminationMessagePolicy()) {
result = result && getTerminationMessagePolicy()
.equals(other.getTerminationMessagePolicy());
}
result = result && (hasImagePullPolicy() == other.hasImagePullPolicy());
if (hasImagePullPolicy()) {
result = result && getImagePullPolicy()
.equals(other.getImagePullPolicy());
}
result = result && (hasSecurityContext() == other.hasSecurityContext());
if (hasSecurityContext()) {
result = result && getSecurityContext()
.equals(other.getSecurityContext());
}
result = result && (hasStdin() == other.hasStdin());
if (hasStdin()) {
result = result && (getStdin()
== other.getStdin());
}
result = result && (hasStdinOnce() == other.hasStdinOnce());
if (hasStdinOnce()) {
result = result && (getStdinOnce()
== other.getStdinOnce());
}
result = result && (hasTty() == other.hasTty());
if (hasTty()) {
result = result && (getTty()
== other.getTty());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasImage()) {
hash = (37 * hash) + IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getImage().hashCode();
}
if (getCommandCount() > 0) {
hash = (37 * hash) + COMMAND_FIELD_NUMBER;
hash = (53 * hash) + getCommandList().hashCode();
}
if (getArgsCount() > 0) {
hash = (37 * hash) + ARGS_FIELD_NUMBER;
hash = (53 * hash) + getArgsList().hashCode();
}
if (hasWorkingDir()) {
hash = (37 * hash) + WORKINGDIR_FIELD_NUMBER;
hash = (53 * hash) + getWorkingDir().hashCode();
}
if (getPortsCount() > 0) {
hash = (37 * hash) + PORTS_FIELD_NUMBER;
hash = (53 * hash) + getPortsList().hashCode();
}
if (getEnvFromCount() > 0) {
hash = (37 * hash) + ENVFROM_FIELD_NUMBER;
hash = (53 * hash) + getEnvFromList().hashCode();
}
if (getEnvCount() > 0) {
hash = (37 * hash) + ENV_FIELD_NUMBER;
hash = (53 * hash) + getEnvList().hashCode();
}
if (hasResources()) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResources().hashCode();
}
if (getVolumeMountsCount() > 0) {
hash = (37 * hash) + VOLUMEMOUNTS_FIELD_NUMBER;
hash = (53 * hash) + getVolumeMountsList().hashCode();
}
if (hasLivenessProbe()) {
hash = (37 * hash) + LIVENESSPROBE_FIELD_NUMBER;
hash = (53 * hash) + getLivenessProbe().hashCode();
}
if (hasReadinessProbe()) {
hash = (37 * hash) + READINESSPROBE_FIELD_NUMBER;
hash = (53 * hash) + getReadinessProbe().hashCode();
}
if (hasLifecycle()) {
hash = (37 * hash) + LIFECYCLE_FIELD_NUMBER;
hash = (53 * hash) + getLifecycle().hashCode();
}
if (hasTerminationMessagePath()) {
hash = (37 * hash) + TERMINATIONMESSAGEPATH_FIELD_NUMBER;
hash = (53 * hash) + getTerminationMessagePath().hashCode();
}
if (hasTerminationMessagePolicy()) {
hash = (37 * hash) + TERMINATIONMESSAGEPOLICY_FIELD_NUMBER;
hash = (53 * hash) + getTerminationMessagePolicy().hashCode();
}
if (hasImagePullPolicy()) {
hash = (37 * hash) + IMAGEPULLPOLICY_FIELD_NUMBER;
hash = (53 * hash) + getImagePullPolicy().hashCode();
}
if (hasSecurityContext()) {
hash = (37 * hash) + SECURITYCONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getSecurityContext().hashCode();
}
if (hasStdin()) {
hash = (37 * hash) + STDIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStdin());
}
if (hasStdinOnce()) {
hash = (37 * hash) + STDINONCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStdinOnce());
}
if (hasTty()) {
hash = (37 * hash) + TTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTty());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.Container parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.Container parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Container parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.Container parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Container parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.Container parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Container parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.Container parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Container parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.Container parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.Container parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.Container parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.Container prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A single application container that you want to run within a pod.
*
*
* Protobuf type {@code k8s.io.api.core.v1.Container}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Container)
io.kubernetes.client.proto.V1.ContainerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Container_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Container_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.Container.class, io.kubernetes.client.proto.V1.Container.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.Container.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPortsFieldBuilder();
getEnvFromFieldBuilder();
getEnvFieldBuilder();
getResourcesFieldBuilder();
getVolumeMountsFieldBuilder();
getLivenessProbeFieldBuilder();
getReadinessProbeFieldBuilder();
getLifecycleFieldBuilder();
getSecurityContextFieldBuilder();
}
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
image_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
command_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
workingDir_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
if (portsBuilder_ == null) {
ports_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
portsBuilder_.clear();
}
if (envFromBuilder_ == null) {
envFrom_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
envFromBuilder_.clear();
}
if (envBuilder_ == null) {
env_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
envBuilder_.clear();
}
if (resourcesBuilder_ == null) {
resources_ = null;
} else {
resourcesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
if (volumeMountsBuilder_ == null) {
volumeMounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
} else {
volumeMountsBuilder_.clear();
}
if (livenessProbeBuilder_ == null) {
livenessProbe_ = null;
} else {
livenessProbeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
if (readinessProbeBuilder_ == null) {
readinessProbe_ = null;
} else {
readinessProbeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
if (lifecycleBuilder_ == null) {
lifecycle_ = null;
} else {
lifecycleBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
terminationMessagePath_ = "";
bitField0_ = (bitField0_ & ~0x00002000);
terminationMessagePolicy_ = "";
bitField0_ = (bitField0_ & ~0x00004000);
imagePullPolicy_ = "";
bitField0_ = (bitField0_ & ~0x00008000);
if (securityContextBuilder_ == null) {
securityContext_ = null;
} else {
securityContextBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00010000);
stdin_ = false;
bitField0_ = (bitField0_ & ~0x00020000);
stdinOnce_ = false;
bitField0_ = (bitField0_ & ~0x00040000);
tty_ = false;
bitField0_ = (bitField0_ & ~0x00080000);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Container_descriptor;
}
public io.kubernetes.client.proto.V1.Container getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.Container.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.Container build() {
io.kubernetes.client.proto.V1.Container result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.Container buildPartial() {
io.kubernetes.client.proto.V1.Container result = new io.kubernetes.client.proto.V1.Container(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.image_ = image_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
command_ = command_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.command_ = command_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
args_ = args_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.args_ = args_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000004;
}
result.workingDir_ = workingDir_;
if (portsBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
ports_ = java.util.Collections.unmodifiableList(ports_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.ports_ = ports_;
} else {
result.ports_ = portsBuilder_.build();
}
if (envFromBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040)) {
envFrom_ = java.util.Collections.unmodifiableList(envFrom_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.envFrom_ = envFrom_;
} else {
result.envFrom_ = envFromBuilder_.build();
}
if (envBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080)) {
env_ = java.util.Collections.unmodifiableList(env_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.env_ = env_;
} else {
result.env_ = envBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000008;
}
if (resourcesBuilder_ == null) {
result.resources_ = resources_;
} else {
result.resources_ = resourcesBuilder_.build();
}
if (volumeMountsBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200)) {
volumeMounts_ = java.util.Collections.unmodifiableList(volumeMounts_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.volumeMounts_ = volumeMounts_;
} else {
result.volumeMounts_ = volumeMountsBuilder_.build();
}
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000010;
}
if (livenessProbeBuilder_ == null) {
result.livenessProbe_ = livenessProbe_;
} else {
result.livenessProbe_ = livenessProbeBuilder_.build();
}
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000020;
}
if (readinessProbeBuilder_ == null) {
result.readinessProbe_ = readinessProbe_;
} else {
result.readinessProbe_ = readinessProbeBuilder_.build();
}
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00000040;
}
if (lifecycleBuilder_ == null) {
result.lifecycle_ = lifecycle_;
} else {
result.lifecycle_ = lifecycleBuilder_.build();
}
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00000080;
}
result.terminationMessagePath_ = terminationMessagePath_;
if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
to_bitField0_ |= 0x00000100;
}
result.terminationMessagePolicy_ = terminationMessagePolicy_;
if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
to_bitField0_ |= 0x00000200;
}
result.imagePullPolicy_ = imagePullPolicy_;
if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
to_bitField0_ |= 0x00000400;
}
if (securityContextBuilder_ == null) {
result.securityContext_ = securityContext_;
} else {
result.securityContext_ = securityContextBuilder_.build();
}
if (((from_bitField0_ & 0x00020000) == 0x00020000)) {
to_bitField0_ |= 0x00000800;
}
result.stdin_ = stdin_;
if (((from_bitField0_ & 0x00040000) == 0x00040000)) {
to_bitField0_ |= 0x00001000;
}
result.stdinOnce_ = stdinOnce_;
if (((from_bitField0_ & 0x00080000) == 0x00080000)) {
to_bitField0_ |= 0x00002000;
}
result.tty_ = tty_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.Container) {
return mergeFrom((io.kubernetes.client.proto.V1.Container)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.Container other) {
if (other == io.kubernetes.client.proto.V1.Container.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasImage()) {
bitField0_ |= 0x00000002;
image_ = other.image_;
onChanged();
}
if (!other.command_.isEmpty()) {
if (command_.isEmpty()) {
command_ = other.command_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureCommandIsMutable();
command_.addAll(other.command_);
}
onChanged();
}
if (!other.args_.isEmpty()) {
if (args_.isEmpty()) {
args_ = other.args_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureArgsIsMutable();
args_.addAll(other.args_);
}
onChanged();
}
if (other.hasWorkingDir()) {
bitField0_ |= 0x00000010;
workingDir_ = other.workingDir_;
onChanged();
}
if (portsBuilder_ == null) {
if (!other.ports_.isEmpty()) {
if (ports_.isEmpty()) {
ports_ = other.ports_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensurePortsIsMutable();
ports_.addAll(other.ports_);
}
onChanged();
}
} else {
if (!other.ports_.isEmpty()) {
if (portsBuilder_.isEmpty()) {
portsBuilder_.dispose();
portsBuilder_ = null;
ports_ = other.ports_;
bitField0_ = (bitField0_ & ~0x00000020);
portsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPortsFieldBuilder() : null;
} else {
portsBuilder_.addAllMessages(other.ports_);
}
}
}
if (envFromBuilder_ == null) {
if (!other.envFrom_.isEmpty()) {
if (envFrom_.isEmpty()) {
envFrom_ = other.envFrom_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureEnvFromIsMutable();
envFrom_.addAll(other.envFrom_);
}
onChanged();
}
} else {
if (!other.envFrom_.isEmpty()) {
if (envFromBuilder_.isEmpty()) {
envFromBuilder_.dispose();
envFromBuilder_ = null;
envFrom_ = other.envFrom_;
bitField0_ = (bitField0_ & ~0x00000040);
envFromBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEnvFromFieldBuilder() : null;
} else {
envFromBuilder_.addAllMessages(other.envFrom_);
}
}
}
if (envBuilder_ == null) {
if (!other.env_.isEmpty()) {
if (env_.isEmpty()) {
env_ = other.env_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureEnvIsMutable();
env_.addAll(other.env_);
}
onChanged();
}
} else {
if (!other.env_.isEmpty()) {
if (envBuilder_.isEmpty()) {
envBuilder_.dispose();
envBuilder_ = null;
env_ = other.env_;
bitField0_ = (bitField0_ & ~0x00000080);
envBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEnvFieldBuilder() : null;
} else {
envBuilder_.addAllMessages(other.env_);
}
}
}
if (other.hasResources()) {
mergeResources(other.getResources());
}
if (volumeMountsBuilder_ == null) {
if (!other.volumeMounts_.isEmpty()) {
if (volumeMounts_.isEmpty()) {
volumeMounts_ = other.volumeMounts_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureVolumeMountsIsMutable();
volumeMounts_.addAll(other.volumeMounts_);
}
onChanged();
}
} else {
if (!other.volumeMounts_.isEmpty()) {
if (volumeMountsBuilder_.isEmpty()) {
volumeMountsBuilder_.dispose();
volumeMountsBuilder_ = null;
volumeMounts_ = other.volumeMounts_;
bitField0_ = (bitField0_ & ~0x00000200);
volumeMountsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVolumeMountsFieldBuilder() : null;
} else {
volumeMountsBuilder_.addAllMessages(other.volumeMounts_);
}
}
}
if (other.hasLivenessProbe()) {
mergeLivenessProbe(other.getLivenessProbe());
}
if (other.hasReadinessProbe()) {
mergeReadinessProbe(other.getReadinessProbe());
}
if (other.hasLifecycle()) {
mergeLifecycle(other.getLifecycle());
}
if (other.hasTerminationMessagePath()) {
bitField0_ |= 0x00002000;
terminationMessagePath_ = other.terminationMessagePath_;
onChanged();
}
if (other.hasTerminationMessagePolicy()) {
bitField0_ |= 0x00004000;
terminationMessagePolicy_ = other.terminationMessagePolicy_;
onChanged();
}
if (other.hasImagePullPolicy()) {
bitField0_ |= 0x00008000;
imagePullPolicy_ = other.imagePullPolicy_;
onChanged();
}
if (other.hasSecurityContext()) {
mergeSecurityContext(other.getSecurityContext());
}
if (other.hasStdin()) {
setStdin(other.getStdin());
}
if (other.hasStdinOnce()) {
setStdinOnce(other.getStdinOnce());
}
if (other.hasTty()) {
setTty(other.getTty());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.Container parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.Container) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
*
*
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
*
*
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
*
*
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the container specified as a DNS_LABEL.
* Each container in a pod must have a unique name (DNS_LABEL).
* Cannot be updated.
*
*
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object image_ = "";
/**
*
* Docker image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
*
*
* optional string image = 2;
*/
public boolean hasImage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Docker image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
*
*
* optional string image = 2;
*/
public java.lang.String getImage() {
java.lang.Object ref = image_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
image_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Docker image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
*
*
* optional string image = 2;
*/
public com.google.protobuf.ByteString
getImageBytes() {
java.lang.Object ref = image_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
image_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Docker image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
*
*
* optional string image = 2;
*/
public Builder setImage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
image_ = value;
onChanged();
return this;
}
/**
*
* Docker image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
*
*
* optional string image = 2;
*/
public Builder clearImage() {
bitField0_ = (bitField0_ & ~0x00000002);
image_ = getDefaultInstance().getImage();
onChanged();
return this;
}
/**
*
* Docker image name.
* More info: https://kubernetes.io/docs/concepts/containers/images
*
*
* optional string image = 2;
*/
public Builder setImageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
image_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureCommandIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
command_ = new com.google.protobuf.LazyStringArrayList(command_);
bitField0_ |= 0x00000004;
}
}
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
public com.google.protobuf.ProtocolStringList
getCommandList() {
return command_.getUnmodifiableView();
}
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
public int getCommandCount() {
return command_.size();
}
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
public java.lang.String getCommand(int index) {
return command_.get(index);
}
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
public com.google.protobuf.ByteString
getCommandBytes(int index) {
return command_.getByteString(index);
}
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
public Builder setCommand(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCommandIsMutable();
command_.set(index, value);
onChanged();
return this;
}
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
public Builder addCommand(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCommandIsMutable();
command_.add(value);
onChanged();
return this;
}
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
public Builder addAllCommand(
java.lang.Iterable values) {
ensureCommandIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, command_);
onChanged();
return this;
}
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
public Builder clearCommand() {
command_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Entrypoint array. Not executed within a shell.
* The docker image's ENTRYPOINT is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string command = 3;
*/
public Builder addCommandBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureCommandIsMutable();
command_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureArgsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
args_ = new com.google.protobuf.LazyStringArrayList(args_);
bitField0_ |= 0x00000008;
}
}
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
public com.google.protobuf.ProtocolStringList
getArgsList() {
return args_.getUnmodifiableView();
}
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
public int getArgsCount() {
return args_.size();
}
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
public java.lang.String getArgs(int index) {
return args_.get(index);
}
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
public com.google.protobuf.ByteString
getArgsBytes(int index) {
return args_.getByteString(index);
}
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
public Builder setArgs(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.set(index, value);
onChanged();
return this;
}
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
public Builder addArgs(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(value);
onChanged();
return this;
}
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
public Builder addAllArgs(
java.lang.Iterable values) {
ensureArgsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, args_);
onChanged();
return this;
}
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
public Builder clearArgs() {
args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Arguments to the entrypoint.
* The docker image's CMD is used if this is not provided.
* Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
* cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
* can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
* regardless of whether the variable exists or not.
* Cannot be updated.
* More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
* +optional
*
*
* repeated string args = 4;
*/
public Builder addArgsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgsIsMutable();
args_.add(value);
onChanged();
return this;
}
private java.lang.Object workingDir_ = "";
/**
*
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
*
*
* optional string workingDir = 5;
*/
public boolean hasWorkingDir() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
*
*
* optional string workingDir = 5;
*/
public java.lang.String getWorkingDir() {
java.lang.Object ref = workingDir_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
workingDir_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
*
*
* optional string workingDir = 5;
*/
public com.google.protobuf.ByteString
getWorkingDirBytes() {
java.lang.Object ref = workingDir_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workingDir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
*
*
* optional string workingDir = 5;
*/
public Builder setWorkingDir(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
workingDir_ = value;
onChanged();
return this;
}
/**
*
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
*
*
* optional string workingDir = 5;
*/
public Builder clearWorkingDir() {
bitField0_ = (bitField0_ & ~0x00000010);
workingDir_ = getDefaultInstance().getWorkingDir();
onChanged();
return this;
}
/**
*
* Container's working directory.
* If not specified, the container runtime's default will be used, which
* might be configured in the container image.
* Cannot be updated.
* +optional
*
*
* optional string workingDir = 5;
*/
public Builder setWorkingDirBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
workingDir_ = value;
onChanged();
return this;
}
private java.util.List ports_ =
java.util.Collections.emptyList();
private void ensurePortsIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
ports_ = new java.util.ArrayList(ports_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerPort, io.kubernetes.client.proto.V1.ContainerPort.Builder, io.kubernetes.client.proto.V1.ContainerPortOrBuilder> portsBuilder_;
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public java.util.List getPortsList() {
if (portsBuilder_ == null) {
return java.util.Collections.unmodifiableList(ports_);
} else {
return portsBuilder_.getMessageList();
}
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public int getPortsCount() {
if (portsBuilder_ == null) {
return ports_.size();
} else {
return portsBuilder_.getCount();
}
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public io.kubernetes.client.proto.V1.ContainerPort getPorts(int index) {
if (portsBuilder_ == null) {
return ports_.get(index);
} else {
return portsBuilder_.getMessage(index);
}
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public Builder setPorts(
int index, io.kubernetes.client.proto.V1.ContainerPort value) {
if (portsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePortsIsMutable();
ports_.set(index, value);
onChanged();
} else {
portsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public Builder setPorts(
int index, io.kubernetes.client.proto.V1.ContainerPort.Builder builderForValue) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
ports_.set(index, builderForValue.build());
onChanged();
} else {
portsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public Builder addPorts(io.kubernetes.client.proto.V1.ContainerPort value) {
if (portsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePortsIsMutable();
ports_.add(value);
onChanged();
} else {
portsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public Builder addPorts(
int index, io.kubernetes.client.proto.V1.ContainerPort value) {
if (portsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePortsIsMutable();
ports_.add(index, value);
onChanged();
} else {
portsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public Builder addPorts(
io.kubernetes.client.proto.V1.ContainerPort.Builder builderForValue) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
ports_.add(builderForValue.build());
onChanged();
} else {
portsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public Builder addPorts(
int index, io.kubernetes.client.proto.V1.ContainerPort.Builder builderForValue) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
ports_.add(index, builderForValue.build());
onChanged();
} else {
portsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public Builder addAllPorts(
java.lang.Iterable extends io.kubernetes.client.proto.V1.ContainerPort> values) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, ports_);
onChanged();
} else {
portsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public Builder clearPorts() {
if (portsBuilder_ == null) {
ports_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
portsBuilder_.clear();
}
return this;
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public Builder removePorts(int index) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
ports_.remove(index);
onChanged();
} else {
portsBuilder_.remove(index);
}
return this;
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public io.kubernetes.client.proto.V1.ContainerPort.Builder getPortsBuilder(
int index) {
return getPortsFieldBuilder().getBuilder(index);
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public io.kubernetes.client.proto.V1.ContainerPortOrBuilder getPortsOrBuilder(
int index) {
if (portsBuilder_ == null) {
return ports_.get(index); } else {
return portsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public java.util.List extends io.kubernetes.client.proto.V1.ContainerPortOrBuilder>
getPortsOrBuilderList() {
if (portsBuilder_ != null) {
return portsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(ports_);
}
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public io.kubernetes.client.proto.V1.ContainerPort.Builder addPortsBuilder() {
return getPortsFieldBuilder().addBuilder(
io.kubernetes.client.proto.V1.ContainerPort.getDefaultInstance());
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public io.kubernetes.client.proto.V1.ContainerPort.Builder addPortsBuilder(
int index) {
return getPortsFieldBuilder().addBuilder(
index, io.kubernetes.client.proto.V1.ContainerPort.getDefaultInstance());
}
/**
*
* List of ports to expose from the container. Exposing a port here gives
* the system additional information about the network connections a
* container uses, but is primarily informational. Not specifying a port here
* DOES NOT prevent that port from being exposed. Any port which is
* listening on the default "0.0.0.0" address inside a container will be
* accessible from the network.
* Cannot be updated.
* +optional
* +patchMergeKey=containerPort
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.ContainerPort ports = 6;
*/
public java.util.List
getPortsBuilderList() {
return getPortsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerPort, io.kubernetes.client.proto.V1.ContainerPort.Builder, io.kubernetes.client.proto.V1.ContainerPortOrBuilder>
getPortsFieldBuilder() {
if (portsBuilder_ == null) {
portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerPort, io.kubernetes.client.proto.V1.ContainerPort.Builder, io.kubernetes.client.proto.V1.ContainerPortOrBuilder>(
ports_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
ports_ = null;
}
return portsBuilder_;
}
private java.util.List envFrom_ =
java.util.Collections.emptyList();
private void ensureEnvFromIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
envFrom_ = new java.util.ArrayList(envFrom_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.EnvFromSource, io.kubernetes.client.proto.V1.EnvFromSource.Builder, io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder> envFromBuilder_;
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public java.util.List getEnvFromList() {
if (envFromBuilder_ == null) {
return java.util.Collections.unmodifiableList(envFrom_);
} else {
return envFromBuilder_.getMessageList();
}
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public int getEnvFromCount() {
if (envFromBuilder_ == null) {
return envFrom_.size();
} else {
return envFromBuilder_.getCount();
}
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public io.kubernetes.client.proto.V1.EnvFromSource getEnvFrom(int index) {
if (envFromBuilder_ == null) {
return envFrom_.get(index);
} else {
return envFromBuilder_.getMessage(index);
}
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public Builder setEnvFrom(
int index, io.kubernetes.client.proto.V1.EnvFromSource value) {
if (envFromBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvFromIsMutable();
envFrom_.set(index, value);
onChanged();
} else {
envFromBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public Builder setEnvFrom(
int index, io.kubernetes.client.proto.V1.EnvFromSource.Builder builderForValue) {
if (envFromBuilder_ == null) {
ensureEnvFromIsMutable();
envFrom_.set(index, builderForValue.build());
onChanged();
} else {
envFromBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public Builder addEnvFrom(io.kubernetes.client.proto.V1.EnvFromSource value) {
if (envFromBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvFromIsMutable();
envFrom_.add(value);
onChanged();
} else {
envFromBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public Builder addEnvFrom(
int index, io.kubernetes.client.proto.V1.EnvFromSource value) {
if (envFromBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvFromIsMutable();
envFrom_.add(index, value);
onChanged();
} else {
envFromBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public Builder addEnvFrom(
io.kubernetes.client.proto.V1.EnvFromSource.Builder builderForValue) {
if (envFromBuilder_ == null) {
ensureEnvFromIsMutable();
envFrom_.add(builderForValue.build());
onChanged();
} else {
envFromBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public Builder addEnvFrom(
int index, io.kubernetes.client.proto.V1.EnvFromSource.Builder builderForValue) {
if (envFromBuilder_ == null) {
ensureEnvFromIsMutable();
envFrom_.add(index, builderForValue.build());
onChanged();
} else {
envFromBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public Builder addAllEnvFrom(
java.lang.Iterable extends io.kubernetes.client.proto.V1.EnvFromSource> values) {
if (envFromBuilder_ == null) {
ensureEnvFromIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, envFrom_);
onChanged();
} else {
envFromBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public Builder clearEnvFrom() {
if (envFromBuilder_ == null) {
envFrom_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
envFromBuilder_.clear();
}
return this;
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public Builder removeEnvFrom(int index) {
if (envFromBuilder_ == null) {
ensureEnvFromIsMutable();
envFrom_.remove(index);
onChanged();
} else {
envFromBuilder_.remove(index);
}
return this;
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public io.kubernetes.client.proto.V1.EnvFromSource.Builder getEnvFromBuilder(
int index) {
return getEnvFromFieldBuilder().getBuilder(index);
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder getEnvFromOrBuilder(
int index) {
if (envFromBuilder_ == null) {
return envFrom_.get(index); } else {
return envFromBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public java.util.List extends io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder>
getEnvFromOrBuilderList() {
if (envFromBuilder_ != null) {
return envFromBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(envFrom_);
}
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public io.kubernetes.client.proto.V1.EnvFromSource.Builder addEnvFromBuilder() {
return getEnvFromFieldBuilder().addBuilder(
io.kubernetes.client.proto.V1.EnvFromSource.getDefaultInstance());
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public io.kubernetes.client.proto.V1.EnvFromSource.Builder addEnvFromBuilder(
int index) {
return getEnvFromFieldBuilder().addBuilder(
index, io.kubernetes.client.proto.V1.EnvFromSource.getDefaultInstance());
}
/**
*
* List of sources to populate environment variables in the container.
* The keys defined within a source must be a C_IDENTIFIER. All invalid keys
* will be reported as an event when the container is starting. When a key exists in multiple
* sources, the value associated with the last source will take precedence.
* Values defined by an Env with a duplicate key will take precedence.
* Cannot be updated.
* +optional
*
*
* repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19;
*/
public java.util.List
getEnvFromBuilderList() {
return getEnvFromFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.EnvFromSource, io.kubernetes.client.proto.V1.EnvFromSource.Builder, io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder>
getEnvFromFieldBuilder() {
if (envFromBuilder_ == null) {
envFromBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.EnvFromSource, io.kubernetes.client.proto.V1.EnvFromSource.Builder, io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder>(
envFrom_,
((bitField0_ & 0x00000040) == 0x00000040),
getParentForChildren(),
isClean());
envFrom_ = null;
}
return envFromBuilder_;
}
private java.util.List env_ =
java.util.Collections.emptyList();
private void ensureEnvIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
env_ = new java.util.ArrayList(env_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.EnvVar, io.kubernetes.client.proto.V1.EnvVar.Builder, io.kubernetes.client.proto.V1.EnvVarOrBuilder> envBuilder_;
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public java.util.List getEnvList() {
if (envBuilder_ == null) {
return java.util.Collections.unmodifiableList(env_);
} else {
return envBuilder_.getMessageList();
}
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public int getEnvCount() {
if (envBuilder_ == null) {
return env_.size();
} else {
return envBuilder_.getCount();
}
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public io.kubernetes.client.proto.V1.EnvVar getEnv(int index) {
if (envBuilder_ == null) {
return env_.get(index);
} else {
return envBuilder_.getMessage(index);
}
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public Builder setEnv(
int index, io.kubernetes.client.proto.V1.EnvVar value) {
if (envBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvIsMutable();
env_.set(index, value);
onChanged();
} else {
envBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public Builder setEnv(
int index, io.kubernetes.client.proto.V1.EnvVar.Builder builderForValue) {
if (envBuilder_ == null) {
ensureEnvIsMutable();
env_.set(index, builderForValue.build());
onChanged();
} else {
envBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public Builder addEnv(io.kubernetes.client.proto.V1.EnvVar value) {
if (envBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvIsMutable();
env_.add(value);
onChanged();
} else {
envBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public Builder addEnv(
int index, io.kubernetes.client.proto.V1.EnvVar value) {
if (envBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnvIsMutable();
env_.add(index, value);
onChanged();
} else {
envBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public Builder addEnv(
io.kubernetes.client.proto.V1.EnvVar.Builder builderForValue) {
if (envBuilder_ == null) {
ensureEnvIsMutable();
env_.add(builderForValue.build());
onChanged();
} else {
envBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public Builder addEnv(
int index, io.kubernetes.client.proto.V1.EnvVar.Builder builderForValue) {
if (envBuilder_ == null) {
ensureEnvIsMutable();
env_.add(index, builderForValue.build());
onChanged();
} else {
envBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public Builder addAllEnv(
java.lang.Iterable extends io.kubernetes.client.proto.V1.EnvVar> values) {
if (envBuilder_ == null) {
ensureEnvIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, env_);
onChanged();
} else {
envBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public Builder clearEnv() {
if (envBuilder_ == null) {
env_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
envBuilder_.clear();
}
return this;
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public Builder removeEnv(int index) {
if (envBuilder_ == null) {
ensureEnvIsMutable();
env_.remove(index);
onChanged();
} else {
envBuilder_.remove(index);
}
return this;
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public io.kubernetes.client.proto.V1.EnvVar.Builder getEnvBuilder(
int index) {
return getEnvFieldBuilder().getBuilder(index);
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public io.kubernetes.client.proto.V1.EnvVarOrBuilder getEnvOrBuilder(
int index) {
if (envBuilder_ == null) {
return env_.get(index); } else {
return envBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public java.util.List extends io.kubernetes.client.proto.V1.EnvVarOrBuilder>
getEnvOrBuilderList() {
if (envBuilder_ != null) {
return envBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(env_);
}
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public io.kubernetes.client.proto.V1.EnvVar.Builder addEnvBuilder() {
return getEnvFieldBuilder().addBuilder(
io.kubernetes.client.proto.V1.EnvVar.getDefaultInstance());
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public io.kubernetes.client.proto.V1.EnvVar.Builder addEnvBuilder(
int index) {
return getEnvFieldBuilder().addBuilder(
index, io.kubernetes.client.proto.V1.EnvVar.getDefaultInstance());
}
/**
*
* List of environment variables to set in the container.
* Cannot be updated.
* +optional
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.EnvVar env = 7;
*/
public java.util.List
getEnvBuilderList() {
return getEnvFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.EnvVar, io.kubernetes.client.proto.V1.EnvVar.Builder, io.kubernetes.client.proto.V1.EnvVarOrBuilder>
getEnvFieldBuilder() {
if (envBuilder_ == null) {
envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.EnvVar, io.kubernetes.client.proto.V1.EnvVar.Builder, io.kubernetes.client.proto.V1.EnvVarOrBuilder>(
env_,
((bitField0_ & 0x00000080) == 0x00000080),
getParentForChildren(),
isClean());
env_ = null;
}
return envBuilder_;
}
private io.kubernetes.client.proto.V1.ResourceRequirements resources_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> resourcesBuilder_;
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
public boolean hasResources() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
public io.kubernetes.client.proto.V1.ResourceRequirements getResources() {
if (resourcesBuilder_ == null) {
return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_;
} else {
return resourcesBuilder_.getMessage();
}
}
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
public Builder setResources(io.kubernetes.client.proto.V1.ResourceRequirements value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resources_ = value;
onChanged();
} else {
resourcesBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
public Builder setResources(
io.kubernetes.client.proto.V1.ResourceRequirements.Builder builderForValue) {
if (resourcesBuilder_ == null) {
resources_ = builderForValue.build();
onChanged();
} else {
resourcesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
return this;
}
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
public Builder mergeResources(io.kubernetes.client.proto.V1.ResourceRequirements value) {
if (resourcesBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100) &&
resources_ != null &&
resources_ != io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance()) {
resources_ =
io.kubernetes.client.proto.V1.ResourceRequirements.newBuilder(resources_).mergeFrom(value).buildPartial();
} else {
resources_ = value;
}
onChanged();
} else {
resourcesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
public Builder clearResources() {
if (resourcesBuilder_ == null) {
resources_ = null;
onChanged();
} else {
resourcesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
public io.kubernetes.client.proto.V1.ResourceRequirements.Builder getResourcesBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getResourcesFieldBuilder().getBuilder();
}
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder() {
if (resourcesBuilder_ != null) {
return resourcesBuilder_.getMessageOrBuilder();
} else {
return resources_ == null ?
io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_;
}
}
/**
*
* Compute Resources required by this container.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
* +optional
*
*
* optional .k8s.io.api.core.v1.ResourceRequirements resources = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder>(
getResources(),
getParentForChildren(),
isClean());
resources_ = null;
}
return resourcesBuilder_;
}
private java.util.List volumeMounts_ =
java.util.Collections.emptyList();
private void ensureVolumeMountsIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
volumeMounts_ = new java.util.ArrayList(volumeMounts_);
bitField0_ |= 0x00000200;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.VolumeMount, io.kubernetes.client.proto.V1.VolumeMount.Builder, io.kubernetes.client.proto.V1.VolumeMountOrBuilder> volumeMountsBuilder_;
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public java.util.List getVolumeMountsList() {
if (volumeMountsBuilder_ == null) {
return java.util.Collections.unmodifiableList(volumeMounts_);
} else {
return volumeMountsBuilder_.getMessageList();
}
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public int getVolumeMountsCount() {
if (volumeMountsBuilder_ == null) {
return volumeMounts_.size();
} else {
return volumeMountsBuilder_.getCount();
}
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public io.kubernetes.client.proto.V1.VolumeMount getVolumeMounts(int index) {
if (volumeMountsBuilder_ == null) {
return volumeMounts_.get(index);
} else {
return volumeMountsBuilder_.getMessage(index);
}
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public Builder setVolumeMounts(
int index, io.kubernetes.client.proto.V1.VolumeMount value) {
if (volumeMountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVolumeMountsIsMutable();
volumeMounts_.set(index, value);
onChanged();
} else {
volumeMountsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public Builder setVolumeMounts(
int index, io.kubernetes.client.proto.V1.VolumeMount.Builder builderForValue) {
if (volumeMountsBuilder_ == null) {
ensureVolumeMountsIsMutable();
volumeMounts_.set(index, builderForValue.build());
onChanged();
} else {
volumeMountsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public Builder addVolumeMounts(io.kubernetes.client.proto.V1.VolumeMount value) {
if (volumeMountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVolumeMountsIsMutable();
volumeMounts_.add(value);
onChanged();
} else {
volumeMountsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public Builder addVolumeMounts(
int index, io.kubernetes.client.proto.V1.VolumeMount value) {
if (volumeMountsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVolumeMountsIsMutable();
volumeMounts_.add(index, value);
onChanged();
} else {
volumeMountsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public Builder addVolumeMounts(
io.kubernetes.client.proto.V1.VolumeMount.Builder builderForValue) {
if (volumeMountsBuilder_ == null) {
ensureVolumeMountsIsMutable();
volumeMounts_.add(builderForValue.build());
onChanged();
} else {
volumeMountsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public Builder addVolumeMounts(
int index, io.kubernetes.client.proto.V1.VolumeMount.Builder builderForValue) {
if (volumeMountsBuilder_ == null) {
ensureVolumeMountsIsMutable();
volumeMounts_.add(index, builderForValue.build());
onChanged();
} else {
volumeMountsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public Builder addAllVolumeMounts(
java.lang.Iterable extends io.kubernetes.client.proto.V1.VolumeMount> values) {
if (volumeMountsBuilder_ == null) {
ensureVolumeMountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, volumeMounts_);
onChanged();
} else {
volumeMountsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public Builder clearVolumeMounts() {
if (volumeMountsBuilder_ == null) {
volumeMounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
} else {
volumeMountsBuilder_.clear();
}
return this;
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public Builder removeVolumeMounts(int index) {
if (volumeMountsBuilder_ == null) {
ensureVolumeMountsIsMutable();
volumeMounts_.remove(index);
onChanged();
} else {
volumeMountsBuilder_.remove(index);
}
return this;
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public io.kubernetes.client.proto.V1.VolumeMount.Builder getVolumeMountsBuilder(
int index) {
return getVolumeMountsFieldBuilder().getBuilder(index);
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public io.kubernetes.client.proto.V1.VolumeMountOrBuilder getVolumeMountsOrBuilder(
int index) {
if (volumeMountsBuilder_ == null) {
return volumeMounts_.get(index); } else {
return volumeMountsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public java.util.List extends io.kubernetes.client.proto.V1.VolumeMountOrBuilder>
getVolumeMountsOrBuilderList() {
if (volumeMountsBuilder_ != null) {
return volumeMountsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(volumeMounts_);
}
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public io.kubernetes.client.proto.V1.VolumeMount.Builder addVolumeMountsBuilder() {
return getVolumeMountsFieldBuilder().addBuilder(
io.kubernetes.client.proto.V1.VolumeMount.getDefaultInstance());
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public io.kubernetes.client.proto.V1.VolumeMount.Builder addVolumeMountsBuilder(
int index) {
return getVolumeMountsFieldBuilder().addBuilder(
index, io.kubernetes.client.proto.V1.VolumeMount.getDefaultInstance());
}
/**
*
* Pod volumes to mount into the container's filesystem.
* Cannot be updated.
* +optional
* +patchMergeKey=mountPath
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9;
*/
public java.util.List
getVolumeMountsBuilderList() {
return getVolumeMountsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.VolumeMount, io.kubernetes.client.proto.V1.VolumeMount.Builder, io.kubernetes.client.proto.V1.VolumeMountOrBuilder>
getVolumeMountsFieldBuilder() {
if (volumeMountsBuilder_ == null) {
volumeMountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1.VolumeMount, io.kubernetes.client.proto.V1.VolumeMount.Builder, io.kubernetes.client.proto.V1.VolumeMountOrBuilder>(
volumeMounts_,
((bitField0_ & 0x00000200) == 0x00000200),
getParentForChildren(),
isClean());
volumeMounts_ = null;
}
return volumeMountsBuilder_;
}
private io.kubernetes.client.proto.V1.Probe livenessProbe_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder> livenessProbeBuilder_;
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
public boolean hasLivenessProbe() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
public io.kubernetes.client.proto.V1.Probe getLivenessProbe() {
if (livenessProbeBuilder_ == null) {
return livenessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : livenessProbe_;
} else {
return livenessProbeBuilder_.getMessage();
}
}
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
public Builder setLivenessProbe(io.kubernetes.client.proto.V1.Probe value) {
if (livenessProbeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
livenessProbe_ = value;
onChanged();
} else {
livenessProbeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
public Builder setLivenessProbe(
io.kubernetes.client.proto.V1.Probe.Builder builderForValue) {
if (livenessProbeBuilder_ == null) {
livenessProbe_ = builderForValue.build();
onChanged();
} else {
livenessProbeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
return this;
}
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
public Builder mergeLivenessProbe(io.kubernetes.client.proto.V1.Probe value) {
if (livenessProbeBuilder_ == null) {
if (((bitField0_ & 0x00000400) == 0x00000400) &&
livenessProbe_ != null &&
livenessProbe_ != io.kubernetes.client.proto.V1.Probe.getDefaultInstance()) {
livenessProbe_ =
io.kubernetes.client.proto.V1.Probe.newBuilder(livenessProbe_).mergeFrom(value).buildPartial();
} else {
livenessProbe_ = value;
}
onChanged();
} else {
livenessProbeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
public Builder clearLivenessProbe() {
if (livenessProbeBuilder_ == null) {
livenessProbe_ = null;
onChanged();
} else {
livenessProbeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
public io.kubernetes.client.proto.V1.Probe.Builder getLivenessProbeBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getLivenessProbeFieldBuilder().getBuilder();
}
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
public io.kubernetes.client.proto.V1.ProbeOrBuilder getLivenessProbeOrBuilder() {
if (livenessProbeBuilder_ != null) {
return livenessProbeBuilder_.getMessageOrBuilder();
} else {
return livenessProbe_ == null ?
io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : livenessProbe_;
}
}
/**
*
* Periodic probe of container liveness.
* Container will be restarted if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe livenessProbe = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder>
getLivenessProbeFieldBuilder() {
if (livenessProbeBuilder_ == null) {
livenessProbeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder>(
getLivenessProbe(),
getParentForChildren(),
isClean());
livenessProbe_ = null;
}
return livenessProbeBuilder_;
}
private io.kubernetes.client.proto.V1.Probe readinessProbe_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder> readinessProbeBuilder_;
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
public boolean hasReadinessProbe() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
public io.kubernetes.client.proto.V1.Probe getReadinessProbe() {
if (readinessProbeBuilder_ == null) {
return readinessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : readinessProbe_;
} else {
return readinessProbeBuilder_.getMessage();
}
}
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
public Builder setReadinessProbe(io.kubernetes.client.proto.V1.Probe value) {
if (readinessProbeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
readinessProbe_ = value;
onChanged();
} else {
readinessProbeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
public Builder setReadinessProbe(
io.kubernetes.client.proto.V1.Probe.Builder builderForValue) {
if (readinessProbeBuilder_ == null) {
readinessProbe_ = builderForValue.build();
onChanged();
} else {
readinessProbeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
return this;
}
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
public Builder mergeReadinessProbe(io.kubernetes.client.proto.V1.Probe value) {
if (readinessProbeBuilder_ == null) {
if (((bitField0_ & 0x00000800) == 0x00000800) &&
readinessProbe_ != null &&
readinessProbe_ != io.kubernetes.client.proto.V1.Probe.getDefaultInstance()) {
readinessProbe_ =
io.kubernetes.client.proto.V1.Probe.newBuilder(readinessProbe_).mergeFrom(value).buildPartial();
} else {
readinessProbe_ = value;
}
onChanged();
} else {
readinessProbeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
public Builder clearReadinessProbe() {
if (readinessProbeBuilder_ == null) {
readinessProbe_ = null;
onChanged();
} else {
readinessProbeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
public io.kubernetes.client.proto.V1.Probe.Builder getReadinessProbeBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getReadinessProbeFieldBuilder().getBuilder();
}
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
public io.kubernetes.client.proto.V1.ProbeOrBuilder getReadinessProbeOrBuilder() {
if (readinessProbeBuilder_ != null) {
return readinessProbeBuilder_.getMessageOrBuilder();
} else {
return readinessProbe_ == null ?
io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : readinessProbe_;
}
}
/**
*
* Periodic probe of container service readiness.
* Container will be removed from service endpoints if the probe fails.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
* +optional
*
*
* optional .k8s.io.api.core.v1.Probe readinessProbe = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder>
getReadinessProbeFieldBuilder() {
if (readinessProbeBuilder_ == null) {
readinessProbeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder>(
getReadinessProbe(),
getParentForChildren(),
isClean());
readinessProbe_ = null;
}
return readinessProbeBuilder_;
}
private io.kubernetes.client.proto.V1.Lifecycle lifecycle_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.Lifecycle, io.kubernetes.client.proto.V1.Lifecycle.Builder, io.kubernetes.client.proto.V1.LifecycleOrBuilder> lifecycleBuilder_;
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
public boolean hasLifecycle() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
public io.kubernetes.client.proto.V1.Lifecycle getLifecycle() {
if (lifecycleBuilder_ == null) {
return lifecycle_ == null ? io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance() : lifecycle_;
} else {
return lifecycleBuilder_.getMessage();
}
}
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
public Builder setLifecycle(io.kubernetes.client.proto.V1.Lifecycle value) {
if (lifecycleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lifecycle_ = value;
onChanged();
} else {
lifecycleBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
return this;
}
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
public Builder setLifecycle(
io.kubernetes.client.proto.V1.Lifecycle.Builder builderForValue) {
if (lifecycleBuilder_ == null) {
lifecycle_ = builderForValue.build();
onChanged();
} else {
lifecycleBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
return this;
}
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
public Builder mergeLifecycle(io.kubernetes.client.proto.V1.Lifecycle value) {
if (lifecycleBuilder_ == null) {
if (((bitField0_ & 0x00001000) == 0x00001000) &&
lifecycle_ != null &&
lifecycle_ != io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance()) {
lifecycle_ =
io.kubernetes.client.proto.V1.Lifecycle.newBuilder(lifecycle_).mergeFrom(value).buildPartial();
} else {
lifecycle_ = value;
}
onChanged();
} else {
lifecycleBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00001000;
return this;
}
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
public Builder clearLifecycle() {
if (lifecycleBuilder_ == null) {
lifecycle_ = null;
onChanged();
} else {
lifecycleBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
return this;
}
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
public io.kubernetes.client.proto.V1.Lifecycle.Builder getLifecycleBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getLifecycleFieldBuilder().getBuilder();
}
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
public io.kubernetes.client.proto.V1.LifecycleOrBuilder getLifecycleOrBuilder() {
if (lifecycleBuilder_ != null) {
return lifecycleBuilder_.getMessageOrBuilder();
} else {
return lifecycle_ == null ?
io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance() : lifecycle_;
}
}
/**
*
* Actions that the management system should take in response to container lifecycle events.
* Cannot be updated.
* +optional
*
*
* optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.Lifecycle, io.kubernetes.client.proto.V1.Lifecycle.Builder, io.kubernetes.client.proto.V1.LifecycleOrBuilder>
getLifecycleFieldBuilder() {
if (lifecycleBuilder_ == null) {
lifecycleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.Lifecycle, io.kubernetes.client.proto.V1.Lifecycle.Builder, io.kubernetes.client.proto.V1.LifecycleOrBuilder>(
getLifecycle(),
getParentForChildren(),
isClean());
lifecycle_ = null;
}
return lifecycleBuilder_;
}
private java.lang.Object terminationMessagePath_ = "";
/**
*
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePath = 13;
*/
public boolean hasTerminationMessagePath() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
*
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePath = 13;
*/
public java.lang.String getTerminationMessagePath() {
java.lang.Object ref = terminationMessagePath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
terminationMessagePath_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePath = 13;
*/
public com.google.protobuf.ByteString
getTerminationMessagePathBytes() {
java.lang.Object ref = terminationMessagePath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
terminationMessagePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePath = 13;
*/
public Builder setTerminationMessagePath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
terminationMessagePath_ = value;
onChanged();
return this;
}
/**
*
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePath = 13;
*/
public Builder clearTerminationMessagePath() {
bitField0_ = (bitField0_ & ~0x00002000);
terminationMessagePath_ = getDefaultInstance().getTerminationMessagePath();
onChanged();
return this;
}
/**
*
* Optional: Path at which the file to which the container's termination message
* will be written is mounted into the container's filesystem.
* Message written is intended to be brief final status, such as an assertion failure message.
* Will be truncated by the node if greater than 4096 bytes. The total message length across
* all containers will be limited to 12kb.
* Defaults to /dev/termination-log.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePath = 13;
*/
public Builder setTerminationMessagePathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
terminationMessagePath_ = value;
onChanged();
return this;
}
private java.lang.Object terminationMessagePolicy_ = "";
/**
*
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePolicy = 20;
*/
public boolean hasTerminationMessagePolicy() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
*
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePolicy = 20;
*/
public java.lang.String getTerminationMessagePolicy() {
java.lang.Object ref = terminationMessagePolicy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
terminationMessagePolicy_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePolicy = 20;
*/
public com.google.protobuf.ByteString
getTerminationMessagePolicyBytes() {
java.lang.Object ref = terminationMessagePolicy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
terminationMessagePolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePolicy = 20;
*/
public Builder setTerminationMessagePolicy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00004000;
terminationMessagePolicy_ = value;
onChanged();
return this;
}
/**
*
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePolicy = 20;
*/
public Builder clearTerminationMessagePolicy() {
bitField0_ = (bitField0_ & ~0x00004000);
terminationMessagePolicy_ = getDefaultInstance().getTerminationMessagePolicy();
onChanged();
return this;
}
/**
*
* Indicate how the termination message should be populated. File will use the contents of
* terminationMessagePath to populate the container status message on both success and failure.
* FallbackToLogsOnError will use the last chunk of container log output if the termination
* message file is empty and the container exited with an error.
* The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
* Defaults to File.
* Cannot be updated.
* +optional
*
*
* optional string terminationMessagePolicy = 20;
*/
public Builder setTerminationMessagePolicyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00004000;
terminationMessagePolicy_ = value;
onChanged();
return this;
}
private java.lang.Object imagePullPolicy_ = "";
/**
*
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
*
*
* optional string imagePullPolicy = 14;
*/
public boolean hasImagePullPolicy() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
*
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
*
*
* optional string imagePullPolicy = 14;
*/
public java.lang.String getImagePullPolicy() {
java.lang.Object ref = imagePullPolicy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
imagePullPolicy_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
*
*
* optional string imagePullPolicy = 14;
*/
public com.google.protobuf.ByteString
getImagePullPolicyBytes() {
java.lang.Object ref = imagePullPolicy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imagePullPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
*
*
* optional string imagePullPolicy = 14;
*/
public Builder setImagePullPolicy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00008000;
imagePullPolicy_ = value;
onChanged();
return this;
}
/**
*
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
*
*
* optional string imagePullPolicy = 14;
*/
public Builder clearImagePullPolicy() {
bitField0_ = (bitField0_ & ~0x00008000);
imagePullPolicy_ = getDefaultInstance().getImagePullPolicy();
onChanged();
return this;
}
/**
*
* Image pull policy.
* One of Always, Never, IfNotPresent.
* Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
* Cannot be updated.
* More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
* +optional
*
*
* optional string imagePullPolicy = 14;
*/
public Builder setImagePullPolicyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00008000;
imagePullPolicy_ = value;
onChanged();
return this;
}
private io.kubernetes.client.proto.V1.SecurityContext securityContext_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.SecurityContext, io.kubernetes.client.proto.V1.SecurityContext.Builder, io.kubernetes.client.proto.V1.SecurityContextOrBuilder> securityContextBuilder_;
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
public boolean hasSecurityContext() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
public io.kubernetes.client.proto.V1.SecurityContext getSecurityContext() {
if (securityContextBuilder_ == null) {
return securityContext_ == null ? io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance() : securityContext_;
} else {
return securityContextBuilder_.getMessage();
}
}
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
public Builder setSecurityContext(io.kubernetes.client.proto.V1.SecurityContext value) {
if (securityContextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
securityContext_ = value;
onChanged();
} else {
securityContextBuilder_.setMessage(value);
}
bitField0_ |= 0x00010000;
return this;
}
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
public Builder setSecurityContext(
io.kubernetes.client.proto.V1.SecurityContext.Builder builderForValue) {
if (securityContextBuilder_ == null) {
securityContext_ = builderForValue.build();
onChanged();
} else {
securityContextBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00010000;
return this;
}
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
public Builder mergeSecurityContext(io.kubernetes.client.proto.V1.SecurityContext value) {
if (securityContextBuilder_ == null) {
if (((bitField0_ & 0x00010000) == 0x00010000) &&
securityContext_ != null &&
securityContext_ != io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance()) {
securityContext_ =
io.kubernetes.client.proto.V1.SecurityContext.newBuilder(securityContext_).mergeFrom(value).buildPartial();
} else {
securityContext_ = value;
}
onChanged();
} else {
securityContextBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00010000;
return this;
}
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
public Builder clearSecurityContext() {
if (securityContextBuilder_ == null) {
securityContext_ = null;
onChanged();
} else {
securityContextBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00010000);
return this;
}
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
public io.kubernetes.client.proto.V1.SecurityContext.Builder getSecurityContextBuilder() {
bitField0_ |= 0x00010000;
onChanged();
return getSecurityContextFieldBuilder().getBuilder();
}
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
public io.kubernetes.client.proto.V1.SecurityContextOrBuilder getSecurityContextOrBuilder() {
if (securityContextBuilder_ != null) {
return securityContextBuilder_.getMessageOrBuilder();
} else {
return securityContext_ == null ?
io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance() : securityContext_;
}
}
/**
*
* Security options the pod should run with.
* More info: https://kubernetes.io/docs/concepts/policy/security-context/
* More info: https://git.k8s.io/community/contributors/design-proposals/security_context.md
* +optional
*
*
* optional .k8s.io.api.core.v1.SecurityContext securityContext = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.SecurityContext, io.kubernetes.client.proto.V1.SecurityContext.Builder, io.kubernetes.client.proto.V1.SecurityContextOrBuilder>
getSecurityContextFieldBuilder() {
if (securityContextBuilder_ == null) {
securityContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.SecurityContext, io.kubernetes.client.proto.V1.SecurityContext.Builder, io.kubernetes.client.proto.V1.SecurityContextOrBuilder>(
getSecurityContext(),
getParentForChildren(),
isClean());
securityContext_ = null;
}
return securityContextBuilder_;
}
private boolean stdin_ ;
/**
*
* Whether this container should allocate a buffer for stdin in the container runtime. If this
* is not set, reads from stdin in the container will always result in EOF.
* Default is false.
* +optional
*
*
* optional bool stdin = 16;
*/
public boolean hasStdin() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
*
* Whether this container should allocate a buffer for stdin in the container runtime. If this
* is not set, reads from stdin in the container will always result in EOF.
* Default is false.
* +optional
*
*
* optional bool stdin = 16;
*/
public boolean getStdin() {
return stdin_;
}
/**
*
* Whether this container should allocate a buffer for stdin in the container runtime. If this
* is not set, reads from stdin in the container will always result in EOF.
* Default is false.
* +optional
*
*
* optional bool stdin = 16;
*/
public Builder setStdin(boolean value) {
bitField0_ |= 0x00020000;
stdin_ = value;
onChanged();
return this;
}
/**
*
* Whether this container should allocate a buffer for stdin in the container runtime. If this
* is not set, reads from stdin in the container will always result in EOF.
* Default is false.
* +optional
*
*
* optional bool stdin = 16;
*/
public Builder clearStdin() {
bitField0_ = (bitField0_ & ~0x00020000);
stdin_ = false;
onChanged();
return this;
}
private boolean stdinOnce_ ;
/**
*
* Whether the container runtime should close the stdin channel after it has been opened by
* a single attach. When stdin is true the stdin stream will remain open across multiple attach
* sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
* first client attaches to stdin, and then remains open and accepts data until the client disconnects,
* at which time stdin is closed and remains closed until the container is restarted. If this
* flag is false, a container processes that reads from stdin will never receive an EOF.
* Default is false
* +optional
*
*
* optional bool stdinOnce = 17;
*/
public boolean hasStdinOnce() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
*
* Whether the container runtime should close the stdin channel after it has been opened by
* a single attach. When stdin is true the stdin stream will remain open across multiple attach
* sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
* first client attaches to stdin, and then remains open and accepts data until the client disconnects,
* at which time stdin is closed and remains closed until the container is restarted. If this
* flag is false, a container processes that reads from stdin will never receive an EOF.
* Default is false
* +optional
*
*
* optional bool stdinOnce = 17;
*/
public boolean getStdinOnce() {
return stdinOnce_;
}
/**
*
* Whether the container runtime should close the stdin channel after it has been opened by
* a single attach. When stdin is true the stdin stream will remain open across multiple attach
* sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
* first client attaches to stdin, and then remains open and accepts data until the client disconnects,
* at which time stdin is closed and remains closed until the container is restarted. If this
* flag is false, a container processes that reads from stdin will never receive an EOF.
* Default is false
* +optional
*
*
* optional bool stdinOnce = 17;
*/
public Builder setStdinOnce(boolean value) {
bitField0_ |= 0x00040000;
stdinOnce_ = value;
onChanged();
return this;
}
/**
*
* Whether the container runtime should close the stdin channel after it has been opened by
* a single attach. When stdin is true the stdin stream will remain open across multiple attach
* sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
* first client attaches to stdin, and then remains open and accepts data until the client disconnects,
* at which time stdin is closed and remains closed until the container is restarted. If this
* flag is false, a container processes that reads from stdin will never receive an EOF.
* Default is false
* +optional
*
*
* optional bool stdinOnce = 17;
*/
public Builder clearStdinOnce() {
bitField0_ = (bitField0_ & ~0x00040000);
stdinOnce_ = false;
onChanged();
return this;
}
private boolean tty_ ;
/**
*
* Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
* Default is false.
* +optional
*
*
* optional bool tty = 18;
*/
public boolean hasTty() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
*
* Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
* Default is false.
* +optional
*
*
* optional bool tty = 18;
*/
public boolean getTty() {
return tty_;
}
/**
*
* Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
* Default is false.
* +optional
*
*
* optional bool tty = 18;
*/
public Builder setTty(boolean value) {
bitField0_ |= 0x00080000;
tty_ = value;
onChanged();
return this;
}
/**
*
* Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
* Default is false.
* +optional
*
*
* optional bool tty = 18;
*/
public Builder clearTty() {
bitField0_ = (bitField0_ & ~0x00080000);
tty_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.Container)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Container)
private static final io.kubernetes.client.proto.V1.Container DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Container();
}
public static io.kubernetes.client.proto.V1.Container getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Container parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Container(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.Container getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerImageOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ContainerImage)
com.google.protobuf.MessageOrBuilder {
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
java.util.List
getNamesList();
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
int getNamesCount();
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
java.lang.String getNames(int index);
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
com.google.protobuf.ByteString
getNamesBytes(int index);
/**
*
* The size of the image in bytes.
* +optional
*
*
* optional int64 sizeBytes = 2;
*/
boolean hasSizeBytes();
/**
*
* The size of the image in bytes.
* +optional
*
*
* optional int64 sizeBytes = 2;
*/
long getSizeBytes();
}
/**
*
* Describe a container image
*
*
* Protobuf type {@code k8s.io.api.core.v1.ContainerImage}
*/
public static final class ContainerImage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ContainerImage)
ContainerImageOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerImage.newBuilder() to construct.
private ContainerImage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContainerImage() {
names_ = com.google.protobuf.LazyStringArrayList.EMPTY;
sizeBytes_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContainerImage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
names_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
names_.add(bs);
break;
}
case 16: {
bitField0_ |= 0x00000001;
sizeBytes_ = input.readInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
names_ = names_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerImage_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerImage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ContainerImage.class, io.kubernetes.client.proto.V1.ContainerImage.Builder.class);
}
private int bitField0_;
public static final int NAMES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList names_;
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
public com.google.protobuf.ProtocolStringList
getNamesList() {
return names_;
}
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
public int getNamesCount() {
return names_.size();
}
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
public java.lang.String getNames(int index) {
return names_.get(index);
}
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
public com.google.protobuf.ByteString
getNamesBytes(int index) {
return names_.getByteString(index);
}
public static final int SIZEBYTES_FIELD_NUMBER = 2;
private long sizeBytes_;
/**
*
* The size of the image in bytes.
* +optional
*
*
* optional int64 sizeBytes = 2;
*/
public boolean hasSizeBytes() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* The size of the image in bytes.
* +optional
*
*
* optional int64 sizeBytes = 2;
*/
public long getSizeBytes() {
return sizeBytes_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < names_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, names_.getRaw(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(2, sizeBytes_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < names_.size(); i++) {
dataSize += computeStringSizeNoTag(names_.getRaw(i));
}
size += dataSize;
size += 1 * getNamesList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, sizeBytes_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.ContainerImage)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.ContainerImage other = (io.kubernetes.client.proto.V1.ContainerImage) obj;
boolean result = true;
result = result && getNamesList()
.equals(other.getNamesList());
result = result && (hasSizeBytes() == other.hasSizeBytes());
if (hasSizeBytes()) {
result = result && (getSizeBytes()
== other.getSizeBytes());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getNamesCount() > 0) {
hash = (37 * hash) + NAMES_FIELD_NUMBER;
hash = (53 * hash) + getNamesList().hashCode();
}
if (hasSizeBytes()) {
hash = (37 * hash) + SIZEBYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSizeBytes());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.ContainerImage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerImage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerImage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerImage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerImage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerImage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerImage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerImage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerImage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerImage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerImage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerImage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.ContainerImage prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Describe a container image
*
*
* Protobuf type {@code k8s.io.api.core.v1.ContainerImage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ContainerImage)
io.kubernetes.client.proto.V1.ContainerImageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerImage_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerImage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ContainerImage.class, io.kubernetes.client.proto.V1.ContainerImage.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.ContainerImage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
names_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
sizeBytes_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerImage_descriptor;
}
public io.kubernetes.client.proto.V1.ContainerImage getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ContainerImage.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ContainerImage build() {
io.kubernetes.client.proto.V1.ContainerImage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.ContainerImage buildPartial() {
io.kubernetes.client.proto.V1.ContainerImage result = new io.kubernetes.client.proto.V1.ContainerImage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
names_ = names_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.names_ = names_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.sizeBytes_ = sizeBytes_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.ContainerImage) {
return mergeFrom((io.kubernetes.client.proto.V1.ContainerImage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.ContainerImage other) {
if (other == io.kubernetes.client.proto.V1.ContainerImage.getDefaultInstance()) return this;
if (!other.names_.isEmpty()) {
if (names_.isEmpty()) {
names_ = other.names_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNamesIsMutable();
names_.addAll(other.names_);
}
onChanged();
}
if (other.hasSizeBytes()) {
setSizeBytes(other.getSizeBytes());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ContainerImage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ContainerImage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureNamesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
names_ = new com.google.protobuf.LazyStringArrayList(names_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
public com.google.protobuf.ProtocolStringList
getNamesList() {
return names_.getUnmodifiableView();
}
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
public int getNamesCount() {
return names_.size();
}
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
public java.lang.String getNames(int index) {
return names_.get(index);
}
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
public com.google.protobuf.ByteString
getNamesBytes(int index) {
return names_.getByteString(index);
}
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
public Builder setNames(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureNamesIsMutable();
names_.set(index, value);
onChanged();
return this;
}
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
public Builder addNames(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureNamesIsMutable();
names_.add(value);
onChanged();
return this;
}
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
public Builder addAllNames(
java.lang.Iterable values) {
ensureNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, names_);
onChanged();
return this;
}
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
public Builder clearNames() {
names_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Names by which this image is known.
* e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
*
*
* repeated string names = 1;
*/
public Builder addNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureNamesIsMutable();
names_.add(value);
onChanged();
return this;
}
private long sizeBytes_ ;
/**
*
* The size of the image in bytes.
* +optional
*
*
* optional int64 sizeBytes = 2;
*/
public boolean hasSizeBytes() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* The size of the image in bytes.
* +optional
*
*
* optional int64 sizeBytes = 2;
*/
public long getSizeBytes() {
return sizeBytes_;
}
/**
*
* The size of the image in bytes.
* +optional
*
*
* optional int64 sizeBytes = 2;
*/
public Builder setSizeBytes(long value) {
bitField0_ |= 0x00000002;
sizeBytes_ = value;
onChanged();
return this;
}
/**
*
* The size of the image in bytes.
* +optional
*
*
* optional int64 sizeBytes = 2;
*/
public Builder clearSizeBytes() {
bitField0_ = (bitField0_ & ~0x00000002);
sizeBytes_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ContainerImage)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ContainerImage)
private static final io.kubernetes.client.proto.V1.ContainerImage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ContainerImage();
}
public static io.kubernetes.client.proto.V1.ContainerImage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ContainerImage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContainerImage(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ContainerImage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerPortOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ContainerPort)
com.google.protobuf.MessageOrBuilder {
/**
*
* If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
* named port in a pod must have a unique name. Name for the port that can be
* referred to by services.
* +optional
*
*
* optional string name = 1;
*/
boolean hasName();
/**
*
* If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
* named port in a pod must have a unique name. Name for the port that can be
* referred to by services.
* +optional
*
*
* optional string name = 1;
*/
java.lang.String getName();
/**
*
* If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
* named port in a pod must have a unique name. Name for the port that can be
* referred to by services.
* +optional
*
*
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Number of port to expose on the host.
* If specified, this must be a valid port number, 0 < x < 65536.
* If HostNetwork is specified, this must match ContainerPort.
* Most containers do not need this.
* +optional
*
*
* optional int32 hostPort = 2;
*/
boolean hasHostPort();
/**
*
* Number of port to expose on the host.
* If specified, this must be a valid port number, 0 < x < 65536.
* If HostNetwork is specified, this must match ContainerPort.
* Most containers do not need this.
* +optional
*
*
* optional int32 hostPort = 2;
*/
int getHostPort();
/**
*
* Number of port to expose on the pod's IP address.
* This must be a valid port number, 0 < x < 65536.
*
*
* optional int32 containerPort = 3;
*/
boolean hasContainerPort();
/**
*
* Number of port to expose on the pod's IP address.
* This must be a valid port number, 0 < x < 65536.
*
*
* optional int32 containerPort = 3;
*/
int getContainerPort();
/**
*
* Protocol for port. Must be UDP or TCP.
* Defaults to "TCP".
* +optional
*
*
* optional string protocol = 4;
*/
boolean hasProtocol();
/**
*
* Protocol for port. Must be UDP or TCP.
* Defaults to "TCP".
* +optional
*
*
* optional string protocol = 4;
*/
java.lang.String getProtocol();
/**
*
* Protocol for port. Must be UDP or TCP.
* Defaults to "TCP".
* +optional
*
*
* optional string protocol = 4;
*/
com.google.protobuf.ByteString
getProtocolBytes();
/**
*
* What host IP to bind the external port to.
* +optional
*
*
* optional string hostIP = 5;
*/
boolean hasHostIP();
/**
*
* What host IP to bind the external port to.
* +optional
*
*
* optional string hostIP = 5;
*/
java.lang.String getHostIP();
/**
*
* What host IP to bind the external port to.
* +optional
*
*
* optional string hostIP = 5;
*/
com.google.protobuf.ByteString
getHostIPBytes();
}
/**
*
* ContainerPort represents a network port in a single container.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ContainerPort}
*/
public static final class ContainerPort extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ContainerPort)
ContainerPortOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerPort.newBuilder() to construct.
private ContainerPort(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContainerPort() {
name_ = "";
hostPort_ = 0;
containerPort_ = 0;
protocol_ = "";
hostIP_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContainerPort(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 16: {
bitField0_ |= 0x00000002;
hostPort_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
containerPort_ = input.readInt32();
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
protocol_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
hostIP_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerPort_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerPort_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ContainerPort.class, io.kubernetes.client.proto.V1.ContainerPort.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
* named port in a pod must have a unique name. Name for the port that can be
* referred to by services.
* +optional
*
*
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
* named port in a pod must have a unique name. Name for the port that can be
* referred to by services.
* +optional
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
* named port in a pod must have a unique name. Name for the port that can be
* referred to by services.
* +optional
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HOSTPORT_FIELD_NUMBER = 2;
private int hostPort_;
/**
*
* Number of port to expose on the host.
* If specified, this must be a valid port number, 0 < x < 65536.
* If HostNetwork is specified, this must match ContainerPort.
* Most containers do not need this.
* +optional
*
*
* optional int32 hostPort = 2;
*/
public boolean hasHostPort() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Number of port to expose on the host.
* If specified, this must be a valid port number, 0 < x < 65536.
* If HostNetwork is specified, this must match ContainerPort.
* Most containers do not need this.
* +optional
*
*
* optional int32 hostPort = 2;
*/
public int getHostPort() {
return hostPort_;
}
public static final int CONTAINERPORT_FIELD_NUMBER = 3;
private int containerPort_;
/**
*
* Number of port to expose on the pod's IP address.
* This must be a valid port number, 0 < x < 65536.
*
*
* optional int32 containerPort = 3;
*/
public boolean hasContainerPort() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Number of port to expose on the pod's IP address.
* This must be a valid port number, 0 < x < 65536.
*
*
* optional int32 containerPort = 3;
*/
public int getContainerPort() {
return containerPort_;
}
public static final int PROTOCOL_FIELD_NUMBER = 4;
private volatile java.lang.Object protocol_;
/**
*
* Protocol for port. Must be UDP or TCP.
* Defaults to "TCP".
* +optional
*
*
* optional string protocol = 4;
*/
public boolean hasProtocol() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Protocol for port. Must be UDP or TCP.
* Defaults to "TCP".
* +optional
*
*
* optional string protocol = 4;
*/
public java.lang.String getProtocol() {
java.lang.Object ref = protocol_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
protocol_ = s;
}
return s;
}
}
/**
*
* Protocol for port. Must be UDP or TCP.
* Defaults to "TCP".
* +optional
*
*
* optional string protocol = 4;
*/
public com.google.protobuf.ByteString
getProtocolBytes() {
java.lang.Object ref = protocol_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
protocol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HOSTIP_FIELD_NUMBER = 5;
private volatile java.lang.Object hostIP_;
/**
*
* What host IP to bind the external port to.
* +optional
*
*
* optional string hostIP = 5;
*/
public boolean hasHostIP() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* What host IP to bind the external port to.
* +optional
*
*
* optional string hostIP = 5;
*/
public java.lang.String getHostIP() {
java.lang.Object ref = hostIP_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
hostIP_ = s;
}
return s;
}
}
/**
*
* What host IP to bind the external port to.
* +optional
*
*
* optional string hostIP = 5;
*/
public com.google.protobuf.ByteString
getHostIPBytes() {
java.lang.Object ref = hostIP_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostIP_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, hostPort_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, containerPort_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, protocol_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hostIP_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, hostPort_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, containerPort_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, protocol_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hostIP_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.ContainerPort)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.ContainerPort other = (io.kubernetes.client.proto.V1.ContainerPort) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasHostPort() == other.hasHostPort());
if (hasHostPort()) {
result = result && (getHostPort()
== other.getHostPort());
}
result = result && (hasContainerPort() == other.hasContainerPort());
if (hasContainerPort()) {
result = result && (getContainerPort()
== other.getContainerPort());
}
result = result && (hasProtocol() == other.hasProtocol());
if (hasProtocol()) {
result = result && getProtocol()
.equals(other.getProtocol());
}
result = result && (hasHostIP() == other.hasHostIP());
if (hasHostIP()) {
result = result && getHostIP()
.equals(other.getHostIP());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasHostPort()) {
hash = (37 * hash) + HOSTPORT_FIELD_NUMBER;
hash = (53 * hash) + getHostPort();
}
if (hasContainerPort()) {
hash = (37 * hash) + CONTAINERPORT_FIELD_NUMBER;
hash = (53 * hash) + getContainerPort();
}
if (hasProtocol()) {
hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
hash = (53 * hash) + getProtocol().hashCode();
}
if (hasHostIP()) {
hash = (37 * hash) + HOSTIP_FIELD_NUMBER;
hash = (53 * hash) + getHostIP().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.ContainerPort parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerPort parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerPort parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerPort parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerPort parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerPort parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerPort parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerPort parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerPort parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerPort parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerPort parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerPort parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.ContainerPort prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ContainerPort represents a network port in a single container.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ContainerPort}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ContainerPort)
io.kubernetes.client.proto.V1.ContainerPortOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerPort_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerPort_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ContainerPort.class, io.kubernetes.client.proto.V1.ContainerPort.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.ContainerPort.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
hostPort_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
containerPort_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
protocol_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
hostIP_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerPort_descriptor;
}
public io.kubernetes.client.proto.V1.ContainerPort getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ContainerPort.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ContainerPort build() {
io.kubernetes.client.proto.V1.ContainerPort result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.ContainerPort buildPartial() {
io.kubernetes.client.proto.V1.ContainerPort result = new io.kubernetes.client.proto.V1.ContainerPort(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.hostPort_ = hostPort_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.containerPort_ = containerPort_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.protocol_ = protocol_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.hostIP_ = hostIP_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.ContainerPort) {
return mergeFrom((io.kubernetes.client.proto.V1.ContainerPort)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.ContainerPort other) {
if (other == io.kubernetes.client.proto.V1.ContainerPort.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasHostPort()) {
setHostPort(other.getHostPort());
}
if (other.hasContainerPort()) {
setContainerPort(other.getContainerPort());
}
if (other.hasProtocol()) {
bitField0_ |= 0x00000008;
protocol_ = other.protocol_;
onChanged();
}
if (other.hasHostIP()) {
bitField0_ |= 0x00000010;
hostIP_ = other.hostIP_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ContainerPort parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ContainerPort) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
* named port in a pod must have a unique name. Name for the port that can be
* referred to by services.
* +optional
*
*
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
* named port in a pod must have a unique name. Name for the port that can be
* referred to by services.
* +optional
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
* named port in a pod must have a unique name. Name for the port that can be
* referred to by services.
* +optional
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
* named port in a pod must have a unique name. Name for the port that can be
* referred to by services.
* +optional
*
*
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
*
* If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
* named port in a pod must have a unique name. Name for the port that can be
* referred to by services.
* +optional
*
*
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
* named port in a pod must have a unique name. Name for the port that can be
* referred to by services.
* +optional
*
*
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private int hostPort_ ;
/**
*
* Number of port to expose on the host.
* If specified, this must be a valid port number, 0 < x < 65536.
* If HostNetwork is specified, this must match ContainerPort.
* Most containers do not need this.
* +optional
*
*
* optional int32 hostPort = 2;
*/
public boolean hasHostPort() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Number of port to expose on the host.
* If specified, this must be a valid port number, 0 < x < 65536.
* If HostNetwork is specified, this must match ContainerPort.
* Most containers do not need this.
* +optional
*
*
* optional int32 hostPort = 2;
*/
public int getHostPort() {
return hostPort_;
}
/**
*
* Number of port to expose on the host.
* If specified, this must be a valid port number, 0 < x < 65536.
* If HostNetwork is specified, this must match ContainerPort.
* Most containers do not need this.
* +optional
*
*
* optional int32 hostPort = 2;
*/
public Builder setHostPort(int value) {
bitField0_ |= 0x00000002;
hostPort_ = value;
onChanged();
return this;
}
/**
*
* Number of port to expose on the host.
* If specified, this must be a valid port number, 0 < x < 65536.
* If HostNetwork is specified, this must match ContainerPort.
* Most containers do not need this.
* +optional
*
*
* optional int32 hostPort = 2;
*/
public Builder clearHostPort() {
bitField0_ = (bitField0_ & ~0x00000002);
hostPort_ = 0;
onChanged();
return this;
}
private int containerPort_ ;
/**
*
* Number of port to expose on the pod's IP address.
* This must be a valid port number, 0 < x < 65536.
*
*
* optional int32 containerPort = 3;
*/
public boolean hasContainerPort() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Number of port to expose on the pod's IP address.
* This must be a valid port number, 0 < x < 65536.
*
*
* optional int32 containerPort = 3;
*/
public int getContainerPort() {
return containerPort_;
}
/**
*
* Number of port to expose on the pod's IP address.
* This must be a valid port number, 0 < x < 65536.
*
*
* optional int32 containerPort = 3;
*/
public Builder setContainerPort(int value) {
bitField0_ |= 0x00000004;
containerPort_ = value;
onChanged();
return this;
}
/**
*
* Number of port to expose on the pod's IP address.
* This must be a valid port number, 0 < x < 65536.
*
*
* optional int32 containerPort = 3;
*/
public Builder clearContainerPort() {
bitField0_ = (bitField0_ & ~0x00000004);
containerPort_ = 0;
onChanged();
return this;
}
private java.lang.Object protocol_ = "";
/**
*
* Protocol for port. Must be UDP or TCP.
* Defaults to "TCP".
* +optional
*
*
* optional string protocol = 4;
*/
public boolean hasProtocol() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Protocol for port. Must be UDP or TCP.
* Defaults to "TCP".
* +optional
*
*
* optional string protocol = 4;
*/
public java.lang.String getProtocol() {
java.lang.Object ref = protocol_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
protocol_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Protocol for port. Must be UDP or TCP.
* Defaults to "TCP".
* +optional
*
*
* optional string protocol = 4;
*/
public com.google.protobuf.ByteString
getProtocolBytes() {
java.lang.Object ref = protocol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
protocol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Protocol for port. Must be UDP or TCP.
* Defaults to "TCP".
* +optional
*
*
* optional string protocol = 4;
*/
public Builder setProtocol(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
protocol_ = value;
onChanged();
return this;
}
/**
*
* Protocol for port. Must be UDP or TCP.
* Defaults to "TCP".
* +optional
*
*
* optional string protocol = 4;
*/
public Builder clearProtocol() {
bitField0_ = (bitField0_ & ~0x00000008);
protocol_ = getDefaultInstance().getProtocol();
onChanged();
return this;
}
/**
*
* Protocol for port. Must be UDP or TCP.
* Defaults to "TCP".
* +optional
*
*
* optional string protocol = 4;
*/
public Builder setProtocolBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
protocol_ = value;
onChanged();
return this;
}
private java.lang.Object hostIP_ = "";
/**
*
* What host IP to bind the external port to.
* +optional
*
*
* optional string hostIP = 5;
*/
public boolean hasHostIP() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* What host IP to bind the external port to.
* +optional
*
*
* optional string hostIP = 5;
*/
public java.lang.String getHostIP() {
java.lang.Object ref = hostIP_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
hostIP_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* What host IP to bind the external port to.
* +optional
*
*
* optional string hostIP = 5;
*/
public com.google.protobuf.ByteString
getHostIPBytes() {
java.lang.Object ref = hostIP_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostIP_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* What host IP to bind the external port to.
* +optional
*
*
* optional string hostIP = 5;
*/
public Builder setHostIP(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
hostIP_ = value;
onChanged();
return this;
}
/**
*
* What host IP to bind the external port to.
* +optional
*
*
* optional string hostIP = 5;
*/
public Builder clearHostIP() {
bitField0_ = (bitField0_ & ~0x00000010);
hostIP_ = getDefaultInstance().getHostIP();
onChanged();
return this;
}
/**
*
* What host IP to bind the external port to.
* +optional
*
*
* optional string hostIP = 5;
*/
public Builder setHostIPBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
hostIP_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ContainerPort)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ContainerPort)
private static final io.kubernetes.client.proto.V1.ContainerPort DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ContainerPort();
}
public static io.kubernetes.client.proto.V1.ContainerPort getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ContainerPort parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContainerPort(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ContainerPort getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ContainerState)
com.google.protobuf.MessageOrBuilder {
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
boolean hasWaiting();
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
io.kubernetes.client.proto.V1.ContainerStateWaiting getWaiting();
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
io.kubernetes.client.proto.V1.ContainerStateWaitingOrBuilder getWaitingOrBuilder();
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
boolean hasRunning();
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
io.kubernetes.client.proto.V1.ContainerStateRunning getRunning();
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
io.kubernetes.client.proto.V1.ContainerStateRunningOrBuilder getRunningOrBuilder();
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
boolean hasTerminated();
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
io.kubernetes.client.proto.V1.ContainerStateTerminated getTerminated();
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
io.kubernetes.client.proto.V1.ContainerStateTerminatedOrBuilder getTerminatedOrBuilder();
}
/**
*
* ContainerState holds a possible state of container.
* Only one of its members may be specified.
* If none of them is specified, the default one is ContainerStateWaiting.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ContainerState}
*/
public static final class ContainerState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ContainerState)
ContainerStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerState.newBuilder() to construct.
private ContainerState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContainerState() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContainerState(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = waiting_.toBuilder();
}
waiting_ = input.readMessage(io.kubernetes.client.proto.V1.ContainerStateWaiting.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(waiting_);
waiting_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
io.kubernetes.client.proto.V1.ContainerStateRunning.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = running_.toBuilder();
}
running_ = input.readMessage(io.kubernetes.client.proto.V1.ContainerStateRunning.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(running_);
running_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = terminated_.toBuilder();
}
terminated_ = input.readMessage(io.kubernetes.client.proto.V1.ContainerStateTerminated.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(terminated_);
terminated_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerState_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ContainerState.class, io.kubernetes.client.proto.V1.ContainerState.Builder.class);
}
private int bitField0_;
public static final int WAITING_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.V1.ContainerStateWaiting waiting_;
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
public boolean hasWaiting() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
public io.kubernetes.client.proto.V1.ContainerStateWaiting getWaiting() {
return waiting_ == null ? io.kubernetes.client.proto.V1.ContainerStateWaiting.getDefaultInstance() : waiting_;
}
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
public io.kubernetes.client.proto.V1.ContainerStateWaitingOrBuilder getWaitingOrBuilder() {
return waiting_ == null ? io.kubernetes.client.proto.V1.ContainerStateWaiting.getDefaultInstance() : waiting_;
}
public static final int RUNNING_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1.ContainerStateRunning running_;
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
public boolean hasRunning() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
public io.kubernetes.client.proto.V1.ContainerStateRunning getRunning() {
return running_ == null ? io.kubernetes.client.proto.V1.ContainerStateRunning.getDefaultInstance() : running_;
}
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
public io.kubernetes.client.proto.V1.ContainerStateRunningOrBuilder getRunningOrBuilder() {
return running_ == null ? io.kubernetes.client.proto.V1.ContainerStateRunning.getDefaultInstance() : running_;
}
public static final int TERMINATED_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1.ContainerStateTerminated terminated_;
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
public boolean hasTerminated() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
public io.kubernetes.client.proto.V1.ContainerStateTerminated getTerminated() {
return terminated_ == null ? io.kubernetes.client.proto.V1.ContainerStateTerminated.getDefaultInstance() : terminated_;
}
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
public io.kubernetes.client.proto.V1.ContainerStateTerminatedOrBuilder getTerminatedOrBuilder() {
return terminated_ == null ? io.kubernetes.client.proto.V1.ContainerStateTerminated.getDefaultInstance() : terminated_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getWaiting());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getRunning());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getTerminated());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getWaiting());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRunning());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTerminated());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.ContainerState)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.ContainerState other = (io.kubernetes.client.proto.V1.ContainerState) obj;
boolean result = true;
result = result && (hasWaiting() == other.hasWaiting());
if (hasWaiting()) {
result = result && getWaiting()
.equals(other.getWaiting());
}
result = result && (hasRunning() == other.hasRunning());
if (hasRunning()) {
result = result && getRunning()
.equals(other.getRunning());
}
result = result && (hasTerminated() == other.hasTerminated());
if (hasTerminated()) {
result = result && getTerminated()
.equals(other.getTerminated());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasWaiting()) {
hash = (37 * hash) + WAITING_FIELD_NUMBER;
hash = (53 * hash) + getWaiting().hashCode();
}
if (hasRunning()) {
hash = (37 * hash) + RUNNING_FIELD_NUMBER;
hash = (53 * hash) + getRunning().hashCode();
}
if (hasTerminated()) {
hash = (37 * hash) + TERMINATED_FIELD_NUMBER;
hash = (53 * hash) + getTerminated().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.ContainerState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerState parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerState parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerState parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerState parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.ContainerState prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ContainerState holds a possible state of container.
* Only one of its members may be specified.
* If none of them is specified, the default one is ContainerStateWaiting.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ContainerState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ContainerState)
io.kubernetes.client.proto.V1.ContainerStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerState_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ContainerState.class, io.kubernetes.client.proto.V1.ContainerState.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.ContainerState.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getWaitingFieldBuilder();
getRunningFieldBuilder();
getTerminatedFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (waitingBuilder_ == null) {
waiting_ = null;
} else {
waitingBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (runningBuilder_ == null) {
running_ = null;
} else {
runningBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (terminatedBuilder_ == null) {
terminated_ = null;
} else {
terminatedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerState_descriptor;
}
public io.kubernetes.client.proto.V1.ContainerState getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ContainerState build() {
io.kubernetes.client.proto.V1.ContainerState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.ContainerState buildPartial() {
io.kubernetes.client.proto.V1.ContainerState result = new io.kubernetes.client.proto.V1.ContainerState(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (waitingBuilder_ == null) {
result.waiting_ = waiting_;
} else {
result.waiting_ = waitingBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (runningBuilder_ == null) {
result.running_ = running_;
} else {
result.running_ = runningBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (terminatedBuilder_ == null) {
result.terminated_ = terminated_;
} else {
result.terminated_ = terminatedBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.ContainerState) {
return mergeFrom((io.kubernetes.client.proto.V1.ContainerState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.ContainerState other) {
if (other == io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance()) return this;
if (other.hasWaiting()) {
mergeWaiting(other.getWaiting());
}
if (other.hasRunning()) {
mergeRunning(other.getRunning());
}
if (other.hasTerminated()) {
mergeTerminated(other.getTerminated());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ContainerState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ContainerState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.V1.ContainerStateWaiting waiting_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerStateWaiting, io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder, io.kubernetes.client.proto.V1.ContainerStateWaitingOrBuilder> waitingBuilder_;
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
public boolean hasWaiting() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
public io.kubernetes.client.proto.V1.ContainerStateWaiting getWaiting() {
if (waitingBuilder_ == null) {
return waiting_ == null ? io.kubernetes.client.proto.V1.ContainerStateWaiting.getDefaultInstance() : waiting_;
} else {
return waitingBuilder_.getMessage();
}
}
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
public Builder setWaiting(io.kubernetes.client.proto.V1.ContainerStateWaiting value) {
if (waitingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
waiting_ = value;
onChanged();
} else {
waitingBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
public Builder setWaiting(
io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder builderForValue) {
if (waitingBuilder_ == null) {
waiting_ = builderForValue.build();
onChanged();
} else {
waitingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
public Builder mergeWaiting(io.kubernetes.client.proto.V1.ContainerStateWaiting value) {
if (waitingBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
waiting_ != null &&
waiting_ != io.kubernetes.client.proto.V1.ContainerStateWaiting.getDefaultInstance()) {
waiting_ =
io.kubernetes.client.proto.V1.ContainerStateWaiting.newBuilder(waiting_).mergeFrom(value).buildPartial();
} else {
waiting_ = value;
}
onChanged();
} else {
waitingBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
public Builder clearWaiting() {
if (waitingBuilder_ == null) {
waiting_ = null;
onChanged();
} else {
waitingBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
public io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder getWaitingBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getWaitingFieldBuilder().getBuilder();
}
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
public io.kubernetes.client.proto.V1.ContainerStateWaitingOrBuilder getWaitingOrBuilder() {
if (waitingBuilder_ != null) {
return waitingBuilder_.getMessageOrBuilder();
} else {
return waiting_ == null ?
io.kubernetes.client.proto.V1.ContainerStateWaiting.getDefaultInstance() : waiting_;
}
}
/**
*
* Details about a waiting container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerStateWaiting, io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder, io.kubernetes.client.proto.V1.ContainerStateWaitingOrBuilder>
getWaitingFieldBuilder() {
if (waitingBuilder_ == null) {
waitingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerStateWaiting, io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder, io.kubernetes.client.proto.V1.ContainerStateWaitingOrBuilder>(
getWaiting(),
getParentForChildren(),
isClean());
waiting_ = null;
}
return waitingBuilder_;
}
private io.kubernetes.client.proto.V1.ContainerStateRunning running_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerStateRunning, io.kubernetes.client.proto.V1.ContainerStateRunning.Builder, io.kubernetes.client.proto.V1.ContainerStateRunningOrBuilder> runningBuilder_;
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
public boolean hasRunning() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
public io.kubernetes.client.proto.V1.ContainerStateRunning getRunning() {
if (runningBuilder_ == null) {
return running_ == null ? io.kubernetes.client.proto.V1.ContainerStateRunning.getDefaultInstance() : running_;
} else {
return runningBuilder_.getMessage();
}
}
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
public Builder setRunning(io.kubernetes.client.proto.V1.ContainerStateRunning value) {
if (runningBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
running_ = value;
onChanged();
} else {
runningBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
public Builder setRunning(
io.kubernetes.client.proto.V1.ContainerStateRunning.Builder builderForValue) {
if (runningBuilder_ == null) {
running_ = builderForValue.build();
onChanged();
} else {
runningBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
public Builder mergeRunning(io.kubernetes.client.proto.V1.ContainerStateRunning value) {
if (runningBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
running_ != null &&
running_ != io.kubernetes.client.proto.V1.ContainerStateRunning.getDefaultInstance()) {
running_ =
io.kubernetes.client.proto.V1.ContainerStateRunning.newBuilder(running_).mergeFrom(value).buildPartial();
} else {
running_ = value;
}
onChanged();
} else {
runningBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
public Builder clearRunning() {
if (runningBuilder_ == null) {
running_ = null;
onChanged();
} else {
runningBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
public io.kubernetes.client.proto.V1.ContainerStateRunning.Builder getRunningBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getRunningFieldBuilder().getBuilder();
}
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
public io.kubernetes.client.proto.V1.ContainerStateRunningOrBuilder getRunningOrBuilder() {
if (runningBuilder_ != null) {
return runningBuilder_.getMessageOrBuilder();
} else {
return running_ == null ?
io.kubernetes.client.proto.V1.ContainerStateRunning.getDefaultInstance() : running_;
}
}
/**
*
* Details about a running container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateRunning running = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerStateRunning, io.kubernetes.client.proto.V1.ContainerStateRunning.Builder, io.kubernetes.client.proto.V1.ContainerStateRunningOrBuilder>
getRunningFieldBuilder() {
if (runningBuilder_ == null) {
runningBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerStateRunning, io.kubernetes.client.proto.V1.ContainerStateRunning.Builder, io.kubernetes.client.proto.V1.ContainerStateRunningOrBuilder>(
getRunning(),
getParentForChildren(),
isClean());
running_ = null;
}
return runningBuilder_;
}
private io.kubernetes.client.proto.V1.ContainerStateTerminated terminated_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerStateTerminated, io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder, io.kubernetes.client.proto.V1.ContainerStateTerminatedOrBuilder> terminatedBuilder_;
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
public boolean hasTerminated() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
public io.kubernetes.client.proto.V1.ContainerStateTerminated getTerminated() {
if (terminatedBuilder_ == null) {
return terminated_ == null ? io.kubernetes.client.proto.V1.ContainerStateTerminated.getDefaultInstance() : terminated_;
} else {
return terminatedBuilder_.getMessage();
}
}
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
public Builder setTerminated(io.kubernetes.client.proto.V1.ContainerStateTerminated value) {
if (terminatedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
terminated_ = value;
onChanged();
} else {
terminatedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
public Builder setTerminated(
io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder builderForValue) {
if (terminatedBuilder_ == null) {
terminated_ = builderForValue.build();
onChanged();
} else {
terminatedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
public Builder mergeTerminated(io.kubernetes.client.proto.V1.ContainerStateTerminated value) {
if (terminatedBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
terminated_ != null &&
terminated_ != io.kubernetes.client.proto.V1.ContainerStateTerminated.getDefaultInstance()) {
terminated_ =
io.kubernetes.client.proto.V1.ContainerStateTerminated.newBuilder(terminated_).mergeFrom(value).buildPartial();
} else {
terminated_ = value;
}
onChanged();
} else {
terminatedBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
public Builder clearTerminated() {
if (terminatedBuilder_ == null) {
terminated_ = null;
onChanged();
} else {
terminatedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
public io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder getTerminatedBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTerminatedFieldBuilder().getBuilder();
}
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
public io.kubernetes.client.proto.V1.ContainerStateTerminatedOrBuilder getTerminatedOrBuilder() {
if (terminatedBuilder_ != null) {
return terminatedBuilder_.getMessageOrBuilder();
} else {
return terminated_ == null ?
io.kubernetes.client.proto.V1.ContainerStateTerminated.getDefaultInstance() : terminated_;
}
}
/**
*
* Details about a terminated container
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerStateTerminated, io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder, io.kubernetes.client.proto.V1.ContainerStateTerminatedOrBuilder>
getTerminatedFieldBuilder() {
if (terminatedBuilder_ == null) {
terminatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerStateTerminated, io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder, io.kubernetes.client.proto.V1.ContainerStateTerminatedOrBuilder>(
getTerminated(),
getParentForChildren(),
isClean());
terminated_ = null;
}
return terminatedBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ContainerState)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ContainerState)
private static final io.kubernetes.client.proto.V1.ContainerState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ContainerState();
}
public static io.kubernetes.client.proto.V1.ContainerState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ContainerState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContainerState(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ContainerState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerStateRunningOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ContainerStateRunning)
com.google.protobuf.MessageOrBuilder {
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
boolean hasStartedAt();
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
io.kubernetes.client.proto.Meta.Time getStartedAt();
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
io.kubernetes.client.proto.Meta.TimeOrBuilder getStartedAtOrBuilder();
}
/**
*
* ContainerStateRunning is a running state of a container.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ContainerStateRunning}
*/
public static final class ContainerStateRunning extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ContainerStateRunning)
ContainerStateRunningOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerStateRunning.newBuilder() to construct.
private ContainerStateRunning(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContainerStateRunning() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContainerStateRunning(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = startedAt_.toBuilder();
}
startedAt_ = input.readMessage(io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(startedAt_);
startedAt_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateRunning_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateRunning_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ContainerStateRunning.class, io.kubernetes.client.proto.V1.ContainerStateRunning.Builder.class);
}
private int bitField0_;
public static final int STARTEDAT_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.Time startedAt_;
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
public boolean hasStartedAt() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
public io.kubernetes.client.proto.Meta.Time getStartedAt() {
return startedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_;
}
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
public io.kubernetes.client.proto.Meta.TimeOrBuilder getStartedAtOrBuilder() {
return startedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getStartedAt());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStartedAt());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.ContainerStateRunning)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.ContainerStateRunning other = (io.kubernetes.client.proto.V1.ContainerStateRunning) obj;
boolean result = true;
result = result && (hasStartedAt() == other.hasStartedAt());
if (hasStartedAt()) {
result = result && getStartedAt()
.equals(other.getStartedAt());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasStartedAt()) {
hash = (37 * hash) + STARTEDAT_FIELD_NUMBER;
hash = (53 * hash) + getStartedAt().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.ContainerStateRunning parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerStateRunning parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateRunning parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerStateRunning parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateRunning parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerStateRunning parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateRunning parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerStateRunning parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateRunning parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerStateRunning parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateRunning parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerStateRunning parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.ContainerStateRunning prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ContainerStateRunning is a running state of a container.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ContainerStateRunning}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ContainerStateRunning)
io.kubernetes.client.proto.V1.ContainerStateRunningOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateRunning_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateRunning_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ContainerStateRunning.class, io.kubernetes.client.proto.V1.ContainerStateRunning.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.ContainerStateRunning.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStartedAtFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (startedAtBuilder_ == null) {
startedAt_ = null;
} else {
startedAtBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateRunning_descriptor;
}
public io.kubernetes.client.proto.V1.ContainerStateRunning getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ContainerStateRunning.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ContainerStateRunning build() {
io.kubernetes.client.proto.V1.ContainerStateRunning result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.ContainerStateRunning buildPartial() {
io.kubernetes.client.proto.V1.ContainerStateRunning result = new io.kubernetes.client.proto.V1.ContainerStateRunning(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (startedAtBuilder_ == null) {
result.startedAt_ = startedAt_;
} else {
result.startedAt_ = startedAtBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.ContainerStateRunning) {
return mergeFrom((io.kubernetes.client.proto.V1.ContainerStateRunning)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.ContainerStateRunning other) {
if (other == io.kubernetes.client.proto.V1.ContainerStateRunning.getDefaultInstance()) return this;
if (other.hasStartedAt()) {
mergeStartedAt(other.getStartedAt());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ContainerStateRunning parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ContainerStateRunning) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.Time startedAt_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> startedAtBuilder_;
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
public boolean hasStartedAt() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
public io.kubernetes.client.proto.Meta.Time getStartedAt() {
if (startedAtBuilder_ == null) {
return startedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_;
} else {
return startedAtBuilder_.getMessage();
}
}
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
public Builder setStartedAt(io.kubernetes.client.proto.Meta.Time value) {
if (startedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startedAt_ = value;
onChanged();
} else {
startedAtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
public Builder setStartedAt(
io.kubernetes.client.proto.Meta.Time.Builder builderForValue) {
if (startedAtBuilder_ == null) {
startedAt_ = builderForValue.build();
onChanged();
} else {
startedAtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
public Builder mergeStartedAt(io.kubernetes.client.proto.Meta.Time value) {
if (startedAtBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
startedAt_ != null &&
startedAt_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) {
startedAt_ =
io.kubernetes.client.proto.Meta.Time.newBuilder(startedAt_).mergeFrom(value).buildPartial();
} else {
startedAt_ = value;
}
onChanged();
} else {
startedAtBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
public Builder clearStartedAt() {
if (startedAtBuilder_ == null) {
startedAt_ = null;
onChanged();
} else {
startedAtBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
public io.kubernetes.client.proto.Meta.Time.Builder getStartedAtBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getStartedAtFieldBuilder().getBuilder();
}
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
public io.kubernetes.client.proto.Meta.TimeOrBuilder getStartedAtOrBuilder() {
if (startedAtBuilder_ != null) {
return startedAtBuilder_.getMessageOrBuilder();
} else {
return startedAt_ == null ?
io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_;
}
}
/**
*
* Time at which the container was last (re-)started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>
getStartedAtFieldBuilder() {
if (startedAtBuilder_ == null) {
startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>(
getStartedAt(),
getParentForChildren(),
isClean());
startedAt_ = null;
}
return startedAtBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ContainerStateRunning)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ContainerStateRunning)
private static final io.kubernetes.client.proto.V1.ContainerStateRunning DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ContainerStateRunning();
}
public static io.kubernetes.client.proto.V1.ContainerStateRunning getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ContainerStateRunning parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContainerStateRunning(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ContainerStateRunning getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerStateTerminatedOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ContainerStateTerminated)
com.google.protobuf.MessageOrBuilder {
/**
*
* Exit status from the last termination of the container
*
*
* optional int32 exitCode = 1;
*/
boolean hasExitCode();
/**
*
* Exit status from the last termination of the container
*
*
* optional int32 exitCode = 1;
*/
int getExitCode();
/**
*
* Signal from the last termination of the container
* +optional
*
*
* optional int32 signal = 2;
*/
boolean hasSignal();
/**
*
* Signal from the last termination of the container
* +optional
*
*
* optional int32 signal = 2;
*/
int getSignal();
/**
*
* (brief) reason from the last termination of the container
* +optional
*
*
* optional string reason = 3;
*/
boolean hasReason();
/**
*
* (brief) reason from the last termination of the container
* +optional
*
*
* optional string reason = 3;
*/
java.lang.String getReason();
/**
*
* (brief) reason from the last termination of the container
* +optional
*
*
* optional string reason = 3;
*/
com.google.protobuf.ByteString
getReasonBytes();
/**
*
* Message regarding the last termination of the container
* +optional
*
*
* optional string message = 4;
*/
boolean hasMessage();
/**
*
* Message regarding the last termination of the container
* +optional
*
*
* optional string message = 4;
*/
java.lang.String getMessage();
/**
*
* Message regarding the last termination of the container
* +optional
*
*
* optional string message = 4;
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
boolean hasStartedAt();
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
io.kubernetes.client.proto.Meta.Time getStartedAt();
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
io.kubernetes.client.proto.Meta.TimeOrBuilder getStartedAtOrBuilder();
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
boolean hasFinishedAt();
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
io.kubernetes.client.proto.Meta.Time getFinishedAt();
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
io.kubernetes.client.proto.Meta.TimeOrBuilder getFinishedAtOrBuilder();
/**
*
* Container's ID in the format 'docker://<container_id>'
* +optional
*
*
* optional string containerID = 7;
*/
boolean hasContainerID();
/**
*
* Container's ID in the format 'docker://<container_id>'
* +optional
*
*
* optional string containerID = 7;
*/
java.lang.String getContainerID();
/**
*
* Container's ID in the format 'docker://<container_id>'
* +optional
*
*
* optional string containerID = 7;
*/
com.google.protobuf.ByteString
getContainerIDBytes();
}
/**
*
* ContainerStateTerminated is a terminated state of a container.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ContainerStateTerminated}
*/
public static final class ContainerStateTerminated extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ContainerStateTerminated)
ContainerStateTerminatedOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerStateTerminated.newBuilder() to construct.
private ContainerStateTerminated(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContainerStateTerminated() {
exitCode_ = 0;
signal_ = 0;
reason_ = "";
message_ = "";
containerID_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContainerStateTerminated(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
exitCode_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
signal_ = input.readInt32();
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
reason_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
message_ = bs;
break;
}
case 42: {
io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = startedAt_.toBuilder();
}
startedAt_ = input.readMessage(io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(startedAt_);
startedAt_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = finishedAt_.toBuilder();
}
finishedAt_ = input.readMessage(io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(finishedAt_);
finishedAt_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
containerID_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateTerminated_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateTerminated_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ContainerStateTerminated.class, io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder.class);
}
private int bitField0_;
public static final int EXITCODE_FIELD_NUMBER = 1;
private int exitCode_;
/**
*
* Exit status from the last termination of the container
*
*
* optional int32 exitCode = 1;
*/
public boolean hasExitCode() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Exit status from the last termination of the container
*
*
* optional int32 exitCode = 1;
*/
public int getExitCode() {
return exitCode_;
}
public static final int SIGNAL_FIELD_NUMBER = 2;
private int signal_;
/**
*
* Signal from the last termination of the container
* +optional
*
*
* optional int32 signal = 2;
*/
public boolean hasSignal() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Signal from the last termination of the container
* +optional
*
*
* optional int32 signal = 2;
*/
public int getSignal() {
return signal_;
}
public static final int REASON_FIELD_NUMBER = 3;
private volatile java.lang.Object reason_;
/**
*
* (brief) reason from the last termination of the container
* +optional
*
*
* optional string reason = 3;
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* (brief) reason from the last termination of the container
* +optional
*
*
* optional string reason = 3;
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
reason_ = s;
}
return s;
}
}
/**
*
* (brief) reason from the last termination of the container
* +optional
*
*
* optional string reason = 3;
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_FIELD_NUMBER = 4;
private volatile java.lang.Object message_;
/**
*
* Message regarding the last termination of the container
* +optional
*
*
* optional string message = 4;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Message regarding the last termination of the container
* +optional
*
*
* optional string message = 4;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
}
}
/**
*
* Message regarding the last termination of the container
* +optional
*
*
* optional string message = 4;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STARTEDAT_FIELD_NUMBER = 5;
private io.kubernetes.client.proto.Meta.Time startedAt_;
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
public boolean hasStartedAt() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
public io.kubernetes.client.proto.Meta.Time getStartedAt() {
return startedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_;
}
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
public io.kubernetes.client.proto.Meta.TimeOrBuilder getStartedAtOrBuilder() {
return startedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_;
}
public static final int FINISHEDAT_FIELD_NUMBER = 6;
private io.kubernetes.client.proto.Meta.Time finishedAt_;
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
public boolean hasFinishedAt() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
public io.kubernetes.client.proto.Meta.Time getFinishedAt() {
return finishedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : finishedAt_;
}
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
public io.kubernetes.client.proto.Meta.TimeOrBuilder getFinishedAtOrBuilder() {
return finishedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : finishedAt_;
}
public static final int CONTAINERID_FIELD_NUMBER = 7;
private volatile java.lang.Object containerID_;
/**
*
* Container's ID in the format 'docker://<container_id>'
* +optional
*
*
* optional string containerID = 7;
*/
public boolean hasContainerID() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
* Container's ID in the format 'docker://<container_id>'
* +optional
*
*
* optional string containerID = 7;
*/
public java.lang.String getContainerID() {
java.lang.Object ref = containerID_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
containerID_ = s;
}
return s;
}
}
/**
*
* Container's ID in the format 'docker://<container_id>'
* +optional
*
*
* optional string containerID = 7;
*/
public com.google.protobuf.ByteString
getContainerIDBytes() {
java.lang.Object ref = containerID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
containerID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, exitCode_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, signal_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, reason_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, getStartedAt());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(6, getFinishedAt());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, containerID_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, exitCode_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, signal_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reason_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getStartedAt());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getFinishedAt());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, containerID_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.ContainerStateTerminated)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.ContainerStateTerminated other = (io.kubernetes.client.proto.V1.ContainerStateTerminated) obj;
boolean result = true;
result = result && (hasExitCode() == other.hasExitCode());
if (hasExitCode()) {
result = result && (getExitCode()
== other.getExitCode());
}
result = result && (hasSignal() == other.hasSignal());
if (hasSignal()) {
result = result && (getSignal()
== other.getSignal());
}
result = result && (hasReason() == other.hasReason());
if (hasReason()) {
result = result && getReason()
.equals(other.getReason());
}
result = result && (hasMessage() == other.hasMessage());
if (hasMessage()) {
result = result && getMessage()
.equals(other.getMessage());
}
result = result && (hasStartedAt() == other.hasStartedAt());
if (hasStartedAt()) {
result = result && getStartedAt()
.equals(other.getStartedAt());
}
result = result && (hasFinishedAt() == other.hasFinishedAt());
if (hasFinishedAt()) {
result = result && getFinishedAt()
.equals(other.getFinishedAt());
}
result = result && (hasContainerID() == other.hasContainerID());
if (hasContainerID()) {
result = result && getContainerID()
.equals(other.getContainerID());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasExitCode()) {
hash = (37 * hash) + EXITCODE_FIELD_NUMBER;
hash = (53 * hash) + getExitCode();
}
if (hasSignal()) {
hash = (37 * hash) + SIGNAL_FIELD_NUMBER;
hash = (53 * hash) + getSignal();
}
if (hasReason()) {
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReason().hashCode();
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
if (hasStartedAt()) {
hash = (37 * hash) + STARTEDAT_FIELD_NUMBER;
hash = (53 * hash) + getStartedAt().hashCode();
}
if (hasFinishedAt()) {
hash = (37 * hash) + FINISHEDAT_FIELD_NUMBER;
hash = (53 * hash) + getFinishedAt().hashCode();
}
if (hasContainerID()) {
hash = (37 * hash) + CONTAINERID_FIELD_NUMBER;
hash = (53 * hash) + getContainerID().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.ContainerStateTerminated prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ContainerStateTerminated is a terminated state of a container.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ContainerStateTerminated}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ContainerStateTerminated)
io.kubernetes.client.proto.V1.ContainerStateTerminatedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateTerminated_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateTerminated_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ContainerStateTerminated.class, io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.ContainerStateTerminated.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStartedAtFieldBuilder();
getFinishedAtFieldBuilder();
}
}
public Builder clear() {
super.clear();
exitCode_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
signal_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
reason_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
message_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
if (startedAtBuilder_ == null) {
startedAt_ = null;
} else {
startedAtBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (finishedAtBuilder_ == null) {
finishedAt_ = null;
} else {
finishedAtBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
containerID_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateTerminated_descriptor;
}
public io.kubernetes.client.proto.V1.ContainerStateTerminated getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ContainerStateTerminated.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ContainerStateTerminated build() {
io.kubernetes.client.proto.V1.ContainerStateTerminated result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.ContainerStateTerminated buildPartial() {
io.kubernetes.client.proto.V1.ContainerStateTerminated result = new io.kubernetes.client.proto.V1.ContainerStateTerminated(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.exitCode_ = exitCode_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.signal_ = signal_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.reason_ = reason_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.message_ = message_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (startedAtBuilder_ == null) {
result.startedAt_ = startedAt_;
} else {
result.startedAt_ = startedAtBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
if (finishedAtBuilder_ == null) {
result.finishedAt_ = finishedAt_;
} else {
result.finishedAt_ = finishedAtBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.containerID_ = containerID_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.ContainerStateTerminated) {
return mergeFrom((io.kubernetes.client.proto.V1.ContainerStateTerminated)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.ContainerStateTerminated other) {
if (other == io.kubernetes.client.proto.V1.ContainerStateTerminated.getDefaultInstance()) return this;
if (other.hasExitCode()) {
setExitCode(other.getExitCode());
}
if (other.hasSignal()) {
setSignal(other.getSignal());
}
if (other.hasReason()) {
bitField0_ |= 0x00000004;
reason_ = other.reason_;
onChanged();
}
if (other.hasMessage()) {
bitField0_ |= 0x00000008;
message_ = other.message_;
onChanged();
}
if (other.hasStartedAt()) {
mergeStartedAt(other.getStartedAt());
}
if (other.hasFinishedAt()) {
mergeFinishedAt(other.getFinishedAt());
}
if (other.hasContainerID()) {
bitField0_ |= 0x00000040;
containerID_ = other.containerID_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ContainerStateTerminated parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ContainerStateTerminated) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int exitCode_ ;
/**
*
* Exit status from the last termination of the container
*
*
* optional int32 exitCode = 1;
*/
public boolean hasExitCode() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Exit status from the last termination of the container
*
*
* optional int32 exitCode = 1;
*/
public int getExitCode() {
return exitCode_;
}
/**
*
* Exit status from the last termination of the container
*
*
* optional int32 exitCode = 1;
*/
public Builder setExitCode(int value) {
bitField0_ |= 0x00000001;
exitCode_ = value;
onChanged();
return this;
}
/**
*
* Exit status from the last termination of the container
*
*
* optional int32 exitCode = 1;
*/
public Builder clearExitCode() {
bitField0_ = (bitField0_ & ~0x00000001);
exitCode_ = 0;
onChanged();
return this;
}
private int signal_ ;
/**
*
* Signal from the last termination of the container
* +optional
*
*
* optional int32 signal = 2;
*/
public boolean hasSignal() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Signal from the last termination of the container
* +optional
*
*
* optional int32 signal = 2;
*/
public int getSignal() {
return signal_;
}
/**
*
* Signal from the last termination of the container
* +optional
*
*
* optional int32 signal = 2;
*/
public Builder setSignal(int value) {
bitField0_ |= 0x00000002;
signal_ = value;
onChanged();
return this;
}
/**
*
* Signal from the last termination of the container
* +optional
*
*
* optional int32 signal = 2;
*/
public Builder clearSignal() {
bitField0_ = (bitField0_ & ~0x00000002);
signal_ = 0;
onChanged();
return this;
}
private java.lang.Object reason_ = "";
/**
*
* (brief) reason from the last termination of the container
* +optional
*
*
* optional string reason = 3;
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* (brief) reason from the last termination of the container
* +optional
*
*
* optional string reason = 3;
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
reason_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* (brief) reason from the last termination of the container
* +optional
*
*
* optional string reason = 3;
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* (brief) reason from the last termination of the container
* +optional
*
*
* optional string reason = 3;
*/
public Builder setReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
reason_ = value;
onChanged();
return this;
}
/**
*
* (brief) reason from the last termination of the container
* +optional
*
*
* optional string reason = 3;
*/
public Builder clearReason() {
bitField0_ = (bitField0_ & ~0x00000004);
reason_ = getDefaultInstance().getReason();
onChanged();
return this;
}
/**
*
* (brief) reason from the last termination of the container
* +optional
*
*
* optional string reason = 3;
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
reason_ = value;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
*
* Message regarding the last termination of the container
* +optional
*
*
* optional string message = 4;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Message regarding the last termination of the container
* +optional
*
*
* optional string message = 4;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Message regarding the last termination of the container
* +optional
*
*
* optional string message = 4;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Message regarding the last termination of the container
* +optional
*
*
* optional string message = 4;
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
message_ = value;
onChanged();
return this;
}
/**
*
* Message regarding the last termination of the container
* +optional
*
*
* optional string message = 4;
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000008);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
*
* Message regarding the last termination of the container
* +optional
*
*
* optional string message = 4;
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
message_ = value;
onChanged();
return this;
}
private io.kubernetes.client.proto.Meta.Time startedAt_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> startedAtBuilder_;
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
public boolean hasStartedAt() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
public io.kubernetes.client.proto.Meta.Time getStartedAt() {
if (startedAtBuilder_ == null) {
return startedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_;
} else {
return startedAtBuilder_.getMessage();
}
}
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
public Builder setStartedAt(io.kubernetes.client.proto.Meta.Time value) {
if (startedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startedAt_ = value;
onChanged();
} else {
startedAtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
public Builder setStartedAt(
io.kubernetes.client.proto.Meta.Time.Builder builderForValue) {
if (startedAtBuilder_ == null) {
startedAt_ = builderForValue.build();
onChanged();
} else {
startedAtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
public Builder mergeStartedAt(io.kubernetes.client.proto.Meta.Time value) {
if (startedAtBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
startedAt_ != null &&
startedAt_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) {
startedAt_ =
io.kubernetes.client.proto.Meta.Time.newBuilder(startedAt_).mergeFrom(value).buildPartial();
} else {
startedAt_ = value;
}
onChanged();
} else {
startedAtBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
public Builder clearStartedAt() {
if (startedAtBuilder_ == null) {
startedAt_ = null;
onChanged();
} else {
startedAtBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
public io.kubernetes.client.proto.Meta.Time.Builder getStartedAtBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getStartedAtFieldBuilder().getBuilder();
}
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
public io.kubernetes.client.proto.Meta.TimeOrBuilder getStartedAtOrBuilder() {
if (startedAtBuilder_ != null) {
return startedAtBuilder_.getMessageOrBuilder();
} else {
return startedAt_ == null ?
io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_;
}
}
/**
*
* Time at which previous execution of the container started
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>
getStartedAtFieldBuilder() {
if (startedAtBuilder_ == null) {
startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>(
getStartedAt(),
getParentForChildren(),
isClean());
startedAt_ = null;
}
return startedAtBuilder_;
}
private io.kubernetes.client.proto.Meta.Time finishedAt_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> finishedAtBuilder_;
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
public boolean hasFinishedAt() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
public io.kubernetes.client.proto.Meta.Time getFinishedAt() {
if (finishedAtBuilder_ == null) {
return finishedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : finishedAt_;
} else {
return finishedAtBuilder_.getMessage();
}
}
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
public Builder setFinishedAt(io.kubernetes.client.proto.Meta.Time value) {
if (finishedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
finishedAt_ = value;
onChanged();
} else {
finishedAtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
public Builder setFinishedAt(
io.kubernetes.client.proto.Meta.Time.Builder builderForValue) {
if (finishedAtBuilder_ == null) {
finishedAt_ = builderForValue.build();
onChanged();
} else {
finishedAtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
public Builder mergeFinishedAt(io.kubernetes.client.proto.Meta.Time value) {
if (finishedAtBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
finishedAt_ != null &&
finishedAt_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) {
finishedAt_ =
io.kubernetes.client.proto.Meta.Time.newBuilder(finishedAt_).mergeFrom(value).buildPartial();
} else {
finishedAt_ = value;
}
onChanged();
} else {
finishedAtBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
public Builder clearFinishedAt() {
if (finishedAtBuilder_ == null) {
finishedAt_ = null;
onChanged();
} else {
finishedAtBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
public io.kubernetes.client.proto.Meta.Time.Builder getFinishedAtBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getFinishedAtFieldBuilder().getBuilder();
}
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
public io.kubernetes.client.proto.Meta.TimeOrBuilder getFinishedAtOrBuilder() {
if (finishedAtBuilder_ != null) {
return finishedAtBuilder_.getMessageOrBuilder();
} else {
return finishedAt_ == null ?
io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : finishedAt_;
}
}
/**
*
* Time at which the container last terminated
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>
getFinishedAtFieldBuilder() {
if (finishedAtBuilder_ == null) {
finishedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>(
getFinishedAt(),
getParentForChildren(),
isClean());
finishedAt_ = null;
}
return finishedAtBuilder_;
}
private java.lang.Object containerID_ = "";
/**
*
* Container's ID in the format 'docker://<container_id>'
* +optional
*
*
* optional string containerID = 7;
*/
public boolean hasContainerID() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
* Container's ID in the format 'docker://<container_id>'
* +optional
*
*
* optional string containerID = 7;
*/
public java.lang.String getContainerID() {
java.lang.Object ref = containerID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
containerID_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Container's ID in the format 'docker://<container_id>'
* +optional
*
*
* optional string containerID = 7;
*/
public com.google.protobuf.ByteString
getContainerIDBytes() {
java.lang.Object ref = containerID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
containerID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Container's ID in the format 'docker://<container_id>'
* +optional
*
*
* optional string containerID = 7;
*/
public Builder setContainerID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
containerID_ = value;
onChanged();
return this;
}
/**
*
* Container's ID in the format 'docker://<container_id>'
* +optional
*
*
* optional string containerID = 7;
*/
public Builder clearContainerID() {
bitField0_ = (bitField0_ & ~0x00000040);
containerID_ = getDefaultInstance().getContainerID();
onChanged();
return this;
}
/**
*
* Container's ID in the format 'docker://<container_id>'
* +optional
*
*
* optional string containerID = 7;
*/
public Builder setContainerIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
containerID_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ContainerStateTerminated)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ContainerStateTerminated)
private static final io.kubernetes.client.proto.V1.ContainerStateTerminated DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ContainerStateTerminated();
}
public static io.kubernetes.client.proto.V1.ContainerStateTerminated getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ContainerStateTerminated parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContainerStateTerminated(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ContainerStateTerminated getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerStateWaitingOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ContainerStateWaiting)
com.google.protobuf.MessageOrBuilder {
/**
*
* (brief) reason the container is not yet running.
* +optional
*
*
* optional string reason = 1;
*/
boolean hasReason();
/**
*
* (brief) reason the container is not yet running.
* +optional
*
*
* optional string reason = 1;
*/
java.lang.String getReason();
/**
*
* (brief) reason the container is not yet running.
* +optional
*
*
* optional string reason = 1;
*/
com.google.protobuf.ByteString
getReasonBytes();
/**
*
* Message regarding why the container is not yet running.
* +optional
*
*
* optional string message = 2;
*/
boolean hasMessage();
/**
*
* Message regarding why the container is not yet running.
* +optional
*
*
* optional string message = 2;
*/
java.lang.String getMessage();
/**
*
* Message regarding why the container is not yet running.
* +optional
*
*
* optional string message = 2;
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
*
* ContainerStateWaiting is a waiting state of a container.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ContainerStateWaiting}
*/
public static final class ContainerStateWaiting extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ContainerStateWaiting)
ContainerStateWaitingOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerStateWaiting.newBuilder() to construct.
private ContainerStateWaiting(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContainerStateWaiting() {
reason_ = "";
message_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContainerStateWaiting(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
reason_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
message_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateWaiting_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateWaiting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ContainerStateWaiting.class, io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder.class);
}
private int bitField0_;
public static final int REASON_FIELD_NUMBER = 1;
private volatile java.lang.Object reason_;
/**
*
* (brief) reason the container is not yet running.
* +optional
*
*
* optional string reason = 1;
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* (brief) reason the container is not yet running.
* +optional
*
*
* optional string reason = 1;
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
reason_ = s;
}
return s;
}
}
/**
*
* (brief) reason the container is not yet running.
* +optional
*
*
* optional string reason = 1;
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object message_;
/**
*
* Message regarding why the container is not yet running.
* +optional
*
*
* optional string message = 2;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Message regarding why the container is not yet running.
* +optional
*
*
* optional string message = 2;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
}
}
/**
*
* Message regarding why the container is not yet running.
* +optional
*
*
* optional string message = 2;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reason_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.ContainerStateWaiting)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.ContainerStateWaiting other = (io.kubernetes.client.proto.V1.ContainerStateWaiting) obj;
boolean result = true;
result = result && (hasReason() == other.hasReason());
if (hasReason()) {
result = result && getReason()
.equals(other.getReason());
}
result = result && (hasMessage() == other.hasMessage());
if (hasMessage()) {
result = result && getMessage()
.equals(other.getMessage());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasReason()) {
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReason().hashCode();
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.ContainerStateWaiting prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ContainerStateWaiting is a waiting state of a container.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ContainerStateWaiting}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ContainerStateWaiting)
io.kubernetes.client.proto.V1.ContainerStateWaitingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateWaiting_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateWaiting_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ContainerStateWaiting.class, io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.ContainerStateWaiting.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
reason_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
message_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStateWaiting_descriptor;
}
public io.kubernetes.client.proto.V1.ContainerStateWaiting getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ContainerStateWaiting.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ContainerStateWaiting build() {
io.kubernetes.client.proto.V1.ContainerStateWaiting result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.ContainerStateWaiting buildPartial() {
io.kubernetes.client.proto.V1.ContainerStateWaiting result = new io.kubernetes.client.proto.V1.ContainerStateWaiting(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.reason_ = reason_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.message_ = message_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.ContainerStateWaiting) {
return mergeFrom((io.kubernetes.client.proto.V1.ContainerStateWaiting)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.ContainerStateWaiting other) {
if (other == io.kubernetes.client.proto.V1.ContainerStateWaiting.getDefaultInstance()) return this;
if (other.hasReason()) {
bitField0_ |= 0x00000001;
reason_ = other.reason_;
onChanged();
}
if (other.hasMessage()) {
bitField0_ |= 0x00000002;
message_ = other.message_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ContainerStateWaiting parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ContainerStateWaiting) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object reason_ = "";
/**
*
* (brief) reason the container is not yet running.
* +optional
*
*
* optional string reason = 1;
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* (brief) reason the container is not yet running.
* +optional
*
*
* optional string reason = 1;
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
reason_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* (brief) reason the container is not yet running.
* +optional
*
*
* optional string reason = 1;
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* (brief) reason the container is not yet running.
* +optional
*
*
* optional string reason = 1;
*/
public Builder setReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
reason_ = value;
onChanged();
return this;
}
/**
*
* (brief) reason the container is not yet running.
* +optional
*
*
* optional string reason = 1;
*/
public Builder clearReason() {
bitField0_ = (bitField0_ & ~0x00000001);
reason_ = getDefaultInstance().getReason();
onChanged();
return this;
}
/**
*
* (brief) reason the container is not yet running.
* +optional
*
*
* optional string reason = 1;
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
reason_ = value;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
*
* Message regarding why the container is not yet running.
* +optional
*
*
* optional string message = 2;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Message regarding why the container is not yet running.
* +optional
*
*
* optional string message = 2;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Message regarding why the container is not yet running.
* +optional
*
*
* optional string message = 2;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Message regarding why the container is not yet running.
* +optional
*
*
* optional string message = 2;
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
message_ = value;
onChanged();
return this;
}
/**
*
* Message regarding why the container is not yet running.
* +optional
*
*
* optional string message = 2;
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000002);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
*
* Message regarding why the container is not yet running.
* +optional
*
*
* optional string message = 2;
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
message_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ContainerStateWaiting)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ContainerStateWaiting)
private static final io.kubernetes.client.proto.V1.ContainerStateWaiting DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ContainerStateWaiting();
}
public static io.kubernetes.client.proto.V1.ContainerStateWaiting getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ContainerStateWaiting parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContainerStateWaiting(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ContainerStateWaiting getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ContainerStatus)
com.google.protobuf.MessageOrBuilder {
/**
*
* This must be a DNS_LABEL. Each container in a pod must have a unique name.
* Cannot be updated.
*
*
* optional string name = 1;
*/
boolean hasName();
/**
*
* This must be a DNS_LABEL. Each container in a pod must have a unique name.
* Cannot be updated.
*
*
* optional string name = 1;
*/
java.lang.String getName();
/**
*
* This must be a DNS_LABEL. Each container in a pod must have a unique name.
* Cannot be updated.
*
*
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
boolean hasState();
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
io.kubernetes.client.proto.V1.ContainerState getState();
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
io.kubernetes.client.proto.V1.ContainerStateOrBuilder getStateOrBuilder();
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
boolean hasLastState();
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
io.kubernetes.client.proto.V1.ContainerState getLastState();
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
io.kubernetes.client.proto.V1.ContainerStateOrBuilder getLastStateOrBuilder();
/**
*
* Specifies whether the container has passed its readiness probe.
*
*
* optional bool ready = 4;
*/
boolean hasReady();
/**
*
* Specifies whether the container has passed its readiness probe.
*
*
* optional bool ready = 4;
*/
boolean getReady();
/**
*
* The number of times the container has been restarted, currently based on
* the number of dead containers that have not yet been removed.
* Note that this is calculated from dead containers. But those containers are subject to
* garbage collection. This value will get capped at 5 by GC.
*
*
* optional int32 restartCount = 5;
*/
boolean hasRestartCount();
/**
*
* The number of times the container has been restarted, currently based on
* the number of dead containers that have not yet been removed.
* Note that this is calculated from dead containers. But those containers are subject to
* garbage collection. This value will get capped at 5 by GC.
*
*
* optional int32 restartCount = 5;
*/
int getRestartCount();
/**
*
* The image the container is running.
* More info: https://kubernetes.io/docs/concepts/containers/images
* TODO(dchen1107): Which image the container is running with?
*
*
* optional string image = 6;
*/
boolean hasImage();
/**
*
* The image the container is running.
* More info: https://kubernetes.io/docs/concepts/containers/images
* TODO(dchen1107): Which image the container is running with?
*
*
* optional string image = 6;
*/
java.lang.String getImage();
/**
*
* The image the container is running.
* More info: https://kubernetes.io/docs/concepts/containers/images
* TODO(dchen1107): Which image the container is running with?
*
*
* optional string image = 6;
*/
com.google.protobuf.ByteString
getImageBytes();
/**
*
* ImageID of the container's image.
*
*
* optional string imageID = 7;
*/
boolean hasImageID();
/**
*
* ImageID of the container's image.
*
*
* optional string imageID = 7;
*/
java.lang.String getImageID();
/**
*
* ImageID of the container's image.
*
*
* optional string imageID = 7;
*/
com.google.protobuf.ByteString
getImageIDBytes();
/**
*
* Container's ID in the format 'docker://<container_id>'.
* +optional
*
*
* optional string containerID = 8;
*/
boolean hasContainerID();
/**
*
* Container's ID in the format 'docker://<container_id>'.
* +optional
*
*
* optional string containerID = 8;
*/
java.lang.String getContainerID();
/**
*
* Container's ID in the format 'docker://<container_id>'.
* +optional
*
*
* optional string containerID = 8;
*/
com.google.protobuf.ByteString
getContainerIDBytes();
}
/**
*
* ContainerStatus contains details for the current status of this container.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ContainerStatus}
*/
public static final class ContainerStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ContainerStatus)
ContainerStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerStatus.newBuilder() to construct.
private ContainerStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContainerStatus() {
name_ = "";
ready_ = false;
restartCount_ = 0;
image_ = "";
imageID_ = "";
containerID_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContainerStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 18: {
io.kubernetes.client.proto.V1.ContainerState.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = state_.toBuilder();
}
state_ = input.readMessage(io.kubernetes.client.proto.V1.ContainerState.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(state_);
state_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
io.kubernetes.client.proto.V1.ContainerState.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = lastState_.toBuilder();
}
lastState_ = input.readMessage(io.kubernetes.client.proto.V1.ContainerState.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastState_);
lastState_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 32: {
bitField0_ |= 0x00000008;
ready_ = input.readBool();
break;
}
case 40: {
bitField0_ |= 0x00000010;
restartCount_ = input.readInt32();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
image_ = bs;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
imageID_ = bs;
break;
}
case 66: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
containerID_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStatus_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ContainerStatus.class, io.kubernetes.client.proto.V1.ContainerStatus.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* This must be a DNS_LABEL. Each container in a pod must have a unique name.
* Cannot be updated.
*
*
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* This must be a DNS_LABEL. Each container in a pod must have a unique name.
* Cannot be updated.
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* This must be a DNS_LABEL. Each container in a pod must have a unique name.
* Cannot be updated.
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATE_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1.ContainerState state_;
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
public boolean hasState() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
public io.kubernetes.client.proto.V1.ContainerState getState() {
return state_ == null ? io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : state_;
}
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
public io.kubernetes.client.proto.V1.ContainerStateOrBuilder getStateOrBuilder() {
return state_ == null ? io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : state_;
}
public static final int LASTSTATE_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1.ContainerState lastState_;
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
public boolean hasLastState() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
public io.kubernetes.client.proto.V1.ContainerState getLastState() {
return lastState_ == null ? io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : lastState_;
}
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
public io.kubernetes.client.proto.V1.ContainerStateOrBuilder getLastStateOrBuilder() {
return lastState_ == null ? io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : lastState_;
}
public static final int READY_FIELD_NUMBER = 4;
private boolean ready_;
/**
*
* Specifies whether the container has passed its readiness probe.
*
*
* optional bool ready = 4;
*/
public boolean hasReady() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Specifies whether the container has passed its readiness probe.
*
*
* optional bool ready = 4;
*/
public boolean getReady() {
return ready_;
}
public static final int RESTARTCOUNT_FIELD_NUMBER = 5;
private int restartCount_;
/**
*
* The number of times the container has been restarted, currently based on
* the number of dead containers that have not yet been removed.
* Note that this is calculated from dead containers. But those containers are subject to
* garbage collection. This value will get capped at 5 by GC.
*
*
* optional int32 restartCount = 5;
*/
public boolean hasRestartCount() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* The number of times the container has been restarted, currently based on
* the number of dead containers that have not yet been removed.
* Note that this is calculated from dead containers. But those containers are subject to
* garbage collection. This value will get capped at 5 by GC.
*
*
* optional int32 restartCount = 5;
*/
public int getRestartCount() {
return restartCount_;
}
public static final int IMAGE_FIELD_NUMBER = 6;
private volatile java.lang.Object image_;
/**
*
* The image the container is running.
* More info: https://kubernetes.io/docs/concepts/containers/images
* TODO(dchen1107): Which image the container is running with?
*
*
* optional string image = 6;
*/
public boolean hasImage() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
* The image the container is running.
* More info: https://kubernetes.io/docs/concepts/containers/images
* TODO(dchen1107): Which image the container is running with?
*
*
* optional string image = 6;
*/
public java.lang.String getImage() {
java.lang.Object ref = image_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
image_ = s;
}
return s;
}
}
/**
*
* The image the container is running.
* More info: https://kubernetes.io/docs/concepts/containers/images
* TODO(dchen1107): Which image the container is running with?
*
*
* optional string image = 6;
*/
public com.google.protobuf.ByteString
getImageBytes() {
java.lang.Object ref = image_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
image_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IMAGEID_FIELD_NUMBER = 7;
private volatile java.lang.Object imageID_;
/**
*
* ImageID of the container's image.
*
*
* optional string imageID = 7;
*/
public boolean hasImageID() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
* ImageID of the container's image.
*
*
* optional string imageID = 7;
*/
public java.lang.String getImageID() {
java.lang.Object ref = imageID_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
imageID_ = s;
}
return s;
}
}
/**
*
* ImageID of the container's image.
*
*
* optional string imageID = 7;
*/
public com.google.protobuf.ByteString
getImageIDBytes() {
java.lang.Object ref = imageID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imageID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTAINERID_FIELD_NUMBER = 8;
private volatile java.lang.Object containerID_;
/**
*
* Container's ID in the format 'docker://<container_id>'.
* +optional
*
*
* optional string containerID = 8;
*/
public boolean hasContainerID() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
*
* Container's ID in the format 'docker://<container_id>'.
* +optional
*
*
* optional string containerID = 8;
*/
public java.lang.String getContainerID() {
java.lang.Object ref = containerID_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
containerID_ = s;
}
return s;
}
}
/**
*
* Container's ID in the format 'docker://<container_id>'.
* +optional
*
*
* optional string containerID = 8;
*/
public com.google.protobuf.ByteString
getContainerIDBytes() {
java.lang.Object ref = containerID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
containerID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getState());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getLastState());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, ready_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, restartCount_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, image_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, imageID_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, containerID_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getState());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLastState());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, ready_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, restartCount_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, image_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, imageID_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, containerID_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.ContainerStatus)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.ContainerStatus other = (io.kubernetes.client.proto.V1.ContainerStatus) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasState() == other.hasState());
if (hasState()) {
result = result && getState()
.equals(other.getState());
}
result = result && (hasLastState() == other.hasLastState());
if (hasLastState()) {
result = result && getLastState()
.equals(other.getLastState());
}
result = result && (hasReady() == other.hasReady());
if (hasReady()) {
result = result && (getReady()
== other.getReady());
}
result = result && (hasRestartCount() == other.hasRestartCount());
if (hasRestartCount()) {
result = result && (getRestartCount()
== other.getRestartCount());
}
result = result && (hasImage() == other.hasImage());
if (hasImage()) {
result = result && getImage()
.equals(other.getImage());
}
result = result && (hasImageID() == other.hasImageID());
if (hasImageID()) {
result = result && getImageID()
.equals(other.getImageID());
}
result = result && (hasContainerID() == other.hasContainerID());
if (hasContainerID()) {
result = result && getContainerID()
.equals(other.getContainerID());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasState()) {
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + getState().hashCode();
}
if (hasLastState()) {
hash = (37 * hash) + LASTSTATE_FIELD_NUMBER;
hash = (53 * hash) + getLastState().hashCode();
}
if (hasReady()) {
hash = (37 * hash) + READY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReady());
}
if (hasRestartCount()) {
hash = (37 * hash) + RESTARTCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getRestartCount();
}
if (hasImage()) {
hash = (37 * hash) + IMAGE_FIELD_NUMBER;
hash = (53 * hash) + getImage().hashCode();
}
if (hasImageID()) {
hash = (37 * hash) + IMAGEID_FIELD_NUMBER;
hash = (53 * hash) + getImageID().hashCode();
}
if (hasContainerID()) {
hash = (37 * hash) + CONTAINERID_FIELD_NUMBER;
hash = (53 * hash) + getContainerID().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.ContainerStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.ContainerStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerStatus parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerStatus parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.ContainerStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.ContainerStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.ContainerStatus prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ContainerStatus contains details for the current status of this container.
*
*
* Protobuf type {@code k8s.io.api.core.v1.ContainerStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ContainerStatus)
io.kubernetes.client.proto.V1.ContainerStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStatus_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.ContainerStatus.class, io.kubernetes.client.proto.V1.ContainerStatus.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.ContainerStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStateFieldBuilder();
getLastStateFieldBuilder();
}
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (stateBuilder_ == null) {
state_ = null;
} else {
stateBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (lastStateBuilder_ == null) {
lastState_ = null;
} else {
lastStateBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
ready_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
restartCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
image_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
imageID_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
containerID_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ContainerStatus_descriptor;
}
public io.kubernetes.client.proto.V1.ContainerStatus getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.ContainerStatus.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.ContainerStatus build() {
io.kubernetes.client.proto.V1.ContainerStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.ContainerStatus buildPartial() {
io.kubernetes.client.proto.V1.ContainerStatus result = new io.kubernetes.client.proto.V1.ContainerStatus(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (stateBuilder_ == null) {
result.state_ = state_;
} else {
result.state_ = stateBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (lastStateBuilder_ == null) {
result.lastState_ = lastState_;
} else {
result.lastState_ = lastStateBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.ready_ = ready_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.restartCount_ = restartCount_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.image_ = image_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.imageID_ = imageID_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.containerID_ = containerID_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.ContainerStatus) {
return mergeFrom((io.kubernetes.client.proto.V1.ContainerStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.ContainerStatus other) {
if (other == io.kubernetes.client.proto.V1.ContainerStatus.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasState()) {
mergeState(other.getState());
}
if (other.hasLastState()) {
mergeLastState(other.getLastState());
}
if (other.hasReady()) {
setReady(other.getReady());
}
if (other.hasRestartCount()) {
setRestartCount(other.getRestartCount());
}
if (other.hasImage()) {
bitField0_ |= 0x00000020;
image_ = other.image_;
onChanged();
}
if (other.hasImageID()) {
bitField0_ |= 0x00000040;
imageID_ = other.imageID_;
onChanged();
}
if (other.hasContainerID()) {
bitField0_ |= 0x00000080;
containerID_ = other.containerID_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.ContainerStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.ContainerStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* This must be a DNS_LABEL. Each container in a pod must have a unique name.
* Cannot be updated.
*
*
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* This must be a DNS_LABEL. Each container in a pod must have a unique name.
* Cannot be updated.
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This must be a DNS_LABEL. Each container in a pod must have a unique name.
* Cannot be updated.
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This must be a DNS_LABEL. Each container in a pod must have a unique name.
* Cannot be updated.
*
*
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
*
* This must be a DNS_LABEL. Each container in a pod must have a unique name.
* Cannot be updated.
*
*
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* This must be a DNS_LABEL. Each container in a pod must have a unique name.
* Cannot be updated.
*
*
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private io.kubernetes.client.proto.V1.ContainerState state_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerState, io.kubernetes.client.proto.V1.ContainerState.Builder, io.kubernetes.client.proto.V1.ContainerStateOrBuilder> stateBuilder_;
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
public boolean hasState() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
public io.kubernetes.client.proto.V1.ContainerState getState() {
if (stateBuilder_ == null) {
return state_ == null ? io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : state_;
} else {
return stateBuilder_.getMessage();
}
}
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
public Builder setState(io.kubernetes.client.proto.V1.ContainerState value) {
if (stateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
state_ = value;
onChanged();
} else {
stateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
public Builder setState(
io.kubernetes.client.proto.V1.ContainerState.Builder builderForValue) {
if (stateBuilder_ == null) {
state_ = builderForValue.build();
onChanged();
} else {
stateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
public Builder mergeState(io.kubernetes.client.proto.V1.ContainerState value) {
if (stateBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
state_ != null &&
state_ != io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance()) {
state_ =
io.kubernetes.client.proto.V1.ContainerState.newBuilder(state_).mergeFrom(value).buildPartial();
} else {
state_ = value;
}
onChanged();
} else {
stateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
public Builder clearState() {
if (stateBuilder_ == null) {
state_ = null;
onChanged();
} else {
stateBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
public io.kubernetes.client.proto.V1.ContainerState.Builder getStateBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getStateFieldBuilder().getBuilder();
}
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
public io.kubernetes.client.proto.V1.ContainerStateOrBuilder getStateOrBuilder() {
if (stateBuilder_ != null) {
return stateBuilder_.getMessageOrBuilder();
} else {
return state_ == null ?
io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : state_;
}
}
/**
*
* Details about the container's current condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState state = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerState, io.kubernetes.client.proto.V1.ContainerState.Builder, io.kubernetes.client.proto.V1.ContainerStateOrBuilder>
getStateFieldBuilder() {
if (stateBuilder_ == null) {
stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerState, io.kubernetes.client.proto.V1.ContainerState.Builder, io.kubernetes.client.proto.V1.ContainerStateOrBuilder>(
getState(),
getParentForChildren(),
isClean());
state_ = null;
}
return stateBuilder_;
}
private io.kubernetes.client.proto.V1.ContainerState lastState_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerState, io.kubernetes.client.proto.V1.ContainerState.Builder, io.kubernetes.client.proto.V1.ContainerStateOrBuilder> lastStateBuilder_;
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
public boolean hasLastState() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
public io.kubernetes.client.proto.V1.ContainerState getLastState() {
if (lastStateBuilder_ == null) {
return lastState_ == null ? io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : lastState_;
} else {
return lastStateBuilder_.getMessage();
}
}
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
public Builder setLastState(io.kubernetes.client.proto.V1.ContainerState value) {
if (lastStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastState_ = value;
onChanged();
} else {
lastStateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
public Builder setLastState(
io.kubernetes.client.proto.V1.ContainerState.Builder builderForValue) {
if (lastStateBuilder_ == null) {
lastState_ = builderForValue.build();
onChanged();
} else {
lastStateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
public Builder mergeLastState(io.kubernetes.client.proto.V1.ContainerState value) {
if (lastStateBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
lastState_ != null &&
lastState_ != io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance()) {
lastState_ =
io.kubernetes.client.proto.V1.ContainerState.newBuilder(lastState_).mergeFrom(value).buildPartial();
} else {
lastState_ = value;
}
onChanged();
} else {
lastStateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
public Builder clearLastState() {
if (lastStateBuilder_ == null) {
lastState_ = null;
onChanged();
} else {
lastStateBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
public io.kubernetes.client.proto.V1.ContainerState.Builder getLastStateBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getLastStateFieldBuilder().getBuilder();
}
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
public io.kubernetes.client.proto.V1.ContainerStateOrBuilder getLastStateOrBuilder() {
if (lastStateBuilder_ != null) {
return lastStateBuilder_.getMessageOrBuilder();
} else {
return lastState_ == null ?
io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : lastState_;
}
}
/**
*
* Details about the container's last termination condition.
* +optional
*
*
* optional .k8s.io.api.core.v1.ContainerState lastState = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerState, io.kubernetes.client.proto.V1.ContainerState.Builder, io.kubernetes.client.proto.V1.ContainerStateOrBuilder>
getLastStateFieldBuilder() {
if (lastStateBuilder_ == null) {
lastStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.ContainerState, io.kubernetes.client.proto.V1.ContainerState.Builder, io.kubernetes.client.proto.V1.ContainerStateOrBuilder>(
getLastState(),
getParentForChildren(),
isClean());
lastState_ = null;
}
return lastStateBuilder_;
}
private boolean ready_ ;
/**
*
* Specifies whether the container has passed its readiness probe.
*
*
* optional bool ready = 4;
*/
public boolean hasReady() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Specifies whether the container has passed its readiness probe.
*
*
* optional bool ready = 4;
*/
public boolean getReady() {
return ready_;
}
/**
*
* Specifies whether the container has passed its readiness probe.
*
*
* optional bool ready = 4;
*/
public Builder setReady(boolean value) {
bitField0_ |= 0x00000008;
ready_ = value;
onChanged();
return this;
}
/**
*
* Specifies whether the container has passed its readiness probe.
*
*
* optional bool ready = 4;
*/
public Builder clearReady() {
bitField0_ = (bitField0_ & ~0x00000008);
ready_ = false;
onChanged();
return this;
}
private int restartCount_ ;
/**
*
* The number of times the container has been restarted, currently based on
* the number of dead containers that have not yet been removed.
* Note that this is calculated from dead containers. But those containers are subject to
* garbage collection. This value will get capped at 5 by GC.
*
*
* optional int32 restartCount = 5;
*/
public boolean hasRestartCount() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* The number of times the container has been restarted, currently based on
* the number of dead containers that have not yet been removed.
* Note that this is calculated from dead containers. But those containers are subject to
* garbage collection. This value will get capped at 5 by GC.
*
*
* optional int32 restartCount = 5;
*/
public int getRestartCount() {
return restartCount_;
}
/**
*
* The number of times the container has been restarted, currently based on
* the number of dead containers that have not yet been removed.
* Note that this is calculated from dead containers. But those containers are subject to
* garbage collection. This value will get capped at 5 by GC.
*
*
* optional int32 restartCount = 5;
*/
public Builder setRestartCount(int value) {
bitField0_ |= 0x00000010;
restartCount_ = value;
onChanged();
return this;
}
/**
*
* The number of times the container has been restarted, currently based on
* the number of dead containers that have not yet been removed.
* Note that this is calculated from dead containers. But those containers are subject to
* garbage collection. This value will get capped at 5 by GC.
*
*
* optional int32 restartCount = 5;
*/
public Builder clearRestartCount() {
bitField0_ = (bitField0_ & ~0x00000010);
restartCount_ = 0;
onChanged();
return this;
}
private java.lang.Object image_ = "";
/**
*
* The image the container is running.
* More info: https://kubernetes.io/docs/concepts/containers/images
* TODO(dchen1107): Which image the container is running with?
*
*
* optional string image = 6;
*/
public boolean hasImage() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
* The image the container is running.
* More info: https://kubernetes.io/docs/concepts/containers/images
* TODO(dchen1107): Which image the container is running with?
*
*
* optional string image = 6;
*/
public java.lang.String getImage() {
java.lang.Object ref = image_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
image_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The image the container is running.
* More info: https://kubernetes.io/docs/concepts/containers/images
* TODO(dchen1107): Which image the container is running with?
*
*
* optional string image = 6;
*/
public com.google.protobuf.ByteString
getImageBytes() {
java.lang.Object ref = image_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
image_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The image the container is running.
* More info: https://kubernetes.io/docs/concepts/containers/images
* TODO(dchen1107): Which image the container is running with?
*
*
* optional string image = 6;
*/
public Builder setImage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
image_ = value;
onChanged();
return this;
}
/**
*
* The image the container is running.
* More info: https://kubernetes.io/docs/concepts/containers/images
* TODO(dchen1107): Which image the container is running with?
*
*
* optional string image = 6;
*/
public Builder clearImage() {
bitField0_ = (bitField0_ & ~0x00000020);
image_ = getDefaultInstance().getImage();
onChanged();
return this;
}
/**
*
* The image the container is running.
* More info: https://kubernetes.io/docs/concepts/containers/images
* TODO(dchen1107): Which image the container is running with?
*
*
* optional string image = 6;
*/
public Builder setImageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
image_ = value;
onChanged();
return this;
}
private java.lang.Object imageID_ = "";
/**
*
* ImageID of the container's image.
*
*
* optional string imageID = 7;
*/
public boolean hasImageID() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
* ImageID of the container's image.
*
*
* optional string imageID = 7;
*/
public java.lang.String getImageID() {
java.lang.Object ref = imageID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
imageID_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ImageID of the container's image.
*
*
* optional string imageID = 7;
*/
public com.google.protobuf.ByteString
getImageIDBytes() {
java.lang.Object ref = imageID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
imageID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ImageID of the container's image.
*
*
* optional string imageID = 7;
*/
public Builder setImageID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
imageID_ = value;
onChanged();
return this;
}
/**
*
* ImageID of the container's image.
*
*
* optional string imageID = 7;
*/
public Builder clearImageID() {
bitField0_ = (bitField0_ & ~0x00000040);
imageID_ = getDefaultInstance().getImageID();
onChanged();
return this;
}
/**
*
* ImageID of the container's image.
*
*
* optional string imageID = 7;
*/
public Builder setImageIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
imageID_ = value;
onChanged();
return this;
}
private java.lang.Object containerID_ = "";
/**
*
* Container's ID in the format 'docker://<container_id>'.
* +optional
*
*
* optional string containerID = 8;
*/
public boolean hasContainerID() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
*
* Container's ID in the format 'docker://<container_id>'.
* +optional
*
*
* optional string containerID = 8;
*/
public java.lang.String getContainerID() {
java.lang.Object ref = containerID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
containerID_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Container's ID in the format 'docker://<container_id>'.
* +optional
*
*
* optional string containerID = 8;
*/
public com.google.protobuf.ByteString
getContainerIDBytes() {
java.lang.Object ref = containerID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
containerID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Container's ID in the format 'docker://<container_id>'.
* +optional
*
*
* optional string containerID = 8;
*/
public Builder setContainerID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
containerID_ = value;
onChanged();
return this;
}
/**
*
* Container's ID in the format 'docker://<container_id>'.
* +optional
*
*
* optional string containerID = 8;
*/
public Builder clearContainerID() {
bitField0_ = (bitField0_ & ~0x00000080);
containerID_ = getDefaultInstance().getContainerID();
onChanged();
return this;
}
/**
*
* Container's ID in the format 'docker://<container_id>'.
* +optional
*
*
* optional string containerID = 8;
*/
public Builder setContainerIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
containerID_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ContainerStatus)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ContainerStatus)
private static final io.kubernetes.client.proto.V1.ContainerStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ContainerStatus();
}
public static io.kubernetes.client.proto.V1.ContainerStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ContainerStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContainerStatus(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.V1.ContainerStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DaemonEndpointOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.DaemonEndpoint)
com.google.protobuf.MessageOrBuilder {
/**
*
* Port number of the given endpoint.
*
*
* optional int32 Port = 1;
*/
boolean hasPort();
/**
*
* Port number of the given endpoint.
*
*
* optional int32 Port = 1;
*/
int getPort();
}
/**
*
* DaemonEndpoint contains information about a single Daemon endpoint.
*
*
* Protobuf type {@code k8s.io.api.core.v1.DaemonEndpoint}
*/
public static final class DaemonEndpoint extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.DaemonEndpoint)
DaemonEndpointOrBuilder {
private static final long serialVersionUID = 0L;
// Use DaemonEndpoint.newBuilder() to construct.
private DaemonEndpoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DaemonEndpoint() {
port_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DaemonEndpoint(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
port_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_DaemonEndpoint_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_DaemonEndpoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.DaemonEndpoint.class, io.kubernetes.client.proto.V1.DaemonEndpoint.Builder.class);
}
private int bitField0_;
public static final int PORT_FIELD_NUMBER = 1;
private int port_;
/**
*
* Port number of the given endpoint.
*
*
* optional int32 Port = 1;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Port number of the given endpoint.
*
*
* optional int32 Port = 1;
*/
public int getPort() {
return port_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, port_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, port_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1.DaemonEndpoint)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1.DaemonEndpoint other = (io.kubernetes.client.proto.V1.DaemonEndpoint) obj;
boolean result = true;
result = result && (hasPort() == other.hasPort());
if (hasPort()) {
result = result && (getPort()
== other.getPort());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPort()) {
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1.DaemonEndpoint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.DaemonEndpoint parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.DaemonEndpoint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.DaemonEndpoint parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.DaemonEndpoint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1.DaemonEndpoint parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.DaemonEndpoint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.DaemonEndpoint parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.DaemonEndpoint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.DaemonEndpoint parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1.DaemonEndpoint parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1.DaemonEndpoint parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1.DaemonEndpoint prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* DaemonEndpoint contains information about a single Daemon endpoint.
*
*
* Protobuf type {@code k8s.io.api.core.v1.DaemonEndpoint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.DaemonEndpoint)
io.kubernetes.client.proto.V1.DaemonEndpointOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_DaemonEndpoint_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_DaemonEndpoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1.DaemonEndpoint.class, io.kubernetes.client.proto.V1.DaemonEndpoint.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1.DaemonEndpoint.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
port_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_DaemonEndpoint_descriptor;
}
public io.kubernetes.client.proto.V1.DaemonEndpoint getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1.DaemonEndpoint.getDefaultInstance();
}
public io.kubernetes.client.proto.V1.DaemonEndpoint build() {
io.kubernetes.client.proto.V1.DaemonEndpoint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.V1.DaemonEndpoint buildPartial() {
io.kubernetes.client.proto.V1.DaemonEndpoint result = new io.kubernetes.client.proto.V1.DaemonEndpoint(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.port_ = port_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1.DaemonEndpoint) {
return mergeFrom((io.kubernetes.client.proto.V1.DaemonEndpoint)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1.DaemonEndpoint other) {
if (other == io.kubernetes.client.proto.V1.DaemonEndpoint.getDefaultInstance()) return this;
if (other.hasPort()) {
setPort(other.getPort());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1.DaemonEndpoint parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1.DaemonEndpoint) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int port_ ;
/**
*
* Port number of the given endpoint.
*
*
* optional int32 Port = 1;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Port number of the given endpoint.
*
*
* optional int32 Port = 1;
*/
public int getPort() {
return port_;
}
/**
*
* Port number of the given endpoint.
*
*
* optional int32 Port = 1;
*/
public Builder setPort(int value) {
bitField0_ |= 0x00000001;
port_ = value;
onChanged();
return this;
}
/**
*
* Port number of the given endpoint.
*
*
* optional int32 Port = 1;
*/
public Builder clearPort() {
bitField0_ = (bitField0_ & ~0x00000001);
port_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.DaemonEndpoint)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.DaemonEndpoint)
private static final io.kubernetes.client.proto.V1.DaemonEndpoint DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.DaemonEndpoint();
}
public static io.kubernetes.client.proto.V1.DaemonEndpoint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public DaemonEndpoint parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DaemonEndpoint(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser