Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.kubernetes.client.proto;
public final class V1beta2Apps {
private V1beta2Apps() {}
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 ControllerRevisionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.ControllerRevision)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1/ControllerRevision. See the
* release notes for more information.
* ControllerRevision implements an immutable snapshot of state data. Clients
* are responsible for serializing and deserializing the objects that contain
* their internal state.
* Once a ControllerRevision has been successfully created, it can not be updated.
* The API Server will fail validation of all requests that attempt to mutate
* the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both
* the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However,
* it may be subject to name and representation changes in future releases, and clients should not
* depend on its stability. It is primarily for internal use by controllers.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.ControllerRevision}
*/
public static final class ControllerRevision extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.apps.v1beta2.ControllerRevision)
ControllerRevisionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ControllerRevision.newBuilder() to construct.
private ControllerRevision(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ControllerRevision() {
revision_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private ControllerRevision(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ =
input.readMessage(
io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
io.kubernetes.client.proto.Runtime.RawExtension.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = data_.toBuilder();
}
data_ =
input.readMessage(
io.kubernetes.client.proto.Runtime.RawExtension.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 24:
{
bitField0_ |= 0x00000004;
revision_ = input.readInt64();
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ControllerRevision_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ControllerRevision_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.ControllerRevision.class,
io.kubernetes.client.proto.V1beta2Apps.ControllerRevision.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* Revision indicates the revision of the state represented by Data.
*
*
* optional int64 revision = 3;
*/
public long getRevision() {
return revision_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getData());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, revision_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getData());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, revision_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.ControllerRevision)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.ControllerRevision other =
(io.kubernetes.client.proto.V1beta2Apps.ControllerRevision) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata().equals(other.getMetadata());
}
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData().equals(other.getData());
}
result = result && (hasRevision() == other.hasRevision());
if (hasRevision()) {
result = result && (getRevision() == other.getRevision());
}
result = result && unknownFields.equals(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 (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (hasRevision()) {
hash = (37 * hash) + REVISION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRevision());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.ControllerRevision parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.ControllerRevision parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ControllerRevision parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.ControllerRevision parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ControllerRevision parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.ControllerRevision parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ControllerRevision parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.ControllerRevision parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ControllerRevision parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.ControllerRevision parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ControllerRevision parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.ControllerRevision parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1beta2Apps.ControllerRevision prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1/ControllerRevision. See the
* release notes for more information.
* ControllerRevision implements an immutable snapshot of state data. Clients
* are responsible for serializing and deserializing the objects that contain
* their internal state.
* Once a ControllerRevision has been successfully created, it can not be updated.
* The API Server will fail validation of all requests that attempt to mutate
* the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both
* the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However,
* it may be subject to name and representation changes in future releases, and clients should not
* depend on its stability. It is primarily for internal use by controllers.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.ControllerRevision}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.apps.v1beta2.ControllerRevision)
io.kubernetes.client.proto.V1beta2Apps.ControllerRevisionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ControllerRevision_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ControllerRevision_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.ControllerRevision.class,
io.kubernetes.client.proto.V1beta2Apps.ControllerRevision.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta2Apps.ControllerRevision.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();
getDataFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (dataBuilder_ == null) {
data_ = null;
} else {
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
revision_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ControllerRevision_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ControllerRevision getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta2Apps.ControllerRevision.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ControllerRevision build() {
io.kubernetes.client.proto.V1beta2Apps.ControllerRevision result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ControllerRevision buildPartial() {
io.kubernetes.client.proto.V1beta2Apps.ControllerRevision result =
new io.kubernetes.client.proto.V1beta2Apps.ControllerRevision(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 (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.revision_ = revision_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta2Apps.ControllerRevision) {
return mergeFrom((io.kubernetes.client.proto.V1beta2Apps.ControllerRevision) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta2Apps.ControllerRevision other) {
if (other == io.kubernetes.client.proto.V1beta2Apps.ControllerRevision.getDefaultInstance())
return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasRevision()) {
setRevision(other.getRevision());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta2Apps.ControllerRevision parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1beta2Apps.ControllerRevision) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>
metadataBuilder_;
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* DEPRECATED - This group version of DaemonSet is deprecated by apps/v1/DaemonSet. See the release notes for
* more information.
* DaemonSet represents the configuration of a daemon set.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.DaemonSet}
*/
public static final class DaemonSet extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.apps.v1beta2.DaemonSet)
DaemonSetOrBuilder {
private static final long serialVersionUID = 0L;
// Use DaemonSet.newBuilder() to construct.
private DaemonSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DaemonSet() {}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private DaemonSet(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ =
input.readMessage(
io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = spec_.toBuilder();
}
spec_ =
input.readMessage(
io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26:
{
io.kubernetes.client.proto.V1beta2Apps.DaemonSetStatus.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = status_.toBuilder();
}
status_ =
input.readMessage(
io.kubernetes.client.proto.V1beta2Apps.DaemonSetStatus.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DaemonSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DaemonSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.DaemonSet.class,
io.kubernetes.client.proto.V1beta2Apps.DaemonSet.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
public static final int SPEC_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec spec_;
/**
*
*
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.DaemonSetSpec spec = 2;
*/
public io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpecOrBuilder getSpecOrBuilder() {
return spec_ == null
? io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec.getDefaultInstance()
: spec_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1beta2Apps.DaemonSetStatus status_;
/**
*
*
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.DaemonSetStatus status = 3;
*/
public io.kubernetes.client.proto.V1beta2Apps.DaemonSetStatusOrBuilder getStatusOrBuilder() {
return status_ == null
? io.kubernetes.client.proto.V1beta2Apps.DaemonSetStatus.getDefaultInstance()
: status_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getStatus());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.DaemonSet)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.DaemonSet other =
(io.kubernetes.client.proto.V1beta2Apps.DaemonSet) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata().equals(other.getMetadata());
}
result = result && (hasSpec() == other.hasSpec());
if (hasSpec()) {
result = result && getSpec().equals(other.getSpec());
}
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus().equals(other.getStatus());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSet parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSet parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSet parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSet parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSet parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSet parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSet parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSet parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSet parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1beta2Apps.DaemonSet prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* DEPRECATED - This group version of DaemonSet is deprecated by apps/v1/DaemonSet. See the release notes for
* more information.
* DaemonSet represents the configuration of a daemon set.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.DaemonSet}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.apps.v1beta2.DaemonSet)
io.kubernetes.client.proto.V1beta2Apps.DaemonSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DaemonSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DaemonSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.DaemonSet.class,
io.kubernetes.client.proto.V1beta2Apps.DaemonSet.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta2Apps.DaemonSet.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getSpecFieldBuilder();
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (specBuilder_ == null) {
spec_ = null;
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (statusBuilder_ == null) {
status_ = null;
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DaemonSet_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DaemonSet getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta2Apps.DaemonSet.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DaemonSet build() {
io.kubernetes.client.proto.V1beta2Apps.DaemonSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DaemonSet buildPartial() {
io.kubernetes.client.proto.V1beta2Apps.DaemonSet result =
new io.kubernetes.client.proto.V1beta2Apps.DaemonSet(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (specBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = specBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta2Apps.DaemonSet) {
return mergeFrom((io.kubernetes.client.proto.V1beta2Apps.DaemonSet) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta2Apps.DaemonSet other) {
if (other == io.kubernetes.client.proto.V1beta2Apps.DaemonSet.getDefaultInstance())
return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta2Apps.DaemonSet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1beta2Apps.DaemonSet) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>
metadataBuilder_;
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.DaemonSetStatus status = 3;
*/
public Builder setStatus(io.kubernetes.client.proto.V1beta2Apps.DaemonSetStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.DaemonSetStatus status = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.DaemonSetStatus,
io.kubernetes.client.proto.V1beta2Apps.DaemonSetStatus.Builder,
io.kubernetes.client.proto.V1beta2Apps.DaemonSetStatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.DaemonSetStatus,
io.kubernetes.client.proto.V1beta2Apps.DaemonSetStatus.Builder,
io.kubernetes.client.proto.V1beta2Apps.DaemonSetStatusOrBuilder>(
getStatus(), getParentForChildren(), isClean());
status_ = null;
}
return statusBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.DaemonSet)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.DaemonSet)
private static final io.kubernetes.client.proto.V1beta2Apps.DaemonSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.DaemonSet();
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DaemonSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DaemonSet(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DaemonSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DaemonSetConditionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.DaemonSetCondition)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
*
* repeated .k8s.io.api.apps.v1beta2.DaemonSet items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.DaemonSet,
io.kubernetes.client.proto.V1beta2Apps.DaemonSet.Builder,
io.kubernetes.client.proto.V1beta2Apps.DaemonSetOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.DaemonSet,
io.kubernetes.client.proto.V1beta2Apps.DaemonSet.Builder,
io.kubernetes.client.proto.V1beta2Apps.DaemonSetOrBuilder>(
items_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.DaemonSetList)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.DaemonSetList)
private static final io.kubernetes.client.proto.V1beta2Apps.DaemonSetList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.DaemonSetList();
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DaemonSetList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DaemonSetList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DaemonSetList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DaemonSetSpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.DaemonSetSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* DaemonSetSpec is the specification of a daemon set.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.DaemonSetSpec}
*/
public static final class DaemonSetSpec extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.apps.v1beta2.DaemonSetSpec)
DaemonSetSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use DaemonSetSpec.newBuilder() to construct.
private DaemonSetSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DaemonSetSpec() {
minReadySeconds_ = 0;
revisionHistoryLimit_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private DaemonSetSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = selector_.toBuilder();
}
selector_ =
input.readMessage(
io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(selector_);
selector_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
io.kubernetes.client.proto.V1.PodTemplateSpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = template_.toBuilder();
}
template_ =
input.readMessage(
io.kubernetes.client.proto.V1.PodTemplateSpec.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(template_);
template_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26:
{
io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy.Builder subBuilder =
null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = updateStrategy_.toBuilder();
}
updateStrategy_ =
input.readMessage(
io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateStrategy_);
updateStrategy_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 32:
{
bitField0_ |= 0x00000008;
minReadySeconds_ = input.readInt32();
break;
}
case 48:
{
bitField0_ |= 0x00000010;
revisionHistoryLimit_ = input.readInt32();
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DaemonSetSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DaemonSetSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec.class,
io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec.Builder.class);
}
private int bitField0_;
public static final int SELECTOR_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.LabelSelector selector_;
/**
*
*
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1;
*/
public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuilder() {
return selector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: selector_;
}
public static final int TEMPLATE_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1.PodTemplateSpec template_;
/**
*
*
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
*
* optional .k8s.io.api.core.v1.PodTemplateSpec template = 2;
*/
public io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuilder() {
return template_ == null
? io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance()
: template_;
}
public static final int UPDATESTRATEGY_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy updateStrategy_;
/**
*
*
*
* An update strategy to replace existing DaemonSet pods with new pods.
* +optional
*
* An update strategy to replace existing DaemonSet pods with new pods.
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.DaemonSetUpdateStrategy updateStrategy = 3;
*/
public io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategyOrBuilder
getUpdateStrategyOrBuilder() {
return updateStrategy_ == null
? io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy.getDefaultInstance()
: updateStrategy_;
}
public static final int MINREADYSECONDS_FIELD_NUMBER = 4;
private int minReadySeconds_;
/**
*
*
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
*
* optional int32 minReadySeconds = 4;
*/
public int getMinReadySeconds() {
return minReadySeconds_;
}
public static final int REVISIONHISTORYLIMIT_FIELD_NUMBER = 6;
private int revisionHistoryLimit_;
/**
*
*
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
*
* optional int32 revisionHistoryLimit = 6;
*/
public int getRevisionHistoryLimit() {
return revisionHistoryLimit_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getSelector());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getTemplate());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getUpdateStrategy());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, minReadySeconds_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(6, revisionHistoryLimit_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSelector());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTemplate());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateStrategy());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, minReadySeconds_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, revisionHistoryLimit_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec other =
(io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec) obj;
boolean result = true;
result = result && (hasSelector() == other.hasSelector());
if (hasSelector()) {
result = result && getSelector().equals(other.getSelector());
}
result = result && (hasTemplate() == other.hasTemplate());
if (hasTemplate()) {
result = result && getTemplate().equals(other.getTemplate());
}
result = result && (hasUpdateStrategy() == other.hasUpdateStrategy());
if (hasUpdateStrategy()) {
result = result && getUpdateStrategy().equals(other.getUpdateStrategy());
}
result = result && (hasMinReadySeconds() == other.hasMinReadySeconds());
if (hasMinReadySeconds()) {
result = result && (getMinReadySeconds() == other.getMinReadySeconds());
}
result = result && (hasRevisionHistoryLimit() == other.hasRevisionHistoryLimit());
if (hasRevisionHistoryLimit()) {
result = result && (getRevisionHistoryLimit() == other.getRevisionHistoryLimit());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSelector()) {
hash = (37 * hash) + SELECTOR_FIELD_NUMBER;
hash = (53 * hash) + getSelector().hashCode();
}
if (hasTemplate()) {
hash = (37 * hash) + TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getTemplate().hashCode();
}
if (hasUpdateStrategy()) {
hash = (37 * hash) + UPDATESTRATEGY_FIELD_NUMBER;
hash = (53 * hash) + getUpdateStrategy().hashCode();
}
if (hasMinReadySeconds()) {
hash = (37 * hash) + MINREADYSECONDS_FIELD_NUMBER;
hash = (53 * hash) + getMinReadySeconds();
}
if (hasRevisionHistoryLimit()) {
hash = (37 * hash) + REVISIONHISTORYLIMIT_FIELD_NUMBER;
hash = (53 * hash) + getRevisionHistoryLimit();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* DaemonSetSpec is the specification of a daemon set.
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
*
* optional int32 minReadySeconds = 4;
*/
public int getMinReadySeconds() {
return minReadySeconds_;
}
/**
*
*
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
*
* optional int32 revisionHistoryLimit = 6;
*/
public int getRevisionHistoryLimit() {
return revisionHistoryLimit_;
}
/**
*
*
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
*
* optional int32 revisionHistoryLimit = 6;
*/
public Builder clearRevisionHistoryLimit() {
bitField0_ = (bitField0_ & ~0x00000010);
revisionHistoryLimit_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.DaemonSetSpec)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.DaemonSetSpec)
private static final io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec();
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DaemonSetSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DaemonSetSpec(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DaemonSetSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DaemonSetStatusOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.DaemonSetStatus)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* Total number of nodes that should be running the daemon pod and have one
* or more of the daemon pod running with a Ready Condition by passing the readinessProbe.
*
* Total number of nodes that should be running the daemon pod and have one
* or more of the daemon pod running with a Ready Condition by passing the readinessProbe.
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
* DaemonSetStatus represents the current status of a daemon set.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.DaemonSetStatus}
*/
public static final class DaemonSetStatus extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.apps.v1beta2.DaemonSetStatus)
DaemonSetStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use DaemonSetStatus.newBuilder() to construct.
private DaemonSetStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DaemonSetStatus() {
currentNumberScheduled_ = 0;
numberMisscheduled_ = 0;
desiredNumberScheduled_ = 0;
numberReady_ = 0;
observedGeneration_ = 0L;
updatedNumberScheduled_ = 0;
numberAvailable_ = 0;
numberUnavailable_ = 0;
collisionCount_ = 0;
conditions_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private DaemonSetStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
bitField0_ |= 0x00000001;
currentNumberScheduled_ = input.readInt32();
break;
}
case 16:
{
bitField0_ |= 0x00000002;
numberMisscheduled_ = input.readInt32();
break;
}
case 24:
{
bitField0_ |= 0x00000004;
desiredNumberScheduled_ = input.readInt32();
break;
}
case 32:
{
bitField0_ |= 0x00000008;
numberReady_ = input.readInt32();
break;
}
case 40:
{
bitField0_ |= 0x00000010;
observedGeneration_ = input.readInt64();
break;
}
case 48:
{
bitField0_ |= 0x00000020;
updatedNumberScheduled_ = input.readInt32();
break;
}
case 56:
{
bitField0_ |= 0x00000040;
numberAvailable_ = input.readInt32();
break;
}
case 64:
{
bitField0_ |= 0x00000080;
numberUnavailable_ = input.readInt32();
break;
}
case 72:
{
bitField0_ |= 0x00000100;
collisionCount_ = input.readInt32();
break;
}
case 82:
{
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
conditions_ =
new java.util.ArrayList<
io.kubernetes.client.proto.V1beta2Apps.DaemonSetCondition>();
mutable_bitField0_ |= 0x00000200;
}
conditions_.add(
input.readMessage(
io.kubernetes.client.proto.V1beta2Apps.DaemonSetCondition.PARSER,
extensionRegistry));
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
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.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DaemonSetStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DaemonSetStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.DaemonSetStatus.class,
io.kubernetes.client.proto.V1beta2Apps.DaemonSetStatus.Builder.class);
}
private int bitField0_;
public static final int CURRENTNUMBERSCHEDULED_FIELD_NUMBER = 1;
private int currentNumberScheduled_;
/**
*
*
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
*
* optional int32 currentNumberScheduled = 1;
*/
public int getCurrentNumberScheduled() {
return currentNumberScheduled_;
}
public static final int NUMBERMISSCHEDULED_FIELD_NUMBER = 2;
private int numberMisscheduled_;
/**
*
*
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
*
* optional int32 numberMisscheduled = 2;
*/
public int getNumberMisscheduled() {
return numberMisscheduled_;
}
public static final int DESIREDNUMBERSCHEDULED_FIELD_NUMBER = 3;
private int desiredNumberScheduled_;
/**
*
*
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
*
* optional int32 desiredNumberScheduled = 3;
*/
public int getDesiredNumberScheduled() {
return desiredNumberScheduled_;
}
public static final int NUMBERREADY_FIELD_NUMBER = 4;
private int numberReady_;
/**
*
*
*
* Total number of nodes that should be running the daemon pod and have one
* or more of the daemon pod running with a Ready Condition by passing the readinessProbe.
*
* Total number of nodes that should be running the daemon pod and have one
* or more of the daemon pod running with a Ready Condition by passing the readinessProbe.
*
*
* optional int32 numberReady = 4;
*/
public int getNumberReady() {
return numberReady_;
}
public static final int OBSERVEDGENERATION_FIELD_NUMBER = 5;
private long observedGeneration_;
/**
*
*
*
* The most recent generation observed by the daemon set controller.
* +optional
*
* The most recent generation observed by the daemon set controller.
* +optional
*
*
* optional int64 observedGeneration = 5;
*/
public long getObservedGeneration() {
return observedGeneration_;
}
public static final int UPDATEDNUMBERSCHEDULED_FIELD_NUMBER = 6;
private int updatedNumberScheduled_;
/**
*
*
*
* The total number of nodes that are running updated daemon pod
* +optional
*
* The total number of nodes that are running updated daemon pod
* +optional
*
*
* optional int32 updatedNumberScheduled = 6;
*/
public int getUpdatedNumberScheduled() {
return updatedNumberScheduled_;
}
public static final int NUMBERAVAILABLE_FIELD_NUMBER = 7;
private int numberAvailable_;
/**
*
*
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
*
* optional int32 numberAvailable = 7;
*/
public int getNumberAvailable() {
return numberAvailable_;
}
public static final int NUMBERUNAVAILABLE_FIELD_NUMBER = 8;
private int numberUnavailable_;
/**
*
*
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
*
* optional int32 numberUnavailable = 8;
*/
public int getNumberUnavailable() {
return numberUnavailable_;
}
public static final int COLLISIONCOUNT_FIELD_NUMBER = 9;
private int collisionCount_;
/**
*
*
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
*
* optional int32 collisionCount = 9;
*/
public int getCollisionCount() {
return collisionCount_;
}
public static final int CONDITIONS_FIELD_NUMBER = 10;
private java.util.List conditions_;
/**
*
*
*
* Represents the latest available observations of a DaemonSet's current state.
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
*
* optional int32 currentNumberScheduled = 1;
*/
public int getCurrentNumberScheduled() {
return currentNumberScheduled_;
}
/**
*
*
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
*
* optional int32 numberMisscheduled = 2;
*/
public int getNumberMisscheduled() {
return numberMisscheduled_;
}
/**
*
*
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
*
* optional int32 desiredNumberScheduled = 3;
*/
public int getDesiredNumberScheduled() {
return desiredNumberScheduled_;
}
/**
*
*
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* Total number of nodes that should be running the daemon pod and have one
* or more of the daemon pod running with a Ready Condition by passing the readinessProbe.
*
* Total number of nodes that should be running the daemon pod and have one
* or more of the daemon pod running with a Ready Condition by passing the readinessProbe.
*
*
* optional int32 numberReady = 4;
*/
public int getNumberReady() {
return numberReady_;
}
/**
*
*
*
* Total number of nodes that should be running the daemon pod and have one
* or more of the daemon pod running with a Ready Condition by passing the readinessProbe.
*
* Total number of nodes that should be running the daemon pod and have one
* or more of the daemon pod running with a Ready Condition by passing the readinessProbe.
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
*
* optional int32 numberAvailable = 7;
*/
public int getNumberAvailable() {
return numberAvailable_;
}
/**
*
*
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
*
* optional int32 numberUnavailable = 8;
*/
public int getNumberUnavailable() {
return numberUnavailable_;
}
/**
*
*
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
*
* optional int32 collisionCount = 9;
*/
public int getCollisionCount() {
return collisionCount_;
}
/**
*
*
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate.
* +optional
*
*
* 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 ROLLINGUPDATE_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet rollingUpdate_;
/**
*
*
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.RollingUpdateDaemonSet rollingUpdate = 2;
*/
public io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSetOrBuilder
getRollingUpdateOrBuilder() {
return rollingUpdate_ == null
? io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet.getDefaultInstance()
: rollingUpdate_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getRollingUpdate());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRollingUpdate());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy other =
(io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy) obj;
boolean result = true;
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && getType().equals(other.getType());
}
result = result && (hasRollingUpdate() == other.hasRollingUpdate());
if (hasRollingUpdate()) {
result = result && getRollingUpdate().equals(other.getRollingUpdate());
}
result = result && unknownFields.equals(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 (hasRollingUpdate()) {
hash = (37 * hash) + ROLLINGUPDATE_FIELD_NUMBER;
hash = (53 * hash) + getRollingUpdate().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.DaemonSetUpdateStrategy}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.apps.v1beta2.DaemonSetUpdateStrategy)
io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DaemonSetUpdateStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DaemonSetUpdateStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy.class,
io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getRollingUpdateFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (rollingUpdateBuilder_ == null) {
rollingUpdate_ = null;
} else {
rollingUpdateBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DaemonSetUpdateStrategy_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy build() {
io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy buildPartial() {
io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy result =
new io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy(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;
}
if (rollingUpdateBuilder_ == null) {
result.rollingUpdate_ = rollingUpdate_;
} else {
result.rollingUpdate_ = rollingUpdateBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy) {
return mergeFrom((io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy other) {
if (other
== io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy.getDefaultInstance())
return this;
if (other.hasType()) {
bitField0_ |= 0x00000001;
type_ = other.type_;
onChanged();
}
if (other.hasRollingUpdate()) {
mergeRollingUpdate(other.getRollingUpdate());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object type_ = "";
/**
*
*
*
* Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate.
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.RollingUpdateDaemonSet rollingUpdate = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet,
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet.Builder,
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSetOrBuilder>
getRollingUpdateFieldBuilder() {
if (rollingUpdateBuilder_ == null) {
rollingUpdateBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet,
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet.Builder,
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSetOrBuilder>(
getRollingUpdate(), getParentForChildren(), isClean());
rollingUpdate_ = null;
}
return rollingUpdateBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.DaemonSetUpdateStrategy)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.DaemonSetUpdateStrategy)
private static final io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy();
}
public static io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DaemonSetUpdateStrategy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DaemonSetUpdateStrategy(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DaemonSetUpdateStrategy
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeploymentOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.Deployment)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* DEPRECATED - This group version of Deployment is deprecated by apps/v1/Deployment. See the release notes for
* more information.
* Deployment enables declarative updates for Pods and ReplicaSets.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.Deployment}
*/
public static final class Deployment extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.apps.v1beta2.Deployment)
DeploymentOrBuilder {
private static final long serialVersionUID = 0L;
// Use Deployment.newBuilder() to construct.
private Deployment(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Deployment() {}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Deployment(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ =
input.readMessage(
io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = spec_.toBuilder();
}
spec_ =
input.readMessage(
io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26:
{
io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = status_.toBuilder();
}
status_ =
input.readMessage(
io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_Deployment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_Deployment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.Deployment.class,
io.kubernetes.client.proto.V1beta2Apps.Deployment.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
/**
*
*
*
* Most recently observed status of the Deployment.
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.DeploymentStatus status = 3;
*/
public io.kubernetes.client.proto.V1beta2Apps.DeploymentStatusOrBuilder getStatusOrBuilder() {
return status_ == null
? io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus.getDefaultInstance()
: status_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getStatus());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.Deployment)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.Deployment other =
(io.kubernetes.client.proto.V1beta2Apps.Deployment) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata().equals(other.getMetadata());
}
result = result && (hasSpec() == other.hasSpec());
if (hasSpec()) {
result = result && getSpec().equals(other.getSpec());
}
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus().equals(other.getStatus());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.Deployment parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.Deployment parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.Deployment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.Deployment parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.Deployment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.Deployment parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.Deployment parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.Deployment parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.Deployment parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.Deployment parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.Deployment parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.Deployment parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1beta2Apps.Deployment prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* DEPRECATED - This group version of Deployment is deprecated by apps/v1/Deployment. See the release notes for
* more information.
* Deployment enables declarative updates for Pods and ReplicaSets.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.Deployment}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.apps.v1beta2.Deployment)
io.kubernetes.client.proto.V1beta2Apps.DeploymentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_Deployment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_Deployment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.Deployment.class,
io.kubernetes.client.proto.V1beta2Apps.Deployment.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta2Apps.Deployment.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getSpecFieldBuilder();
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (specBuilder_ == null) {
spec_ = null;
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (statusBuilder_ == null) {
status_ = null;
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_Deployment_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.Deployment getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta2Apps.Deployment.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.Deployment build() {
io.kubernetes.client.proto.V1beta2Apps.Deployment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.Deployment buildPartial() {
io.kubernetes.client.proto.V1beta2Apps.Deployment result =
new io.kubernetes.client.proto.V1beta2Apps.Deployment(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (specBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = specBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta2Apps.Deployment) {
return mergeFrom((io.kubernetes.client.proto.V1beta2Apps.Deployment) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta2Apps.Deployment other) {
if (other == io.kubernetes.client.proto.V1beta2Apps.Deployment.getDefaultInstance())
return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta2Apps.Deployment parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1beta2Apps.Deployment) 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_;
/**
*
*
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. Defaults to 600s.
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. Defaults to 600s.
*
* Number of desired pods. This is a pointer to distinguish between explicit
* zero and not specified. Defaults to 1.
* +optional
*
*
* optional int32 replicas = 1;
*/
public int getReplicas() {
return replicas_;
}
public static final int SELECTOR_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.Meta.LabelSelector selector_;
/**
*
*
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
*/
public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuilder() {
return selector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: selector_;
}
public static final int TEMPLATE_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1.PodTemplateSpec template_;
/**
*
*
*
* Template describes the pods that will be created.
*
* The deployment strategy to use to replace existing pods with new ones.
* +optional
* +patchStrategy=retainKeys
*
*
* optional .k8s.io.api.apps.v1beta2.DeploymentStrategy strategy = 4;
*/
public io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategyOrBuilder
getStrategyOrBuilder() {
return strategy_ == null
? io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy.getDefaultInstance()
: strategy_;
}
public static final int MINREADYSECONDS_FIELD_NUMBER = 5;
private int minReadySeconds_;
/**
*
*
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
*
* optional int32 minReadySeconds = 5;
*/
public int getMinReadySeconds() {
return minReadySeconds_;
}
public static final int REVISIONHISTORYLIMIT_FIELD_NUMBER = 6;
private int revisionHistoryLimit_;
/**
*
*
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
*
* optional int32 revisionHistoryLimit = 6;
*/
public int getRevisionHistoryLimit() {
return revisionHistoryLimit_;
}
public static final int PAUSED_FIELD_NUMBER = 7;
private boolean paused_;
/**
*
*
*
* Indicates that the deployment is paused.
* +optional
*
* Indicates that the deployment is paused.
* +optional
*
*
* optional bool paused = 7;
*/
public boolean getPaused() {
return paused_;
}
public static final int PROGRESSDEADLINESECONDS_FIELD_NUMBER = 9;
private int progressDeadlineSeconds_;
/**
*
*
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. Defaults to 600s.
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. Defaults to 600s.
*
*
* optional int32 progressDeadlineSeconds = 9;
*/
public int getProgressDeadlineSeconds() {
return progressDeadlineSeconds_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, replicas_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSelector());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getTemplate());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getStrategy());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, minReadySeconds_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(6, revisionHistoryLimit_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBool(7, paused_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeInt32(9, progressDeadlineSeconds_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, replicas_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSelector());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTemplate());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStrategy());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, minReadySeconds_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, revisionHistoryLimit_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, paused_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, progressDeadlineSeconds_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec other =
(io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec) obj;
boolean result = true;
result = result && (hasReplicas() == other.hasReplicas());
if (hasReplicas()) {
result = result && (getReplicas() == other.getReplicas());
}
result = result && (hasSelector() == other.hasSelector());
if (hasSelector()) {
result = result && getSelector().equals(other.getSelector());
}
result = result && (hasTemplate() == other.hasTemplate());
if (hasTemplate()) {
result = result && getTemplate().equals(other.getTemplate());
}
result = result && (hasStrategy() == other.hasStrategy());
if (hasStrategy()) {
result = result && getStrategy().equals(other.getStrategy());
}
result = result && (hasMinReadySeconds() == other.hasMinReadySeconds());
if (hasMinReadySeconds()) {
result = result && (getMinReadySeconds() == other.getMinReadySeconds());
}
result = result && (hasRevisionHistoryLimit() == other.hasRevisionHistoryLimit());
if (hasRevisionHistoryLimit()) {
result = result && (getRevisionHistoryLimit() == other.getRevisionHistoryLimit());
}
result = result && (hasPaused() == other.hasPaused());
if (hasPaused()) {
result = result && (getPaused() == other.getPaused());
}
result = result && (hasProgressDeadlineSeconds() == other.hasProgressDeadlineSeconds());
if (hasProgressDeadlineSeconds()) {
result = result && (getProgressDeadlineSeconds() == other.getProgressDeadlineSeconds());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasReplicas()) {
hash = (37 * hash) + REPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getReplicas();
}
if (hasSelector()) {
hash = (37 * hash) + SELECTOR_FIELD_NUMBER;
hash = (53 * hash) + getSelector().hashCode();
}
if (hasTemplate()) {
hash = (37 * hash) + TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getTemplate().hashCode();
}
if (hasStrategy()) {
hash = (37 * hash) + STRATEGY_FIELD_NUMBER;
hash = (53 * hash) + getStrategy().hashCode();
}
if (hasMinReadySeconds()) {
hash = (37 * hash) + MINREADYSECONDS_FIELD_NUMBER;
hash = (53 * hash) + getMinReadySeconds();
}
if (hasRevisionHistoryLimit()) {
hash = (37 * hash) + REVISIONHISTORYLIMIT_FIELD_NUMBER;
hash = (53 * hash) + getRevisionHistoryLimit();
}
if (hasPaused()) {
hash = (37 * hash) + PAUSED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPaused());
}
if (hasProgressDeadlineSeconds()) {
hash = (37 * hash) + PROGRESSDEADLINESECONDS_FIELD_NUMBER;
hash = (53 * hash) + getProgressDeadlineSeconds();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* DeploymentSpec is the specification of the desired behavior of the Deployment.
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
* Label selector for pods. Existing ReplicaSets whose pods are
* selected by this will be the ones affected by this deployment.
* It must match the pod template's labels.
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
*
* optional int32 minReadySeconds = 5;
*/
public int getMinReadySeconds() {
return minReadySeconds_;
}
/**
*
*
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
*
* optional int32 revisionHistoryLimit = 6;
*/
public int getRevisionHistoryLimit() {
return revisionHistoryLimit_;
}
/**
*
*
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. Defaults to 600s.
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. Defaults to 600s.
*
*
* optional int32 progressDeadlineSeconds = 9;
*/
public int getProgressDeadlineSeconds() {
return progressDeadlineSeconds_;
}
/**
*
*
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. Defaults to 600s.
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. Defaults to 600s.
*
*
* optional int32 progressDeadlineSeconds = 9;
*/
public Builder clearProgressDeadlineSeconds() {
bitField0_ = (bitField0_ & ~0x00000080);
progressDeadlineSeconds_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.DeploymentSpec)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.DeploymentSpec)
private static final io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec();
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeploymentSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeploymentSpec(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeploymentStatusOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.DeploymentStatus)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The generation observed by the deployment controller.
* +optional
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
* The generation observed by the deployment controller.
* +optional
*
*
* optional int64 observedGeneration = 1;
*/
public long getObservedGeneration() {
return observedGeneration_;
}
public static final int REPLICAS_FIELD_NUMBER = 2;
private int replicas_;
/**
*
*
*
* Total number of non-terminated pods targeted by this deployment (their labels match the selector).
* +optional
*
* Total number of non-terminated pods targeted by this deployment (their labels match the selector).
* +optional
*
*
* optional int32 replicas = 2;
*/
public int getReplicas() {
return replicas_;
}
public static final int UPDATEDREPLICAS_FIELD_NUMBER = 3;
private int updatedReplicas_;
/**
*
*
*
* Total number of non-terminated pods targeted by this deployment that have the desired template spec.
* +optional
*
* Total number of non-terminated pods targeted by this deployment that have the desired template spec.
* +optional
*
*
* optional int32 updatedReplicas = 3;
*/
public int getUpdatedReplicas() {
return updatedReplicas_;
}
public static final int READYREPLICAS_FIELD_NUMBER = 7;
private int readyReplicas_;
/**
*
*
*
* readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition.
* +optional
*
* readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition.
* +optional
*
*
* optional int32 readyReplicas = 7;
*/
public int getReadyReplicas() {
return readyReplicas_;
}
public static final int AVAILABLEREPLICAS_FIELD_NUMBER = 4;
private int availableReplicas_;
/**
*
*
*
* Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
* +optional
*
* Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
* +optional
*
*
* optional int32 availableReplicas = 4;
*/
public int getAvailableReplicas() {
return availableReplicas_;
}
public static final int UNAVAILABLEREPLICAS_FIELD_NUMBER = 5;
private int unavailableReplicas_;
/**
*
*
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
*
* optional int32 unavailableReplicas = 5;
*/
public int getUnavailableReplicas() {
return unavailableReplicas_;
}
public static final int CONDITIONS_FIELD_NUMBER = 6;
private java.util.List conditions_;
/**
*
*
*
* Represents the latest available observations of a deployment's current state.
* +patchMergeKey=type
* +patchStrategy=merge
*
* Represents the latest available observations of a deployment's current state.
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.apps.v1beta2.DeploymentCondition conditions = 6;
*/
public io.kubernetes.client.proto.V1beta2Apps.DeploymentConditionOrBuilder
getConditionsOrBuilder(int index) {
return conditions_.get(index);
}
public static final int COLLISIONCOUNT_FIELD_NUMBER = 8;
private int collisionCount_;
/**
*
*
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
*
* optional int32 collisionCount = 8;
*/
public int getCollisionCount() {
return collisionCount_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, observedGeneration_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, replicas_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, updatedReplicas_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(4, availableReplicas_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(5, unavailableReplicas_);
}
for (int i = 0; i < conditions_.size(); i++) {
output.writeMessage(6, conditions_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(7, readyReplicas_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt32(8, collisionCount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, observedGeneration_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, replicas_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, updatedReplicas_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, availableReplicas_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, unavailableReplicas_);
}
for (int i = 0; i < conditions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, conditions_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, readyReplicas_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, collisionCount_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus other =
(io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus) obj;
boolean result = true;
result = result && (hasObservedGeneration() == other.hasObservedGeneration());
if (hasObservedGeneration()) {
result = result && (getObservedGeneration() == other.getObservedGeneration());
}
result = result && (hasReplicas() == other.hasReplicas());
if (hasReplicas()) {
result = result && (getReplicas() == other.getReplicas());
}
result = result && (hasUpdatedReplicas() == other.hasUpdatedReplicas());
if (hasUpdatedReplicas()) {
result = result && (getUpdatedReplicas() == other.getUpdatedReplicas());
}
result = result && (hasReadyReplicas() == other.hasReadyReplicas());
if (hasReadyReplicas()) {
result = result && (getReadyReplicas() == other.getReadyReplicas());
}
result = result && (hasAvailableReplicas() == other.hasAvailableReplicas());
if (hasAvailableReplicas()) {
result = result && (getAvailableReplicas() == other.getAvailableReplicas());
}
result = result && (hasUnavailableReplicas() == other.hasUnavailableReplicas());
if (hasUnavailableReplicas()) {
result = result && (getUnavailableReplicas() == other.getUnavailableReplicas());
}
result = result && getConditionsList().equals(other.getConditionsList());
result = result && (hasCollisionCount() == other.hasCollisionCount());
if (hasCollisionCount()) {
result = result && (getCollisionCount() == other.getCollisionCount());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasObservedGeneration()) {
hash = (37 * hash) + OBSERVEDGENERATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObservedGeneration());
}
if (hasReplicas()) {
hash = (37 * hash) + REPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getReplicas();
}
if (hasUpdatedReplicas()) {
hash = (37 * hash) + UPDATEDREPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedReplicas();
}
if (hasReadyReplicas()) {
hash = (37 * hash) + READYREPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getReadyReplicas();
}
if (hasAvailableReplicas()) {
hash = (37 * hash) + AVAILABLEREPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getAvailableReplicas();
}
if (hasUnavailableReplicas()) {
hash = (37 * hash) + UNAVAILABLEREPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getUnavailableReplicas();
}
if (getConditionsCount() > 0) {
hash = (37 * hash) + CONDITIONS_FIELD_NUMBER;
hash = (53 * hash) + getConditionsList().hashCode();
}
if (hasCollisionCount()) {
hash = (37 * hash) + COLLISIONCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getCollisionCount();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* DeploymentStatus is the most recently observed status of the Deployment.
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
*
* optional int32 unavailableReplicas = 5;
*/
public int getUnavailableReplicas() {
return unavailableReplicas_;
}
/**
*
*
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
*
* optional int32 collisionCount = 8;
*/
public int getCollisionCount() {
return collisionCount_;
}
/**
*
*
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
*
* optional int32 collisionCount = 8;
*/
public Builder clearCollisionCount() {
bitField0_ = (bitField0_ & ~0x00000080);
collisionCount_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.DeploymentStatus)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.DeploymentStatus)
private static final io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus();
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeploymentStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeploymentStatus(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DeploymentStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeploymentStrategyOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.DeploymentStrategy)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
* +optional
*
*
* 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 ROLLINGUPDATE_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment rollingUpdate_;
/**
*
*
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.RollingUpdateDeployment rollingUpdate = 2;
*/
public io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeploymentOrBuilder
getRollingUpdateOrBuilder() {
return rollingUpdate_ == null
? io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment.getDefaultInstance()
: rollingUpdate_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getRollingUpdate());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRollingUpdate());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy other =
(io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy) obj;
boolean result = true;
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && getType().equals(other.getType());
}
result = result && (hasRollingUpdate() == other.hasRollingUpdate());
if (hasRollingUpdate()) {
result = result && getRollingUpdate().equals(other.getRollingUpdate());
}
result = result && unknownFields.equals(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 (hasRollingUpdate()) {
hash = (37 * hash) + ROLLINGUPDATE_FIELD_NUMBER;
hash = (53 * hash) + getRollingUpdate().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* DeploymentStrategy describes how to replace existing pods with new ones.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.DeploymentStrategy}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.apps.v1beta2.DeploymentStrategy)
io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DeploymentStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DeploymentStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy.class,
io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getRollingUpdateFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (rollingUpdateBuilder_ == null) {
rollingUpdate_ = null;
} else {
rollingUpdateBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_DeploymentStrategy_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy build() {
io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy buildPartial() {
io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy result =
new io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy(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;
}
if (rollingUpdateBuilder_ == null) {
result.rollingUpdate_ = rollingUpdate_;
} else {
result.rollingUpdate_ = rollingUpdateBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy) {
return mergeFrom((io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy other) {
if (other == io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy.getDefaultInstance())
return this;
if (other.hasType()) {
bitField0_ |= 0x00000001;
type_ = other.type_;
onChanged();
}
if (other.hasRollingUpdate()) {
mergeRollingUpdate(other.getRollingUpdate());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object type_ = "";
/**
*
*
*
* Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.RollingUpdateDeployment rollingUpdate = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment,
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment.Builder,
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeploymentOrBuilder>
getRollingUpdateFieldBuilder() {
if (rollingUpdateBuilder_ == null) {
rollingUpdateBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment,
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment.Builder,
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeploymentOrBuilder>(
getRollingUpdate(), getParentForChildren(), isClean());
rollingUpdate_ = null;
}
return rollingUpdateBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.DeploymentStrategy)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.DeploymentStrategy)
private static final io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy();
}
public static io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeploymentStrategy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeploymentStrategy(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.DeploymentStrategy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReplicaSetOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.ReplicaSet)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1/ReplicaSet. See the release notes for
* more information.
* ReplicaSet ensures that a specified number of pod replicas are running at any given time.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.ReplicaSet}
*/
public static final class ReplicaSet extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.apps.v1beta2.ReplicaSet)
ReplicaSetOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReplicaSet.newBuilder() to construct.
private ReplicaSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReplicaSet() {}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private ReplicaSet(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ =
input.readMessage(
io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = spec_.toBuilder();
}
spec_ =
input.readMessage(
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26:
{
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = status_.toBuilder();
}
status_ =
input.readMessage(
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ReplicaSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ReplicaSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.ReplicaSet.class,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSet.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
/**
*
*
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
public static final int SPEC_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec spec_;
/**
*
*
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.ReplicaSetSpec spec = 2;
*/
public io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpecOrBuilder getSpecOrBuilder() {
return spec_ == null
? io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec.getDefaultInstance()
: spec_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus status_;
/**
*
*
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.ReplicaSetStatus status = 3;
*/
public io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatusOrBuilder getStatusOrBuilder() {
return status_ == null
? io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus.getDefaultInstance()
: status_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getStatus());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.ReplicaSet)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.ReplicaSet other =
(io.kubernetes.client.proto.V1beta2Apps.ReplicaSet) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata().equals(other.getMetadata());
}
result = result && (hasSpec() == other.hasSpec());
if (hasSpec()) {
result = result && getSpec().equals(other.getSpec());
}
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus().equals(other.getStatus());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSet parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSet parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSet parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSet parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSet parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSet parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSet parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSet parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSet parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1beta2Apps.ReplicaSet prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1/ReplicaSet. See the release notes for
* more information.
* ReplicaSet ensures that a specified number of pod replicas are running at any given time.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.ReplicaSet}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.apps.v1beta2.ReplicaSet)
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ReplicaSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ReplicaSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.ReplicaSet.class,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSet.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta2Apps.ReplicaSet.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getSpecFieldBuilder();
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (specBuilder_ == null) {
spec_ = null;
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (statusBuilder_ == null) {
status_ = null;
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ReplicaSet_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ReplicaSet getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta2Apps.ReplicaSet.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ReplicaSet build() {
io.kubernetes.client.proto.V1beta2Apps.ReplicaSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ReplicaSet buildPartial() {
io.kubernetes.client.proto.V1beta2Apps.ReplicaSet result =
new io.kubernetes.client.proto.V1beta2Apps.ReplicaSet(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (specBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = specBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta2Apps.ReplicaSet) {
return mergeFrom((io.kubernetes.client.proto.V1beta2Apps.ReplicaSet) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta2Apps.ReplicaSet other) {
if (other == io.kubernetes.client.proto.V1beta2Apps.ReplicaSet.getDefaultInstance())
return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta2Apps.ReplicaSet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1beta2Apps.ReplicaSet) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>
metadataBuilder_;
/**
*
*
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* If the Labels of a ReplicaSet are empty, they are defaulted to
* be the same as the Pod(s) that the ReplicaSet manages.
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Spec defines the specification of the desired behavior of the ReplicaSet.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.ReplicaSetStatus status = 3;
*/
public Builder setStatus(io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
* Status is the most recently observed status of the ReplicaSet.
* This data may be out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.ReplicaSetStatus status = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus.Builder,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus.Builder,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatusOrBuilder>(
getStatus(), getParentForChildren(), isClean());
status_ = null;
}
return statusBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.ReplicaSet)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.ReplicaSet)
private static final io.kubernetes.client.proto.V1beta2Apps.ReplicaSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.ReplicaSet();
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReplicaSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReplicaSet(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ReplicaSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReplicaSetConditionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.ReplicaSetCondition)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* List of ReplicaSets.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
*
*
* repeated .k8s.io.api.apps.v1beta2.ReplicaSet items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.ReplicaSet,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSet.Builder,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.ReplicaSet,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSet.Builder,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetOrBuilder>(
items_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.ReplicaSetList)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.ReplicaSetList)
private static final io.kubernetes.client.proto.V1beta2Apps.ReplicaSetList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.ReplicaSetList();
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReplicaSetList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReplicaSetList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ReplicaSetList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReplicaSetSpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.ReplicaSetSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Replicas is the number of desired replicas.
* This is a pointer to distinguish between explicit zero and unspecified.
* Defaults to 1.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
* +optional
*
* Replicas is the number of desired replicas.
* This is a pointer to distinguish between explicit zero and unspecified.
* Defaults to 1.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
* ReplicaSetSpec is the specification of a ReplicaSet.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.ReplicaSetSpec}
*/
public static final class ReplicaSetSpec extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.apps.v1beta2.ReplicaSetSpec)
ReplicaSetSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReplicaSetSpec.newBuilder() to construct.
private ReplicaSetSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReplicaSetSpec() {
replicas_ = 0;
minReadySeconds_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private ReplicaSetSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
bitField0_ |= 0x00000001;
replicas_ = input.readInt32();
break;
}
case 18:
{
io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = selector_.toBuilder();
}
selector_ =
input.readMessage(
io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(selector_);
selector_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 26:
{
io.kubernetes.client.proto.V1.PodTemplateSpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = template_.toBuilder();
}
template_ =
input.readMessage(
io.kubernetes.client.proto.V1.PodTemplateSpec.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(template_);
template_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 32:
{
bitField0_ |= 0x00000002;
minReadySeconds_ = input.readInt32();
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ReplicaSetSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ReplicaSetSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec.class,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec.Builder.class);
}
private int bitField0_;
public static final int REPLICAS_FIELD_NUMBER = 1;
private int replicas_;
/**
*
*
*
* Replicas is the number of desired replicas.
* This is a pointer to distinguish between explicit zero and unspecified.
* Defaults to 1.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
* +optional
*
* Replicas is the number of desired replicas.
* This is a pointer to distinguish between explicit zero and unspecified.
* Defaults to 1.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
* +optional
*
*
* optional int32 replicas = 1;
*/
public int getReplicas() {
return replicas_;
}
public static final int MINREADYSECONDS_FIELD_NUMBER = 4;
private int minReadySeconds_;
/**
*
*
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
*
* optional int32 minReadySeconds = 4;
*/
public int getMinReadySeconds() {
return minReadySeconds_;
}
public static final int SELECTOR_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.Meta.LabelSelector selector_;
/**
*
*
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
*/
public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuilder() {
return selector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: selector_;
}
public static final int TEMPLATE_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1.PodTemplateSpec template_;
/**
*
*
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
*
* optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
*/
public io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuilder() {
return template_ == null
? io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance()
: template_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, replicas_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(2, getSelector());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(3, getTemplate());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(4, minReadySeconds_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, replicas_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSelector());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTemplate());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, minReadySeconds_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec other =
(io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec) obj;
boolean result = true;
result = result && (hasReplicas() == other.hasReplicas());
if (hasReplicas()) {
result = result && (getReplicas() == other.getReplicas());
}
result = result && (hasMinReadySeconds() == other.hasMinReadySeconds());
if (hasMinReadySeconds()) {
result = result && (getMinReadySeconds() == other.getMinReadySeconds());
}
result = result && (hasSelector() == other.hasSelector());
if (hasSelector()) {
result = result && getSelector().equals(other.getSelector());
}
result = result && (hasTemplate() == other.hasTemplate());
if (hasTemplate()) {
result = result && getTemplate().equals(other.getTemplate());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasReplicas()) {
hash = (37 * hash) + REPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getReplicas();
}
if (hasMinReadySeconds()) {
hash = (37 * hash) + MINREADYSECONDS_FIELD_NUMBER;
hash = (53 * hash) + getMinReadySeconds();
}
if (hasSelector()) {
hash = (37 * hash) + SELECTOR_FIELD_NUMBER;
hash = (53 * hash) + getSelector().hashCode();
}
if (hasTemplate()) {
hash = (37 * hash) + TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getTemplate().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* ReplicaSetSpec is the specification of a ReplicaSet.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.ReplicaSetSpec}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.apps.v1beta2.ReplicaSetSpec)
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ReplicaSetSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ReplicaSetSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec.class,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getSelectorFieldBuilder();
getTemplateFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
replicas_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
minReadySeconds_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
if (selectorBuilder_ == null) {
selector_ = null;
} else {
selectorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (templateBuilder_ == null) {
template_ = null;
} else {
templateBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ReplicaSetSpec_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec build() {
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec buildPartial() {
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec result =
new io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.replicas_ = replicas_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.minReadySeconds_ = minReadySeconds_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (selectorBuilder_ == null) {
result.selector_ = selector_;
} else {
result.selector_ = selectorBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (templateBuilder_ == null) {
result.template_ = template_;
} else {
result.template_ = templateBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec) {
return mergeFrom((io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec other) {
if (other == io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec.getDefaultInstance())
return this;
if (other.hasReplicas()) {
setReplicas(other.getReplicas());
}
if (other.hasMinReadySeconds()) {
setMinReadySeconds(other.getMinReadySeconds());
}
if (other.hasSelector()) {
mergeSelector(other.getSelector());
}
if (other.hasTemplate()) {
mergeTemplate(other.getTemplate());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int replicas_;
/**
*
*
*
* Replicas is the number of desired replicas.
* This is a pointer to distinguish between explicit zero and unspecified.
* Defaults to 1.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
* +optional
*
* Replicas is the number of desired replicas.
* This is a pointer to distinguish between explicit zero and unspecified.
* Defaults to 1.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
* +optional
*
*
* optional int32 replicas = 1;
*/
public int getReplicas() {
return replicas_;
}
/**
*
*
*
* Replicas is the number of desired replicas.
* This is a pointer to distinguish between explicit zero and unspecified.
* Defaults to 1.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
* +optional
*
* Replicas is the number of desired replicas.
* This is a pointer to distinguish between explicit zero and unspecified.
* Defaults to 1.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
*
* optional int32 minReadySeconds = 4;
*/
public int getMinReadySeconds() {
return minReadySeconds_;
}
/**
*
*
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* Selector is a label query over pods that should match the replica count.
* Label keys and values that must match in order to be controlled by this replica set.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
* Template is the object that describes the pod that will be created if
* insufficient replicas are detected.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
* +optional
*
*
* optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.PodTemplateSpec,
io.kubernetes.client.proto.V1.PodTemplateSpec.Builder,
io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder>
getTemplateFieldBuilder() {
if (templateBuilder_ == null) {
templateBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.PodTemplateSpec,
io.kubernetes.client.proto.V1.PodTemplateSpec.Builder,
io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder>(
getTemplate(), getParentForChildren(), isClean());
template_ = null;
}
return templateBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.ReplicaSetSpec)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.ReplicaSetSpec)
private static final io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec();
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReplicaSetSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReplicaSetSpec(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ReplicaSetSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReplicaSetStatusOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.ReplicaSetStatus)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Replicas is the most recently oberved number of replicas.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
*
* Replicas is the most recently oberved number of replicas.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
*
* ReplicaSetStatus represents the current status of a ReplicaSet.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.ReplicaSetStatus}
*/
public static final class ReplicaSetStatus extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.apps.v1beta2.ReplicaSetStatus)
ReplicaSetStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReplicaSetStatus.newBuilder() to construct.
private ReplicaSetStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReplicaSetStatus() {
replicas_ = 0;
fullyLabeledReplicas_ = 0;
readyReplicas_ = 0;
availableReplicas_ = 0;
observedGeneration_ = 0L;
conditions_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private ReplicaSetStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
bitField0_ |= 0x00000001;
replicas_ = input.readInt32();
break;
}
case 16:
{
bitField0_ |= 0x00000002;
fullyLabeledReplicas_ = input.readInt32();
break;
}
case 24:
{
bitField0_ |= 0x00000010;
observedGeneration_ = input.readInt64();
break;
}
case 32:
{
bitField0_ |= 0x00000004;
readyReplicas_ = input.readInt32();
break;
}
case 40:
{
bitField0_ |= 0x00000008;
availableReplicas_ = input.readInt32();
break;
}
case 50:
{
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
conditions_ =
new java.util.ArrayList<
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetCondition>();
mutable_bitField0_ |= 0x00000020;
}
conditions_.add(
input.readMessage(
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetCondition.PARSER,
extensionRegistry));
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
conditions_ = java.util.Collections.unmodifiableList(conditions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ReplicaSetStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ReplicaSetStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus.class,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus.Builder.class);
}
private int bitField0_;
public static final int REPLICAS_FIELD_NUMBER = 1;
private int replicas_;
/**
*
*
*
* Replicas is the most recently oberved number of replicas.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
*
* Replicas is the most recently oberved number of replicas.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
*
*
* optional int32 replicas = 1;
*/
public int getReplicas() {
return replicas_;
}
public static final int FULLYLABELEDREPLICAS_FIELD_NUMBER = 2;
private int fullyLabeledReplicas_;
/**
*
*
*
* The number of pods that have labels matching the labels of the pod template of the replicaset.
* +optional
*
* The number of pods that have labels matching the labels of the pod template of the replicaset.
* +optional
*
*
* optional int32 fullyLabeledReplicas = 2;
*/
public int getFullyLabeledReplicas() {
return fullyLabeledReplicas_;
}
public static final int READYREPLICAS_FIELD_NUMBER = 4;
private int readyReplicas_;
/**
*
*
*
* readyReplicas is the number of pods targeted by this ReplicaSet controller with a Ready Condition.
* +optional
*
* readyReplicas is the number of pods targeted by this ReplicaSet controller with a Ready Condition.
* +optional
*
*
* optional int32 readyReplicas = 4;
*/
public int getReadyReplicas() {
return readyReplicas_;
}
public static final int AVAILABLEREPLICAS_FIELD_NUMBER = 5;
private int availableReplicas_;
/**
*
*
*
* The number of available replicas (ready for at least minReadySeconds) for this replica set.
* +optional
*
* The number of available replicas (ready for at least minReadySeconds) for this replica set.
* +optional
*
*
* optional int32 availableReplicas = 5;
*/
public int getAvailableReplicas() {
return availableReplicas_;
}
public static final int OBSERVEDGENERATION_FIELD_NUMBER = 3;
private long observedGeneration_;
/**
*
*
*
* ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
* +optional
*
* Replicas is the most recently oberved number of replicas.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
*
* Replicas is the most recently oberved number of replicas.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
*
*
* optional int32 replicas = 1;
*/
public int getReplicas() {
return replicas_;
}
/**
*
*
*
* Replicas is the most recently oberved number of replicas.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
*
* Replicas is the most recently oberved number of replicas.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
*
* Represents the latest available observations of a replica set's current state.
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.apps.v1beta2.ReplicaSetCondition conditions = 6;
*/
public java.util.List
getConditionsBuilderList() {
return getConditionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetCondition,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetCondition.Builder,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetConditionOrBuilder>
getConditionsFieldBuilder() {
if (conditionsBuilder_ == null) {
conditionsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetCondition,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetCondition.Builder,
io.kubernetes.client.proto.V1beta2Apps.ReplicaSetConditionOrBuilder>(
conditions_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
conditions_ = null;
}
return conditionsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.ReplicaSetStatus)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.ReplicaSetStatus)
private static final io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus();
}
public static io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReplicaSetStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReplicaSetStatus(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ReplicaSetStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RollingUpdateDaemonSetOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.RollingUpdateDaemonSet)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
* Spec to control the desired behavior of daemon set rolling update.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.RollingUpdateDaemonSet}
*/
public static final class RollingUpdateDaemonSet extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.apps.v1beta2.RollingUpdateDaemonSet)
RollingUpdateDaemonSetOrBuilder {
private static final long serialVersionUID = 0L;
// Use RollingUpdateDaemonSet.newBuilder() to construct.
private RollingUpdateDaemonSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RollingUpdateDaemonSet() {}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private RollingUpdateDaemonSet(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
io.kubernetes.client.proto.IntStr.IntOrString.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = maxUnavailable_.toBuilder();
}
maxUnavailable_ =
input.readMessage(
io.kubernetes.client.proto.IntStr.IntOrString.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxUnavailable_);
maxUnavailable_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
io.kubernetes.client.proto.IntStr.IntOrString.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = maxSurge_.toBuilder();
}
maxSurge_ =
input.readMessage(
io.kubernetes.client.proto.IntStr.IntOrString.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxSurge_);
maxSurge_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_RollingUpdateDaemonSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_RollingUpdateDaemonSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet.class,
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet.Builder.class);
}
private int bitField0_;
public static final int MAXUNAVAILABLE_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.IntStr.IntOrString maxUnavailable_;
/**
*
*
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
*/
public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getMaxUnavailableOrBuilder() {
return maxUnavailable_ == null
? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()
: maxUnavailable_;
}
public static final int MAXSURGE_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.IntStr.IntOrString maxSurge_;
/**
*
*
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
*/
public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getMaxSurgeOrBuilder() {
return maxSurge_ == null
? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()
: maxSurge_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMaxUnavailable());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getMaxSurge());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMaxUnavailable());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxSurge());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet other =
(io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet) obj;
boolean result = true;
result = result && (hasMaxUnavailable() == other.hasMaxUnavailable());
if (hasMaxUnavailable()) {
result = result && getMaxUnavailable().equals(other.getMaxUnavailable());
}
result = result && (hasMaxSurge() == other.hasMaxSurge());
if (hasMaxSurge()) {
result = result && getMaxSurge().equals(other.getMaxSurge());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMaxUnavailable()) {
hash = (37 * hash) + MAXUNAVAILABLE_FIELD_NUMBER;
hash = (53 * hash) + getMaxUnavailable().hashCode();
}
if (hasMaxSurge()) {
hash = (37 * hash) + MAXSURGE_FIELD_NUMBER;
hash = (53 * hash) + getMaxSurge().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Spec to control the desired behavior of daemon set rolling update.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.RollingUpdateDaemonSet}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.apps.v1beta2.RollingUpdateDaemonSet)
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_RollingUpdateDaemonSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_RollingUpdateDaemonSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet.class,
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getMaxUnavailableFieldBuilder();
getMaxSurgeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (maxUnavailableBuilder_ == null) {
maxUnavailable_ = null;
} else {
maxUnavailableBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (maxSurgeBuilder_ == null) {
maxSurge_ = null;
} else {
maxSurgeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_RollingUpdateDaemonSet_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet build() {
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet buildPartial() {
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet result =
new io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (maxUnavailableBuilder_ == null) {
result.maxUnavailable_ = maxUnavailable_;
} else {
result.maxUnavailable_ = maxUnavailableBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (maxSurgeBuilder_ == null) {
result.maxSurge_ = maxSurge_;
} else {
result.maxSurge_ = maxSurgeBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet) {
return mergeFrom((io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet other) {
if (other
== io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet.getDefaultInstance())
return this;
if (other.hasMaxUnavailable()) {
mergeMaxUnavailable(other.getMaxUnavailable());
}
if (other.hasMaxSurge()) {
mergeMaxSurge(other.getMaxSurge());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.IntStr.IntOrString maxUnavailable_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.IntStr.IntOrString,
io.kubernetes.client.proto.IntStr.IntOrString.Builder,
io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder>
maxUnavailableBuilder_;
/**
*
*
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
* The maximum number of DaemonSet pods that can be unavailable during the
* update. Value can be an absolute number (ex: 5) or a percentage of total
* number of DaemonSet pods at the start of the update (ex: 10%). Absolute
* number is calculated from percentage by rounding up.
* This cannot be 0 if MaxSurge is 0
* Default value is 1.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their pods stopped for an update at any given time. The update
* starts by stopping at most 30% of those DaemonSet pods and then brings
* up new DaemonSet pods in their place. Once the new pods are available,
* it then proceeds onto other DaemonSet pods, thus ensuring that at least
* 70% of original number of DaemonSet pods are available at all times during
* the update.
* +optional
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
* The maximum number of nodes with an existing available DaemonSet pod that
* can have an updated DaemonSet pod during during an update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up to a minimum of 1.
* Default value is 0.
* Example: when this is set to 30%, at most 30% of the total number of nodes
* that should be running the daemon pod (i.e. status.desiredNumberScheduled)
* can have their a new pod created before the old pod is marked as deleted.
* The update starts by launching new pods on 30% of nodes. Once an updated
* pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
* on that node is marked deleted. If the old pod becomes unavailable for any
* reason (Ready transitions to false, is evicted, or is drained) an updated
* pod is immediatedly created on that node without considering surge limits.
* Allowing surge implies the possibility that the resources consumed by the
* daemonset on any given node can double if the readiness check fails, and
* so resource intensive daemonsets should take into account that they may
* cause evictions during disruption.
* This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.IntStr.IntOrString,
io.kubernetes.client.proto.IntStr.IntOrString.Builder,
io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder>
getMaxSurgeFieldBuilder() {
if (maxSurgeBuilder_ == null) {
maxSurgeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.IntStr.IntOrString,
io.kubernetes.client.proto.IntStr.IntOrString.Builder,
io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder>(
getMaxSurge(), getParentForChildren(), isClean());
maxSurge_ = null;
}
return maxSurgeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.RollingUpdateDaemonSet)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.RollingUpdateDaemonSet)
private static final io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet();
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RollingUpdateDaemonSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RollingUpdateDaemonSet(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDaemonSet
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RollingUpdateDeploymentOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.RollingUpdateDeployment)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
* Spec to control the desired behavior of rolling update.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.RollingUpdateDeployment}
*/
public static final class RollingUpdateDeployment extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.apps.v1beta2.RollingUpdateDeployment)
RollingUpdateDeploymentOrBuilder {
private static final long serialVersionUID = 0L;
// Use RollingUpdateDeployment.newBuilder() to construct.
private RollingUpdateDeployment(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RollingUpdateDeployment() {}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private RollingUpdateDeployment(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
io.kubernetes.client.proto.IntStr.IntOrString.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = maxUnavailable_.toBuilder();
}
maxUnavailable_ =
input.readMessage(
io.kubernetes.client.proto.IntStr.IntOrString.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxUnavailable_);
maxUnavailable_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
io.kubernetes.client.proto.IntStr.IntOrString.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = maxSurge_.toBuilder();
}
maxSurge_ =
input.readMessage(
io.kubernetes.client.proto.IntStr.IntOrString.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxSurge_);
maxSurge_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_RollingUpdateDeployment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_RollingUpdateDeployment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment.class,
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment.Builder.class);
}
private int bitField0_;
public static final int MAXUNAVAILABLE_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.IntStr.IntOrString maxUnavailable_;
/**
*
*
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
*/
public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getMaxUnavailableOrBuilder() {
return maxUnavailable_ == null
? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()
: maxUnavailable_;
}
public static final int MAXSURGE_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.IntStr.IntOrString maxSurge_;
/**
*
*
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
*/
public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getMaxSurgeOrBuilder() {
return maxSurge_ == null
? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()
: maxSurge_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMaxUnavailable());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getMaxSurge());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMaxUnavailable());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxSurge());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment other =
(io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment) obj;
boolean result = true;
result = result && (hasMaxUnavailable() == other.hasMaxUnavailable());
if (hasMaxUnavailable()) {
result = result && getMaxUnavailable().equals(other.getMaxUnavailable());
}
result = result && (hasMaxSurge() == other.hasMaxSurge());
if (hasMaxSurge()) {
result = result && getMaxSurge().equals(other.getMaxSurge());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMaxUnavailable()) {
hash = (37 * hash) + MAXUNAVAILABLE_FIELD_NUMBER;
hash = (53 * hash) + getMaxUnavailable().hashCode();
}
if (hasMaxSurge()) {
hash = (37 * hash) + MAXSURGE_FIELD_NUMBER;
hash = (53 * hash) + getMaxSurge().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Spec to control the desired behavior of rolling update.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.RollingUpdateDeployment}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.apps.v1beta2.RollingUpdateDeployment)
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeploymentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_RollingUpdateDeployment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_RollingUpdateDeployment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment.class,
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getMaxUnavailableFieldBuilder();
getMaxSurgeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (maxUnavailableBuilder_ == null) {
maxUnavailable_ = null;
} else {
maxUnavailableBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (maxSurgeBuilder_ == null) {
maxSurge_ = null;
} else {
maxSurgeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_RollingUpdateDeployment_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment build() {
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment buildPartial() {
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment result =
new io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (maxUnavailableBuilder_ == null) {
result.maxUnavailable_ = maxUnavailable_;
} else {
result.maxUnavailable_ = maxUnavailableBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (maxSurgeBuilder_ == null) {
result.maxSurge_ = maxSurge_;
} else {
result.maxSurge_ = maxSurgeBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment) {
return mergeFrom((io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment other) {
if (other
== io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment.getDefaultInstance())
return this;
if (other.hasMaxUnavailable()) {
mergeMaxUnavailable(other.getMaxUnavailable());
}
if (other.hasMaxSurge()) {
mergeMaxSurge(other.getMaxSurge());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.IntStr.IntOrString maxUnavailable_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.IntStr.IntOrString,
io.kubernetes.client.proto.IntStr.IntOrString.Builder,
io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder>
maxUnavailableBuilder_;
/**
*
*
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
* The maximum number of pods that can be unavailable during the update.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* Absolute number is calculated from percentage by rounding down.
* This can not be 0 if MaxSurge is 0.
* Defaults to 25%.
* Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
* immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
* can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
* that the total number of pods available at all times during the update is at
* least 70% of desired pods.
* +optional
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
* The maximum number of pods that can be scheduled above the desired number of
* pods.
* Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
* This can not be 0 if MaxUnavailable is 0.
* Absolute number is calculated from percentage by rounding up.
* Defaults to 25%.
* Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
* the rolling update starts, such that the total number of old and new pods do not exceed
* 130% of desired pods. Once old pods have been killed,
* new ReplicaSet can be scaled up further, ensuring that total number of pods running
* at any time during the update is at most 130% of desired pods.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.IntStr.IntOrString,
io.kubernetes.client.proto.IntStr.IntOrString.Builder,
io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder>
getMaxSurgeFieldBuilder() {
if (maxSurgeBuilder_ == null) {
maxSurgeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.IntStr.IntOrString,
io.kubernetes.client.proto.IntStr.IntOrString.Builder,
io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder>(
getMaxSurge(), getParentForChildren(), isClean());
maxSurge_ = null;
}
return maxSurgeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.RollingUpdateDeployment)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.RollingUpdateDeployment)
private static final io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment();
}
public static io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RollingUpdateDeployment parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RollingUpdateDeployment(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RollingUpdateStatefulSetStrategyOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.RollingUpdateStatefulSetStrategy)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Partition indicates the ordinal at which the StatefulSet should be
* partitioned.
* Default value is 0.
* +optional
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
* Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
public static final int SPEC_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1beta2Apps.ScaleSpec spec_;
/**
*
*
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.ScaleSpec spec = 2;
*/
public io.kubernetes.client.proto.V1beta2Apps.ScaleSpecOrBuilder getSpecOrBuilder() {
return spec_ == null
? io.kubernetes.client.proto.V1beta2Apps.ScaleSpec.getDefaultInstance()
: spec_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1beta2Apps.ScaleStatus status_;
/**
*
*
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.ScaleStatus status = 3;
*/
public io.kubernetes.client.proto.V1beta2Apps.ScaleStatusOrBuilder getStatusOrBuilder() {
return status_ == null
? io.kubernetes.client.proto.V1beta2Apps.ScaleStatus.getDefaultInstance()
: status_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getStatus());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.Scale)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.Scale other =
(io.kubernetes.client.proto.V1beta2Apps.Scale) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata().equals(other.getMetadata());
}
result = result && (hasSpec() == other.hasSpec());
if (hasSpec()) {
result = result && getSpec().equals(other.getSpec());
}
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus().equals(other.getStatus());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.Scale parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.Scale parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.Scale parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.Scale parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.Scale parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.Scale parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.Scale parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.Scale parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.Scale parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.Scale parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.Scale parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.Scale parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1beta2Apps.Scale prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Scale represents a scaling request for a resource.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.Scale}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.apps.v1beta2.Scale)
io.kubernetes.client.proto.V1beta2Apps.ScaleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_Scale_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_Scale_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.Scale.class,
io.kubernetes.client.proto.V1beta2Apps.Scale.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta2Apps.Scale.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getSpecFieldBuilder();
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (specBuilder_ == null) {
spec_ = null;
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (statusBuilder_ == null) {
status_ = null;
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_Scale_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.Scale getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta2Apps.Scale.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.Scale build() {
io.kubernetes.client.proto.V1beta2Apps.Scale result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.Scale buildPartial() {
io.kubernetes.client.proto.V1beta2Apps.Scale result =
new io.kubernetes.client.proto.V1beta2Apps.Scale(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (specBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = specBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta2Apps.Scale) {
return mergeFrom((io.kubernetes.client.proto.V1beta2Apps.Scale) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta2Apps.Scale other) {
if (other == io.kubernetes.client.proto.V1beta2Apps.Scale.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta2Apps.Scale parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta2Apps.Scale) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>
metadataBuilder_;
/**
*
*
*
* Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
* +optional
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
* defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
* +optional
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.ScaleStatus status = 3;
*/
public Builder setStatus(io.kubernetes.client.proto.V1beta2Apps.ScaleStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
* current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.ScaleStatus status = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.ScaleStatus,
io.kubernetes.client.proto.V1beta2Apps.ScaleStatus.Builder,
io.kubernetes.client.proto.V1beta2Apps.ScaleStatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta2Apps.ScaleStatus,
io.kubernetes.client.proto.V1beta2Apps.ScaleStatus.Builder,
io.kubernetes.client.proto.V1beta2Apps.ScaleStatusOrBuilder>(
getStatus(), getParentForChildren(), isClean());
status_ = null;
}
return statusBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.Scale)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.Scale)
private static final io.kubernetes.client.proto.V1beta2Apps.Scale DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.Scale();
}
public static io.kubernetes.client.proto.V1beta2Apps.Scale getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Scale parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Scale(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.Scale getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ScaleSpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.ScaleSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* desired number of instances for the scaled object.
* +optional
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
* label selector for pods that should match the replicas count. This is a serializated
* version of both map-based and more expressive set-based selectors. This is done to
* avoid introspection in the clients. The string will be in the same format as the
* query-param syntax. If the target type only supports map-based selectors, both this
* field and map-based selector field are populated.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* label selector for pods that should match the replicas count. This is a serializated
* version of both map-based and more expressive set-based selectors. This is done to
* avoid introspection in the clients. The string will be in the same format as the
* query-param syntax. If the target type only supports map-based selectors, both this
* field and map-based selector field are populated.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* label selector for pods that should match the replicas count. This is a serializated
* version of both map-based and more expressive set-based selectors. This is done to
* avoid introspection in the clients. The string will be in the same format as the
* query-param syntax. If the target type only supports map-based selectors, both this
* field and map-based selector field are populated.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* actual number of observed instances of the scaled object.
*
*
* optional int32 replicas = 1;
*/
public int getReplicas() {
return replicas_;
}
public static final int SELECTOR_FIELD_NUMBER = 2;
private static final class SelectorDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ScaleStatus_SelectorEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField selector_;
private com.google.protobuf.MapField internalGetSelector() {
if (selector_ == null) {
return com.google.protobuf.MapField.emptyMapField(SelectorDefaultEntryHolder.defaultEntry);
}
return selector_;
}
public int getSelectorCount() {
return internalGetSelector().getMap().size();
}
/**
*
*
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
*
* map<string, string> selector = 2;
*/
public boolean containsSelector(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
}
return internalGetSelector().getMap().containsKey(key);
}
/** Use {@link #getSelectorMap()} instead. */
@java.lang.Deprecated
public java.util.Map getSelector() {
return getSelectorMap();
}
/**
*
*
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
*
* map<string, string> selector = 2;
*/
public java.lang.String getSelectorOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
}
java.util.Map map = internalGetSelector().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int TARGETSELECTOR_FIELD_NUMBER = 3;
private volatile java.lang.Object targetSelector_;
/**
*
*
*
* label selector for pods that should match the replicas count. This is a serializated
* version of both map-based and more expressive set-based selectors. This is done to
* avoid introspection in the clients. The string will be in the same format as the
* query-param syntax. If the target type only supports map-based selectors, both this
* field and map-based selector field are populated.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* label selector for pods that should match the replicas count. This is a serializated
* version of both map-based and more expressive set-based selectors. This is done to
* avoid introspection in the clients. The string will be in the same format as the
* query-param syntax. If the target type only supports map-based selectors, both this
* field and map-based selector field are populated.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* label selector for pods that should match the replicas count. This is a serializated
* version of both map-based and more expressive set-based selectors. This is done to
* avoid introspection in the clients. The string will be in the same format as the
* query-param syntax. If the target type only supports map-based selectors, both this
* field and map-based selector field are populated.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
*
* optional string targetSelector = 3;
*/
public com.google.protobuf.ByteString getTargetSelectorBytes() {
java.lang.Object ref = targetSelector_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
targetSelector_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, replicas_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetSelector(), SelectorDefaultEntryHolder.defaultEntry, 2);
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetSelector_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, replicas_);
}
for (java.util.Map.Entry entry :
internalGetSelector().getMap().entrySet()) {
com.google.protobuf.MapEntry selector__ =
SelectorDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, selector__);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetSelector_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.ScaleStatus)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.ScaleStatus other =
(io.kubernetes.client.proto.V1beta2Apps.ScaleStatus) obj;
boolean result = true;
result = result && (hasReplicas() == other.hasReplicas());
if (hasReplicas()) {
result = result && (getReplicas() == other.getReplicas());
}
result = result && internalGetSelector().equals(other.internalGetSelector());
result = result && (hasTargetSelector() == other.hasTargetSelector());
if (hasTargetSelector()) {
result = result && getTargetSelector().equals(other.getTargetSelector());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasReplicas()) {
hash = (37 * hash) + REPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getReplicas();
}
if (!internalGetSelector().getMap().isEmpty()) {
hash = (37 * hash) + SELECTOR_FIELD_NUMBER;
hash = (53 * hash) + internalGetSelector().hashCode();
}
if (hasTargetSelector()) {
hash = (37 * hash) + TARGETSELECTOR_FIELD_NUMBER;
hash = (53 * hash) + getTargetSelector().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.ScaleStatus parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.ScaleStatus parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ScaleStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.ScaleStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ScaleStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.ScaleStatus parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ScaleStatus parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.ScaleStatus parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ScaleStatus parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.ScaleStatus parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.ScaleStatus parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.ScaleStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1beta2Apps.ScaleStatus prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* ScaleStatus represents the current status of a scale subresource.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.ScaleStatus}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.apps.v1beta2.ScaleStatus)
io.kubernetes.client.proto.V1beta2Apps.ScaleStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ScaleStatus_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(int number) {
switch (number) {
case 2:
return internalGetSelector();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
switch (number) {
case 2:
return internalGetMutableSelector();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ScaleStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.ScaleStatus.class,
io.kubernetes.client.proto.V1beta2Apps.ScaleStatus.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta2Apps.ScaleStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
replicas_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableSelector().clear();
targetSelector_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_ScaleStatus_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ScaleStatus getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta2Apps.ScaleStatus.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ScaleStatus build() {
io.kubernetes.client.proto.V1beta2Apps.ScaleStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ScaleStatus buildPartial() {
io.kubernetes.client.proto.V1beta2Apps.ScaleStatus result =
new io.kubernetes.client.proto.V1beta2Apps.ScaleStatus(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.replicas_ = replicas_;
result.selector_ = internalGetSelector();
result.selector_.makeImmutable();
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.targetSelector_ = targetSelector_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta2Apps.ScaleStatus) {
return mergeFrom((io.kubernetes.client.proto.V1beta2Apps.ScaleStatus) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta2Apps.ScaleStatus other) {
if (other == io.kubernetes.client.proto.V1beta2Apps.ScaleStatus.getDefaultInstance())
return this;
if (other.hasReplicas()) {
setReplicas(other.getReplicas());
}
internalGetMutableSelector().mergeFrom(other.internalGetSelector());
if (other.hasTargetSelector()) {
bitField0_ |= 0x00000004;
targetSelector_ = other.targetSelector_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta2Apps.ScaleStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1beta2Apps.ScaleStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int replicas_;
/**
*
*
*
* actual number of observed instances of the scaled object.
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
*
* map<string, string> selector = 2;
*/
public boolean containsSelector(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
}
return internalGetSelector().getMap().containsKey(key);
}
/** Use {@link #getSelectorMap()} instead. */
@java.lang.Deprecated
public java.util.Map getSelector() {
return getSelectorMap();
}
/**
*
*
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
*
* map<string, string> selector = 2;
*/
public java.lang.String getSelectorOrThrow(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
}
java.util.Map map = internalGetSelector().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearSelector() {
internalGetMutableSelector().getMutableMap().clear();
return this;
}
/**
*
*
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
*
* map<string, string> selector = 2;
*/
public Builder removeSelector(java.lang.String key) {
if (key == null) {
throw new java.lang.NullPointerException();
}
internalGetMutableSelector().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableSelector() {
return internalGetMutableSelector().getMutableMap();
}
/**
*
*
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
*
* map<string, string> selector = 2;
*/
public Builder putSelector(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new java.lang.NullPointerException();
}
if (value == null) {
throw new java.lang.NullPointerException();
}
internalGetMutableSelector().getMutableMap().put(key, value);
return this;
}
/**
*
*
*
* label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
* +optional
* +mapType=atomic
*
* label selector for pods that should match the replicas count. This is a serializated
* version of both map-based and more expressive set-based selectors. This is done to
* avoid introspection in the clients. The string will be in the same format as the
* query-param syntax. If the target type only supports map-based selectors, both this
* field and map-based selector field are populated.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* label selector for pods that should match the replicas count. This is a serializated
* version of both map-based and more expressive set-based selectors. This is done to
* avoid introspection in the clients. The string will be in the same format as the
* query-param syntax. If the target type only supports map-based selectors, both this
* field and map-based selector field are populated.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* label selector for pods that should match the replicas count. This is a serializated
* version of both map-based and more expressive set-based selectors. This is done to
* avoid introspection in the clients. The string will be in the same format as the
* query-param syntax. If the target type only supports map-based selectors, both this
* field and map-based selector field are populated.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* label selector for pods that should match the replicas count. This is a serializated
* version of both map-based and more expressive set-based selectors. This is done to
* avoid introspection in the clients. The string will be in the same format as the
* query-param syntax. If the target type only supports map-based selectors, both this
* field and map-based selector field are populated.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* label selector for pods that should match the replicas count. This is a serializated
* version of both map-based and more expressive set-based selectors. This is done to
* avoid introspection in the clients. The string will be in the same format as the
* query-param syntax. If the target type only supports map-based selectors, both this
* field and map-based selector field are populated.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* label selector for pods that should match the replicas count. This is a serializated
* version of both map-based and more expressive set-based selectors. This is done to
* avoid introspection in the clients. The string will be in the same format as the
* query-param syntax. If the target type only supports map-based selectors, both this
* field and map-based selector field are populated.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
*
* optional string targetSelector = 3;
*/
public Builder setTargetSelectorBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
targetSelector_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.ScaleStatus)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.ScaleStatus)
private static final io.kubernetes.client.proto.V1beta2Apps.ScaleStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.ScaleStatus();
}
public static io.kubernetes.client.proto.V1beta2Apps.ScaleStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScaleStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ScaleStatus(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.ScaleStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StatefulSetOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.StatefulSet)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* DEPRECATED - This group version of StatefulSet is deprecated by apps/v1/StatefulSet. See the release notes for
* more information.
* StatefulSet represents a set of pods with consistent identities.
* Identities are defined as:
* - Network: A single stable DNS and hostname.
* - Storage: As many VolumeClaims as requested.
* The StatefulSet guarantees that a given network identity will always
* map to the same storage identity.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.StatefulSet}
*/
public static final class StatefulSet extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.apps.v1beta2.StatefulSet)
StatefulSetOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatefulSet.newBuilder() to construct.
private StatefulSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatefulSet() {}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private StatefulSet(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ =
input.readMessage(
io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = spec_.toBuilder();
}
spec_ =
input.readMessage(
io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26:
{
io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = status_.toBuilder();
}
status_ =
input.readMessage(
io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_StatefulSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_StatefulSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.StatefulSet.class,
io.kubernetes.client.proto.V1beta2Apps.StatefulSet.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
/**
*
*
*
* Status is the current status of Pods in this StatefulSet. This data
* may be out of date by some window of time.
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.StatefulSetStatus status = 3;
*/
public io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatusOrBuilder getStatusOrBuilder() {
return status_ == null
? io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus.getDefaultInstance()
: status_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getStatus());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.StatefulSet)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.StatefulSet other =
(io.kubernetes.client.proto.V1beta2Apps.StatefulSet) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata().equals(other.getMetadata());
}
result = result && (hasSpec() == other.hasSpec());
if (hasSpec()) {
result = result && getSpec().equals(other.getSpec());
}
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus().equals(other.getStatus());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSet parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSet parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSet parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSet parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSet parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSet parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSet parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSet parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSet parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1beta2Apps.StatefulSet prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* DEPRECATED - This group version of StatefulSet is deprecated by apps/v1/StatefulSet. See the release notes for
* more information.
* StatefulSet represents a set of pods with consistent identities.
* Identities are defined as:
* - Network: A single stable DNS and hostname.
* - Storage: As many VolumeClaims as requested.
* The StatefulSet guarantees that a given network identity will always
* map to the same storage identity.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.StatefulSet}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.apps.v1beta2.StatefulSet)
io.kubernetes.client.proto.V1beta2Apps.StatefulSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_StatefulSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_StatefulSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.StatefulSet.class,
io.kubernetes.client.proto.V1beta2Apps.StatefulSet.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta2Apps.StatefulSet.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getSpecFieldBuilder();
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (specBuilder_ == null) {
spec_ = null;
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (statusBuilder_ == null) {
status_ = null;
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_StatefulSet_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.StatefulSet getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta2Apps.StatefulSet.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.StatefulSet build() {
io.kubernetes.client.proto.V1beta2Apps.StatefulSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.StatefulSet buildPartial() {
io.kubernetes.client.proto.V1beta2Apps.StatefulSet result =
new io.kubernetes.client.proto.V1beta2Apps.StatefulSet(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (specBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = specBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta2Apps.StatefulSet) {
return mergeFrom((io.kubernetes.client.proto.V1beta2Apps.StatefulSet) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta2Apps.StatefulSet other) {
if (other == io.kubernetes.client.proto.V1beta2Apps.StatefulSet.getDefaultInstance())
return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta2Apps.StatefulSet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1beta2Apps.StatefulSet) 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_;
/**
*
*
*
* replicas is the desired number of replicas of the given Template.
* These are replicas in the sense that they are instantiations of the
* same Template, but individual replicas also have a consistent identity.
* If unspecified, defaults to 1.
* TODO: Consider a rename of this field.
* +optional
*
* replicas is the desired number of replicas of the given Template.
* These are replicas in the sense that they are instantiations of the
* same Template, but individual replicas also have a consistent identity.
* If unspecified, defaults to 1.
* TODO: Consider a rename of this field.
* +optional
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* serviceName is the name of the service that governs this StatefulSet.
* This service must exist before the StatefulSet, and is responsible for
* the network identity of the set. Pods get DNS/hostnames that follow the
* pattern: pod-specific-string.serviceName.default.svc.cluster.local
* where "pod-specific-string" is managed by the StatefulSet controller.
*
* serviceName is the name of the service that governs this StatefulSet.
* This service must exist before the StatefulSet, and is responsible for
* the network identity of the set. Pods get DNS/hostnames that follow the
* pattern: pod-specific-string.serviceName.default.svc.cluster.local
* where "pod-specific-string" is managed by the StatefulSet controller.
*
* serviceName is the name of the service that governs this StatefulSet.
* This service must exist before the StatefulSet, and is responsible for
* the network identity of the set. Pods get DNS/hostnames that follow the
* pattern: pod-specific-string.serviceName.default.svc.cluster.local
* where "pod-specific-string" is managed by the StatefulSet controller.
*
* podManagementPolicy controls how pods are created during initial scale up,
* when replacing pods on nodes, or when scaling down. The default policy is
* `OrderedReady`, where pods are created in increasing order (pod-0, then
* pod-1, etc) and the controller will wait until each pod is ready before
* continuing. When scaling down, the pods are removed in the opposite order.
* The alternative policy is `Parallel` which will create pods in parallel
* to match the desired scale without waiting, and on scale down will delete
* all pods at once.
* +optional
*
* podManagementPolicy controls how pods are created during initial scale up,
* when replacing pods on nodes, or when scaling down. The default policy is
* `OrderedReady`, where pods are created in increasing order (pod-0, then
* pod-1, etc) and the controller will wait until each pod is ready before
* continuing. When scaling down, the pods are removed in the opposite order.
* The alternative policy is `Parallel` which will create pods in parallel
* to match the desired scale without waiting, and on scale down will delete
* all pods at once.
* +optional
*
* podManagementPolicy controls how pods are created during initial scale up,
* when replacing pods on nodes, or when scaling down. The default policy is
* `OrderedReady`, where pods are created in increasing order (pod-0, then
* pod-1, etc) and the controller will wait until each pod is ready before
* continuing. When scaling down, the pods are removed in the opposite order.
* The alternative policy is `Parallel` which will create pods in parallel
* to match the desired scale without waiting, and on scale down will delete
* all pods at once.
* +optional
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
* revisionHistoryLimit is the maximum number of revisions that will
* be maintained in the StatefulSet's revision history. The revision history
* consists of all revisions not represented by a currently applied
* StatefulSetSpec version. The default value is 10.
*
* revisionHistoryLimit is the maximum number of revisions that will
* be maintained in the StatefulSet's revision history. The revision history
* consists of all revisions not represented by a currently applied
* StatefulSetSpec version. The default value is 10.
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.
* +optional
*
* A StatefulSetSpec is the specification of a StatefulSet.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.StatefulSetSpec}
*/
public static final class StatefulSetSpec extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.apps.v1beta2.StatefulSetSpec)
StatefulSetSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatefulSetSpec.newBuilder() to construct.
private StatefulSetSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatefulSetSpec() {
replicas_ = 0;
volumeClaimTemplates_ = java.util.Collections.emptyList();
serviceName_ = "";
podManagementPolicy_ = "";
revisionHistoryLimit_ = 0;
minReadySeconds_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private StatefulSetSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
bitField0_ |= 0x00000001;
replicas_ = input.readInt32();
break;
}
case 18:
{
io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = selector_.toBuilder();
}
selector_ =
input.readMessage(
io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(selector_);
selector_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26:
{
io.kubernetes.client.proto.V1.PodTemplateSpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = template_.toBuilder();
}
template_ =
input.readMessage(
io.kubernetes.client.proto.V1.PodTemplateSpec.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(template_);
template_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34:
{
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
volumeClaimTemplates_ =
new java.util.ArrayList<
io.kubernetes.client.proto.V1.PersistentVolumeClaim>();
mutable_bitField0_ |= 0x00000008;
}
volumeClaimTemplates_.add(
input.readMessage(
io.kubernetes.client.proto.V1.PersistentVolumeClaim.PARSER,
extensionRegistry));
break;
}
case 42:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
serviceName_ = bs;
break;
}
case 50:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
podManagementPolicy_ = bs;
break;
}
case 58:
{
io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy.Builder
subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = updateStrategy_.toBuilder();
}
updateStrategy_ =
input.readMessage(
io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateStrategy_);
updateStrategy_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 64:
{
bitField0_ |= 0x00000040;
revisionHistoryLimit_ = input.readInt32();
break;
}
case 72:
{
bitField0_ |= 0x00000080;
minReadySeconds_ = input.readInt32();
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
volumeClaimTemplates_ = java.util.Collections.unmodifiableList(volumeClaimTemplates_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_StatefulSetSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_StatefulSetSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec.class,
io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec.Builder.class);
}
private int bitField0_;
public static final int REPLICAS_FIELD_NUMBER = 1;
private int replicas_;
/**
*
*
*
* replicas is the desired number of replicas of the given Template.
* These are replicas in the sense that they are instantiations of the
* same Template, but individual replicas also have a consistent identity.
* If unspecified, defaults to 1.
* TODO: Consider a rename of this field.
* +optional
*
* replicas is the desired number of replicas of the given Template.
* These are replicas in the sense that they are instantiations of the
* same Template, but individual replicas also have a consistent identity.
* If unspecified, defaults to 1.
* TODO: Consider a rename of this field.
* +optional
*
*
* optional int32 replicas = 1;
*/
public int getReplicas() {
return replicas_;
}
public static final int SELECTOR_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.Meta.LabelSelector selector_;
/**
*
*
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
*/
public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuilder() {
return selector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: selector_;
}
public static final int TEMPLATE_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1.PodTemplateSpec template_;
/**
*
*
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
*
* optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
*/
public io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuilder() {
return template_ == null
? io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance()
: template_;
}
public static final int VOLUMECLAIMTEMPLATES_FIELD_NUMBER = 4;
private java.util.List
volumeClaimTemplates_;
/**
*
*
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
*/
public int getVolumeClaimTemplatesCount() {
return volumeClaimTemplates_.size();
}
/**
*
*
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
*/
public io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder
getVolumeClaimTemplatesOrBuilder(int index) {
return volumeClaimTemplates_.get(index);
}
public static final int SERVICENAME_FIELD_NUMBER = 5;
private volatile java.lang.Object serviceName_;
/**
*
*
*
* serviceName is the name of the service that governs this StatefulSet.
* This service must exist before the StatefulSet, and is responsible for
* the network identity of the set. Pods get DNS/hostnames that follow the
* pattern: pod-specific-string.serviceName.default.svc.cluster.local
* where "pod-specific-string" is managed by the StatefulSet controller.
*
* serviceName is the name of the service that governs this StatefulSet.
* This service must exist before the StatefulSet, and is responsible for
* the network identity of the set. Pods get DNS/hostnames that follow the
* pattern: pod-specific-string.serviceName.default.svc.cluster.local
* where "pod-specific-string" is managed by the StatefulSet controller.
*
* serviceName is the name of the service that governs this StatefulSet.
* This service must exist before the StatefulSet, and is responsible for
* the network identity of the set. Pods get DNS/hostnames that follow the
* pattern: pod-specific-string.serviceName.default.svc.cluster.local
* where "pod-specific-string" is managed by the StatefulSet controller.
*
*
* optional string serviceName = 5;
*/
public com.google.protobuf.ByteString getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PODMANAGEMENTPOLICY_FIELD_NUMBER = 6;
private volatile java.lang.Object podManagementPolicy_;
/**
*
*
*
* podManagementPolicy controls how pods are created during initial scale up,
* when replacing pods on nodes, or when scaling down. The default policy is
* `OrderedReady`, where pods are created in increasing order (pod-0, then
* pod-1, etc) and the controller will wait until each pod is ready before
* continuing. When scaling down, the pods are removed in the opposite order.
* The alternative policy is `Parallel` which will create pods in parallel
* to match the desired scale without waiting, and on scale down will delete
* all pods at once.
* +optional
*
* podManagementPolicy controls how pods are created during initial scale up,
* when replacing pods on nodes, or when scaling down. The default policy is
* `OrderedReady`, where pods are created in increasing order (pod-0, then
* pod-1, etc) and the controller will wait until each pod is ready before
* continuing. When scaling down, the pods are removed in the opposite order.
* The alternative policy is `Parallel` which will create pods in parallel
* to match the desired scale without waiting, and on scale down will delete
* all pods at once.
* +optional
*
* podManagementPolicy controls how pods are created during initial scale up,
* when replacing pods on nodes, or when scaling down. The default policy is
* `OrderedReady`, where pods are created in increasing order (pod-0, then
* pod-1, etc) and the controller will wait until each pod is ready before
* continuing. When scaling down, the pods are removed in the opposite order.
* The alternative policy is `Parallel` which will create pods in parallel
* to match the desired scale without waiting, and on scale down will delete
* all pods at once.
* +optional
*
*
* optional string podManagementPolicy = 6;
*/
public com.google.protobuf.ByteString getPodManagementPolicyBytes() {
java.lang.Object ref = podManagementPolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
podManagementPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UPDATESTRATEGY_FIELD_NUMBER = 7;
private io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy updateStrategy_;
/**
*
*
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
*
* optional .k8s.io.api.apps.v1beta2.StatefulSetUpdateStrategy updateStrategy = 7;
*/
public io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategyOrBuilder
getUpdateStrategyOrBuilder() {
return updateStrategy_ == null
? io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy.getDefaultInstance()
: updateStrategy_;
}
public static final int REVISIONHISTORYLIMIT_FIELD_NUMBER = 8;
private int revisionHistoryLimit_;
/**
*
*
*
* revisionHistoryLimit is the maximum number of revisions that will
* be maintained in the StatefulSet's revision history. The revision history
* consists of all revisions not represented by a currently applied
* StatefulSetSpec version. The default value is 10.
*
* revisionHistoryLimit is the maximum number of revisions that will
* be maintained in the StatefulSet's revision history. The revision history
* consists of all revisions not represented by a currently applied
* StatefulSetSpec version. The default value is 10.
*
*
* optional int32 revisionHistoryLimit = 8;
*/
public int getRevisionHistoryLimit() {
return revisionHistoryLimit_;
}
public static final int MINREADYSECONDS_FIELD_NUMBER = 9;
private int minReadySeconds_;
/**
*
*
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.
* +optional
*
*
* optional int32 minReadySeconds = 9;
*/
public int getMinReadySeconds() {
return minReadySeconds_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, replicas_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSelector());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getTemplate());
}
for (int i = 0; i < volumeClaimTemplates_.size(); i++) {
output.writeMessage(4, volumeClaimTemplates_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceName_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, podManagementPolicy_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(7, getUpdateStrategy());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt32(8, revisionHistoryLimit_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeInt32(9, minReadySeconds_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, replicas_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSelector());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTemplate());
}
for (int i = 0; i < volumeClaimTemplates_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
4, volumeClaimTemplates_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceName_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, podManagementPolicy_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateStrategy());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, revisionHistoryLimit_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, minReadySeconds_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec other =
(io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec) obj;
boolean result = true;
result = result && (hasReplicas() == other.hasReplicas());
if (hasReplicas()) {
result = result && (getReplicas() == other.getReplicas());
}
result = result && (hasSelector() == other.hasSelector());
if (hasSelector()) {
result = result && getSelector().equals(other.getSelector());
}
result = result && (hasTemplate() == other.hasTemplate());
if (hasTemplate()) {
result = result && getTemplate().equals(other.getTemplate());
}
result = result && getVolumeClaimTemplatesList().equals(other.getVolumeClaimTemplatesList());
result = result && (hasServiceName() == other.hasServiceName());
if (hasServiceName()) {
result = result && getServiceName().equals(other.getServiceName());
}
result = result && (hasPodManagementPolicy() == other.hasPodManagementPolicy());
if (hasPodManagementPolicy()) {
result = result && getPodManagementPolicy().equals(other.getPodManagementPolicy());
}
result = result && (hasUpdateStrategy() == other.hasUpdateStrategy());
if (hasUpdateStrategy()) {
result = result && getUpdateStrategy().equals(other.getUpdateStrategy());
}
result = result && (hasRevisionHistoryLimit() == other.hasRevisionHistoryLimit());
if (hasRevisionHistoryLimit()) {
result = result && (getRevisionHistoryLimit() == other.getRevisionHistoryLimit());
}
result = result && (hasMinReadySeconds() == other.hasMinReadySeconds());
if (hasMinReadySeconds()) {
result = result && (getMinReadySeconds() == other.getMinReadySeconds());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasReplicas()) {
hash = (37 * hash) + REPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getReplicas();
}
if (hasSelector()) {
hash = (37 * hash) + SELECTOR_FIELD_NUMBER;
hash = (53 * hash) + getSelector().hashCode();
}
if (hasTemplate()) {
hash = (37 * hash) + TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getTemplate().hashCode();
}
if (getVolumeClaimTemplatesCount() > 0) {
hash = (37 * hash) + VOLUMECLAIMTEMPLATES_FIELD_NUMBER;
hash = (53 * hash) + getVolumeClaimTemplatesList().hashCode();
}
if (hasServiceName()) {
hash = (37 * hash) + SERVICENAME_FIELD_NUMBER;
hash = (53 * hash) + getServiceName().hashCode();
}
if (hasPodManagementPolicy()) {
hash = (37 * hash) + PODMANAGEMENTPOLICY_FIELD_NUMBER;
hash = (53 * hash) + getPodManagementPolicy().hashCode();
}
if (hasUpdateStrategy()) {
hash = (37 * hash) + UPDATESTRATEGY_FIELD_NUMBER;
hash = (53 * hash) + getUpdateStrategy().hashCode();
}
if (hasRevisionHistoryLimit()) {
hash = (37 * hash) + REVISIONHISTORYLIMIT_FIELD_NUMBER;
hash = (53 * hash) + getRevisionHistoryLimit();
}
if (hasMinReadySeconds()) {
hash = (37 * hash) + MINREADYSECONDS_FIELD_NUMBER;
hash = (53 * hash) + getMinReadySeconds();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new 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 StatefulSetSpec is the specification of a StatefulSet.
*
* replicas is the desired number of replicas of the given Template.
* These are replicas in the sense that they are instantiations of the
* same Template, but individual replicas also have a consistent identity.
* If unspecified, defaults to 1.
* TODO: Consider a rename of this field.
* +optional
*
* replicas is the desired number of replicas of the given Template.
* These are replicas in the sense that they are instantiations of the
* same Template, but individual replicas also have a consistent identity.
* If unspecified, defaults to 1.
* TODO: Consider a rename of this field.
* +optional
*
*
* optional int32 replicas = 1;
*/
public int getReplicas() {
return replicas_;
}
/**
*
*
*
* replicas is the desired number of replicas of the given Template.
* These are replicas in the sense that they are instantiations of the
* same Template, but individual replicas also have a consistent identity.
* If unspecified, defaults to 1.
* TODO: Consider a rename of this field.
* +optional
*
* replicas is the desired number of replicas of the given Template.
* These are replicas in the sense that they are instantiations of the
* same Template, but individual replicas also have a consistent identity.
* If unspecified, defaults to 1.
* TODO: Consider a rename of this field.
* +optional
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* selector is a label query over pods that should match the replica count.
* It must match the pod template's labels.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
* template is the object that describes the pod that will be created if
* insufficient replicas are detected. Each pod stamped out by the StatefulSet
* will fulfill this Template, but have a unique identity from the rest
* of the StatefulSet.
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
*/
public int getVolumeClaimTemplatesCount() {
if (volumeClaimTemplatesBuilder_ == null) {
return volumeClaimTemplates_.size();
} else {
return volumeClaimTemplatesBuilder_.getCount();
}
}
/**
*
*
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
*/
public Builder setVolumeClaimTemplates(
int index, io.kubernetes.client.proto.V1.PersistentVolumeClaim value) {
if (volumeClaimTemplatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVolumeClaimTemplatesIsMutable();
volumeClaimTemplates_.set(index, value);
onChanged();
} else {
volumeClaimTemplatesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
*
* repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
*/
public Builder addVolumeClaimTemplates(
int index, io.kubernetes.client.proto.V1.PersistentVolumeClaim value) {
if (volumeClaimTemplatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVolumeClaimTemplatesIsMutable();
volumeClaimTemplates_.add(index, value);
onChanged();
} else {
volumeClaimTemplatesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* volumeClaimTemplates is a list of claims that pods are allowed to reference.
* The StatefulSet controller is responsible for mapping network identities to
* claims in a way that maintains the identity of a pod. Every claim in
* this list must have at least one matching (by name) volumeMount in one
* container in the template. A claim in this list takes precedence over
* any volumes in the template, with the same name.
* TODO: Define the behavior if a claim already exists with the same name.
* +optional
*
* serviceName is the name of the service that governs this StatefulSet.
* This service must exist before the StatefulSet, and is responsible for
* the network identity of the set. Pods get DNS/hostnames that follow the
* pattern: pod-specific-string.serviceName.default.svc.cluster.local
* where "pod-specific-string" is managed by the StatefulSet controller.
*
* serviceName is the name of the service that governs this StatefulSet.
* This service must exist before the StatefulSet, and is responsible for
* the network identity of the set. Pods get DNS/hostnames that follow the
* pattern: pod-specific-string.serviceName.default.svc.cluster.local
* where "pod-specific-string" is managed by the StatefulSet controller.
*
* serviceName is the name of the service that governs this StatefulSet.
* This service must exist before the StatefulSet, and is responsible for
* the network identity of the set. Pods get DNS/hostnames that follow the
* pattern: pod-specific-string.serviceName.default.svc.cluster.local
* where "pod-specific-string" is managed by the StatefulSet controller.
*
* serviceName is the name of the service that governs this StatefulSet.
* This service must exist before the StatefulSet, and is responsible for
* the network identity of the set. Pods get DNS/hostnames that follow the
* pattern: pod-specific-string.serviceName.default.svc.cluster.local
* where "pod-specific-string" is managed by the StatefulSet controller.
*
* serviceName is the name of the service that governs this StatefulSet.
* This service must exist before the StatefulSet, and is responsible for
* the network identity of the set. Pods get DNS/hostnames that follow the
* pattern: pod-specific-string.serviceName.default.svc.cluster.local
* where "pod-specific-string" is managed by the StatefulSet controller.
*
* serviceName is the name of the service that governs this StatefulSet.
* This service must exist before the StatefulSet, and is responsible for
* the network identity of the set. Pods get DNS/hostnames that follow the
* pattern: pod-specific-string.serviceName.default.svc.cluster.local
* where "pod-specific-string" is managed by the StatefulSet controller.
*
* podManagementPolicy controls how pods are created during initial scale up,
* when replacing pods on nodes, or when scaling down. The default policy is
* `OrderedReady`, where pods are created in increasing order (pod-0, then
* pod-1, etc) and the controller will wait until each pod is ready before
* continuing. When scaling down, the pods are removed in the opposite order.
* The alternative policy is `Parallel` which will create pods in parallel
* to match the desired scale without waiting, and on scale down will delete
* all pods at once.
* +optional
*
* podManagementPolicy controls how pods are created during initial scale up,
* when replacing pods on nodes, or when scaling down. The default policy is
* `OrderedReady`, where pods are created in increasing order (pod-0, then
* pod-1, etc) and the controller will wait until each pod is ready before
* continuing. When scaling down, the pods are removed in the opposite order.
* The alternative policy is `Parallel` which will create pods in parallel
* to match the desired scale without waiting, and on scale down will delete
* all pods at once.
* +optional
*
* podManagementPolicy controls how pods are created during initial scale up,
* when replacing pods on nodes, or when scaling down. The default policy is
* `OrderedReady`, where pods are created in increasing order (pod-0, then
* pod-1, etc) and the controller will wait until each pod is ready before
* continuing. When scaling down, the pods are removed in the opposite order.
* The alternative policy is `Parallel` which will create pods in parallel
* to match the desired scale without waiting, and on scale down will delete
* all pods at once.
* +optional
*
* podManagementPolicy controls how pods are created during initial scale up,
* when replacing pods on nodes, or when scaling down. The default policy is
* `OrderedReady`, where pods are created in increasing order (pod-0, then
* pod-1, etc) and the controller will wait until each pod is ready before
* continuing. When scaling down, the pods are removed in the opposite order.
* The alternative policy is `Parallel` which will create pods in parallel
* to match the desired scale without waiting, and on scale down will delete
* all pods at once.
* +optional
*
* podManagementPolicy controls how pods are created during initial scale up,
* when replacing pods on nodes, or when scaling down. The default policy is
* `OrderedReady`, where pods are created in increasing order (pod-0, then
* pod-1, etc) and the controller will wait until each pod is ready before
* continuing. When scaling down, the pods are removed in the opposite order.
* The alternative policy is `Parallel` which will create pods in parallel
* to match the desired scale without waiting, and on scale down will delete
* all pods at once.
* +optional
*
* podManagementPolicy controls how pods are created during initial scale up,
* when replacing pods on nodes, or when scaling down. The default policy is
* `OrderedReady`, where pods are created in increasing order (pod-0, then
* pod-1, etc) and the controller will wait until each pod is ready before
* continuing. When scaling down, the pods are removed in the opposite order.
* The alternative policy is `Parallel` which will create pods in parallel
* to match the desired scale without waiting, and on scale down will delete
* all pods at once.
* +optional
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
* updateStrategy indicates the StatefulSetUpdateStrategy that will be
* employed to update Pods in the StatefulSet when a revision is made to
* Template.
*
* revisionHistoryLimit is the maximum number of revisions that will
* be maintained in the StatefulSet's revision history. The revision history
* consists of all revisions not represented by a currently applied
* StatefulSetSpec version. The default value is 10.
*
* revisionHistoryLimit is the maximum number of revisions that will
* be maintained in the StatefulSet's revision history. The revision history
* consists of all revisions not represented by a currently applied
* StatefulSetSpec version. The default value is 10.
*
*
* optional int32 revisionHistoryLimit = 8;
*/
public int getRevisionHistoryLimit() {
return revisionHistoryLimit_;
}
/**
*
*
*
* revisionHistoryLimit is the maximum number of revisions that will
* be maintained in the StatefulSet's revision history. The revision history
* consists of all revisions not represented by a currently applied
* StatefulSetSpec version. The default value is 10.
*
* revisionHistoryLimit is the maximum number of revisions that will
* be maintained in the StatefulSet's revision history. The revision history
* consists of all revisions not represented by a currently applied
* StatefulSetSpec version. The default value is 10.
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.
* +optional
*
*
* optional int32 minReadySeconds = 9;
*/
public int getMinReadySeconds() {
return minReadySeconds_;
}
/**
*
*
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.
* +optional
*
*
* optional int32 minReadySeconds = 9;
*/
public Builder clearMinReadySeconds() {
bitField0_ = (bitField0_ & ~0x00000100);
minReadySeconds_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.StatefulSetSpec)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.StatefulSetSpec)
private static final io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec();
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StatefulSetSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StatefulSetSpec(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.StatefulSetSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StatefulSetStatusOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.StatefulSetStatus)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the
* StatefulSet's generation, which is updated on mutation by the API Server.
* +optional
*
* observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the
* StatefulSet's generation, which is updated on mutation by the API Server.
* +optional
*
* collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller
* uses this field as a collision avoidance mechanism when it needs to create the name for the
* newest ControllerRevision.
* +optional
*
* collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller
* uses this field as a collision avoidance mechanism when it needs to create the name for the
* newest ControllerRevision.
* +optional
*
* Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
* This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
*
* Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
* This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
*
* StatefulSetStatus represents the current state of a StatefulSet.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.StatefulSetStatus}
*/
public static final class StatefulSetStatus extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.apps.v1beta2.StatefulSetStatus)
StatefulSetStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatefulSetStatus.newBuilder() to construct.
private StatefulSetStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatefulSetStatus() {
observedGeneration_ = 0L;
replicas_ = 0;
readyReplicas_ = 0;
currentReplicas_ = 0;
updatedReplicas_ = 0;
currentRevision_ = "";
updateRevision_ = "";
collisionCount_ = 0;
conditions_ = java.util.Collections.emptyList();
availableReplicas_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private StatefulSetStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
bitField0_ |= 0x00000001;
observedGeneration_ = input.readInt64();
break;
}
case 16:
{
bitField0_ |= 0x00000002;
replicas_ = input.readInt32();
break;
}
case 24:
{
bitField0_ |= 0x00000004;
readyReplicas_ = input.readInt32();
break;
}
case 32:
{
bitField0_ |= 0x00000008;
currentReplicas_ = input.readInt32();
break;
}
case 40:
{
bitField0_ |= 0x00000010;
updatedReplicas_ = input.readInt32();
break;
}
case 50:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
currentRevision_ = bs;
break;
}
case 58:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
updateRevision_ = bs;
break;
}
case 72:
{
bitField0_ |= 0x00000080;
collisionCount_ = input.readInt32();
break;
}
case 82:
{
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
conditions_ =
new java.util.ArrayList<
io.kubernetes.client.proto.V1beta2Apps.StatefulSetCondition>();
mutable_bitField0_ |= 0x00000100;
}
conditions_.add(
input.readMessage(
io.kubernetes.client.proto.V1beta2Apps.StatefulSetCondition.PARSER,
extensionRegistry));
break;
}
case 88:
{
bitField0_ |= 0x00000100;
availableReplicas_ = input.readInt32();
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
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.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_StatefulSetStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_StatefulSetStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus.class,
io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus.Builder.class);
}
private int bitField0_;
public static final int OBSERVEDGENERATION_FIELD_NUMBER = 1;
private long observedGeneration_;
/**
*
*
*
* observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the
* StatefulSet's generation, which is updated on mutation by the API Server.
* +optional
*
* observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the
* StatefulSet's generation, which is updated on mutation by the API Server.
* +optional
*
*
* optional int64 observedGeneration = 1;
*/
public long getObservedGeneration() {
return observedGeneration_;
}
public static final int REPLICAS_FIELD_NUMBER = 2;
private int replicas_;
/**
*
*
*
* replicas is the number of Pods created by the StatefulSet controller.
*
* replicas is the number of Pods created by the StatefulSet controller.
*
*
* optional int32 replicas = 2;
*/
public int getReplicas() {
return replicas_;
}
public static final int READYREPLICAS_FIELD_NUMBER = 3;
private int readyReplicas_;
/**
*
*
*
* readyReplicas is the number of pods created by this StatefulSet controller with a Ready Condition.
*
* readyReplicas is the number of pods created by this StatefulSet controller with a Ready Condition.
*
*
* optional int32 readyReplicas = 3;
*/
public int getReadyReplicas() {
return readyReplicas_;
}
public static final int CURRENTREPLICAS_FIELD_NUMBER = 4;
private int currentReplicas_;
/**
*
*
*
* currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version
* indicated by currentRevision.
*
* currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version
* indicated by currentRevision.
*
*
* optional int32 currentReplicas = 4;
*/
public int getCurrentReplicas() {
return currentReplicas_;
}
public static final int UPDATEDREPLICAS_FIELD_NUMBER = 5;
private int updatedReplicas_;
/**
*
*
*
* updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version
* indicated by updateRevision.
*
* updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence
* [replicas-updatedReplicas,replicas)
*
*
* optional string updateRevision = 7;
*/
public com.google.protobuf.ByteString getUpdateRevisionBytes() {
java.lang.Object ref = updateRevision_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
updateRevision_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COLLISIONCOUNT_FIELD_NUMBER = 9;
private int collisionCount_;
/**
*
*
*
* collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller
* uses this field as a collision avoidance mechanism when it needs to create the name for the
* newest ControllerRevision.
* +optional
*
* collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller
* uses this field as a collision avoidance mechanism when it needs to create the name for the
* newest ControllerRevision.
* +optional
*
*
* optional int32 collisionCount = 9;
*/
public int getCollisionCount() {
return collisionCount_;
}
public static final int CONDITIONS_FIELD_NUMBER = 10;
private java.util.List conditions_;
/**
*
*
*
* Represents the latest available observations of a statefulset's current state.
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
* Represents the latest available observations of a statefulset's current state.
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.apps.v1beta2.StatefulSetCondition conditions = 10;
*/
public io.kubernetes.client.proto.V1beta2Apps.StatefulSetConditionOrBuilder
getConditionsOrBuilder(int index) {
return conditions_.get(index);
}
public static final int AVAILABLEREPLICAS_FIELD_NUMBER = 11;
private int availableReplicas_;
/**
*
*
*
* Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
* This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
*
* Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
* This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
*
*
* optional int32 availableReplicas = 11;
*/
public int getAvailableReplicas() {
return availableReplicas_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, observedGeneration_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, replicas_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, readyReplicas_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, currentReplicas_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, updatedReplicas_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, currentRevision_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, updateRevision_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeInt32(9, collisionCount_);
}
for (int i = 0; i < conditions_.size(); i++) {
output.writeMessage(10, conditions_.get(i));
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt32(11, availableReplicas_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, observedGeneration_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, replicas_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, readyReplicas_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, currentReplicas_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, updatedReplicas_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, currentRevision_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, updateRevision_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, collisionCount_);
}
for (int i = 0; i < conditions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, conditions_.get(i));
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, availableReplicas_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus other =
(io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus) obj;
boolean result = true;
result = result && (hasObservedGeneration() == other.hasObservedGeneration());
if (hasObservedGeneration()) {
result = result && (getObservedGeneration() == other.getObservedGeneration());
}
result = result && (hasReplicas() == other.hasReplicas());
if (hasReplicas()) {
result = result && (getReplicas() == other.getReplicas());
}
result = result && (hasReadyReplicas() == other.hasReadyReplicas());
if (hasReadyReplicas()) {
result = result && (getReadyReplicas() == other.getReadyReplicas());
}
result = result && (hasCurrentReplicas() == other.hasCurrentReplicas());
if (hasCurrentReplicas()) {
result = result && (getCurrentReplicas() == other.getCurrentReplicas());
}
result = result && (hasUpdatedReplicas() == other.hasUpdatedReplicas());
if (hasUpdatedReplicas()) {
result = result && (getUpdatedReplicas() == other.getUpdatedReplicas());
}
result = result && (hasCurrentRevision() == other.hasCurrentRevision());
if (hasCurrentRevision()) {
result = result && getCurrentRevision().equals(other.getCurrentRevision());
}
result = result && (hasUpdateRevision() == other.hasUpdateRevision());
if (hasUpdateRevision()) {
result = result && getUpdateRevision().equals(other.getUpdateRevision());
}
result = result && (hasCollisionCount() == other.hasCollisionCount());
if (hasCollisionCount()) {
result = result && (getCollisionCount() == other.getCollisionCount());
}
result = result && getConditionsList().equals(other.getConditionsList());
result = result && (hasAvailableReplicas() == other.hasAvailableReplicas());
if (hasAvailableReplicas()) {
result = result && (getAvailableReplicas() == other.getAvailableReplicas());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasObservedGeneration()) {
hash = (37 * hash) + OBSERVEDGENERATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObservedGeneration());
}
if (hasReplicas()) {
hash = (37 * hash) + REPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getReplicas();
}
if (hasReadyReplicas()) {
hash = (37 * hash) + READYREPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getReadyReplicas();
}
if (hasCurrentReplicas()) {
hash = (37 * hash) + CURRENTREPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getCurrentReplicas();
}
if (hasUpdatedReplicas()) {
hash = (37 * hash) + UPDATEDREPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedReplicas();
}
if (hasCurrentRevision()) {
hash = (37 * hash) + CURRENTREVISION_FIELD_NUMBER;
hash = (53 * hash) + getCurrentRevision().hashCode();
}
if (hasUpdateRevision()) {
hash = (37 * hash) + UPDATEREVISION_FIELD_NUMBER;
hash = (53 * hash) + getUpdateRevision().hashCode();
}
if (hasCollisionCount()) {
hash = (37 * hash) + COLLISIONCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getCollisionCount();
}
if (getConditionsCount() > 0) {
hash = (37 * hash) + CONDITIONS_FIELD_NUMBER;
hash = (53 * hash) + getConditionsList().hashCode();
}
if (hasAvailableReplicas()) {
hash = (37 * hash) + AVAILABLEREPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getAvailableReplicas();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* StatefulSetStatus represents the current state of a StatefulSet.
*
* observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the
* StatefulSet's generation, which is updated on mutation by the API Server.
* +optional
*
* observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the
* StatefulSet's generation, which is updated on mutation by the API Server.
* +optional
*
*
* optional int64 observedGeneration = 1;
*/
public long getObservedGeneration() {
return observedGeneration_;
}
/**
*
*
*
* observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the
* StatefulSet's generation, which is updated on mutation by the API Server.
* +optional
*
* observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the
* StatefulSet's generation, which is updated on mutation by the API Server.
* +optional
*
* updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence
* [replicas-updatedReplicas,replicas)
*
*
* optional string updateRevision = 7;
*/
public Builder setUpdateRevisionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
updateRevision_ = value;
onChanged();
return this;
}
private int collisionCount_;
/**
*
*
*
* collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller
* uses this field as a collision avoidance mechanism when it needs to create the name for the
* newest ControllerRevision.
* +optional
*
* collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller
* uses this field as a collision avoidance mechanism when it needs to create the name for the
* newest ControllerRevision.
* +optional
*
*
* optional int32 collisionCount = 9;
*/
public int getCollisionCount() {
return collisionCount_;
}
/**
*
*
*
* collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller
* uses this field as a collision avoidance mechanism when it needs to create the name for the
* newest ControllerRevision.
* +optional
*
* collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller
* uses this field as a collision avoidance mechanism when it needs to create the name for the
* newest ControllerRevision.
* +optional
*
* Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
* This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
*
* Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
* This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
*
*
* optional int32 availableReplicas = 11;
*/
public int getAvailableReplicas() {
return availableReplicas_;
}
/**
*
*
*
* Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
* This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
*
* Total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
* This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.
*
*
* optional int32 availableReplicas = 11;
*/
public Builder clearAvailableReplicas() {
bitField0_ = (bitField0_ & ~0x00000200);
availableReplicas_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.apps.v1beta2.StatefulSetStatus)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.apps.v1beta2.StatefulSetStatus)
private static final io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus();
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StatefulSetStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StatefulSetStatus(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.StatefulSetStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StatefulSetUpdateStrategyOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.apps.v1beta2.StatefulSetUpdateStrategy)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Type indicates the type of the StatefulSetUpdateStrategy.
* Default is RollingUpdate.
* +optional
*
* StatefulSetUpdateStrategy indicates the strategy that the StatefulSet
* controller will use to perform updates. It includes any additional parameters
* necessary to perform the update for the indicated strategy.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.StatefulSetUpdateStrategy}
*/
public static final class StatefulSetUpdateStrategy extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.apps.v1beta2.StatefulSetUpdateStrategy)
StatefulSetUpdateStrategyOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatefulSetUpdateStrategy.newBuilder() to construct.
private StatefulSetUpdateStrategy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatefulSetUpdateStrategy() {
type_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private StatefulSetUpdateStrategy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
type_ = bs;
break;
}
case 18:
{
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateStatefulSetStrategy.Builder
subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = rollingUpdate_.toBuilder();
}
rollingUpdate_ =
input.readMessage(
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateStatefulSetStrategy
.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rollingUpdate_);
rollingUpdate_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_StatefulSetUpdateStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_StatefulSetUpdateStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy.class,
io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object type_;
/**
*
*
*
* Type indicates the type of the StatefulSetUpdateStrategy.
* Default is RollingUpdate.
* +optional
*
* RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
* +optional
*
*
* optional .k8s.io.api.apps.v1beta2.RollingUpdateStatefulSetStrategy rollingUpdate = 2;
*
*/
public io.kubernetes.client.proto.V1beta2Apps.RollingUpdateStatefulSetStrategyOrBuilder
getRollingUpdateOrBuilder() {
return rollingUpdate_ == null
? io.kubernetes.client.proto.V1beta2Apps.RollingUpdateStatefulSetStrategy
.getDefaultInstance()
: rollingUpdate_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getRollingUpdate());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRollingUpdate());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy other =
(io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy) obj;
boolean result = true;
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && getType().equals(other.getType());
}
result = result && (hasRollingUpdate() == other.hasRollingUpdate());
if (hasRollingUpdate()) {
result = result && getRollingUpdate().equals(other.getRollingUpdate());
}
result = result && unknownFields.equals(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 (hasRollingUpdate()) {
hash = (37 * hash) + ROLLINGUPDATE_FIELD_NUMBER;
hash = (53 * hash) + getRollingUpdate().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* StatefulSetUpdateStrategy indicates the strategy that the StatefulSet
* controller will use to perform updates. It includes any additional parameters
* necessary to perform the update for the indicated strategy.
*
*
* Protobuf type {@code k8s.io.api.apps.v1beta2.StatefulSetUpdateStrategy}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.apps.v1beta2.StatefulSetUpdateStrategy)
io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_StatefulSetUpdateStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_StatefulSetUpdateStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy.class,
io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy.Builder.class);
}
// Construct using
// io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getRollingUpdateFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (rollingUpdateBuilder_ == null) {
rollingUpdate_ = null;
} else {
rollingUpdateBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1beta2Apps
.internal_static_k8s_io_api_apps_v1beta2_StatefulSetUpdateStrategy_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy
.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy build() {
io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy buildPartial() {
io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy result =
new io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy(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;
}
if (rollingUpdateBuilder_ == null) {
result.rollingUpdate_ = rollingUpdate_;
} else {
result.rollingUpdate_ = rollingUpdateBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy) {
return mergeFrom(
(io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy other) {
if (other
== io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy
.getDefaultInstance()) return this;
if (other.hasType()) {
bitField0_ |= 0x00000001;
type_ = other.type_;
onChanged();
}
if (other.hasRollingUpdate()) {
mergeRollingUpdate(other.getRollingUpdate());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1beta2Apps.StatefulSetUpdateStrategy)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object type_ = "";
/**
*
*
*
* Type indicates the type of the StatefulSetUpdateStrategy.
* Default is RollingUpdate.
* +optional
*