yandex.cloud.api.k8s.v1.Version Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/k8s/v1/version.proto
package yandex.cloud.api.k8s.v1;
public final class Version {
private Version() {}
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 VersionInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.k8s.v1.VersionInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* Current Kubernetes version, format: major.minor (e.g. 1.15).
*
*
* string current_version = 1;
* @return The currentVersion.
*/
java.lang.String getCurrentVersion();
/**
*
* Current Kubernetes version, format: major.minor (e.g. 1.15).
*
*
* string current_version = 1;
* @return The bytes for currentVersion.
*/
com.google.protobuf.ByteString
getCurrentVersionBytes();
/**
*
* Newer revisions may include Kubernetes patches (e.g 1.15.1 -> 1.15.2) as well
* as some internal component updates - new features or bug fixes in platform specific
* components either on the master or nodes.
*
*
* bool new_revision_available = 2;
* @return The newRevisionAvailable.
*/
boolean getNewRevisionAvailable();
/**
*
* Description of the changes to be applied when updating to the latest
* revision. Empty if new_revision_available is false.
*
*
* string new_revision_summary = 3;
* @return The newRevisionSummary.
*/
java.lang.String getNewRevisionSummary();
/**
*
* Description of the changes to be applied when updating to the latest
* revision. Empty if new_revision_available is false.
*
*
* string new_revision_summary = 3;
* @return The bytes for newRevisionSummary.
*/
com.google.protobuf.ByteString
getNewRevisionSummaryBytes();
/**
*
* The current version is on the deprecation schedule, component (master or node group)
* should be upgraded.
*
*
* bool version_deprecated = 4;
* @return The versionDeprecated.
*/
boolean getVersionDeprecated();
}
/**
* Protobuf type {@code yandex.cloud.k8s.v1.VersionInfo}
*/
public static final class VersionInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.k8s.v1.VersionInfo)
VersionInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use VersionInfo.newBuilder() to construct.
private VersionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VersionInfo() {
currentVersion_ = "";
newRevisionSummary_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VersionInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private VersionInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.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: {
java.lang.String s = input.readStringRequireUtf8();
currentVersion_ = s;
break;
}
case 16: {
newRevisionAvailable_ = input.readBool();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
newRevisionSummary_ = s;
break;
}
case 32: {
versionDeprecated_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.k8s.v1.Version.internal_static_yandex_cloud_k8s_v1_VersionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.Version.internal_static_yandex_cloud_k8s_v1_VersionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.Version.VersionInfo.class, yandex.cloud.api.k8s.v1.Version.VersionInfo.Builder.class);
}
public static final int CURRENT_VERSION_FIELD_NUMBER = 1;
private volatile java.lang.Object currentVersion_;
/**
*
* Current Kubernetes version, format: major.minor (e.g. 1.15).
*
*
* string current_version = 1;
* @return The currentVersion.
*/
@java.lang.Override
public java.lang.String getCurrentVersion() {
java.lang.Object ref = currentVersion_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
currentVersion_ = s;
return s;
}
}
/**
*
* Current Kubernetes version, format: major.minor (e.g. 1.15).
*
*
* string current_version = 1;
* @return The bytes for currentVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCurrentVersionBytes() {
java.lang.Object ref = currentVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
currentVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NEW_REVISION_AVAILABLE_FIELD_NUMBER = 2;
private boolean newRevisionAvailable_;
/**
*
* Newer revisions may include Kubernetes patches (e.g 1.15.1 -> 1.15.2) as well
* as some internal component updates - new features or bug fixes in platform specific
* components either on the master or nodes.
*
*
* bool new_revision_available = 2;
* @return The newRevisionAvailable.
*/
@java.lang.Override
public boolean getNewRevisionAvailable() {
return newRevisionAvailable_;
}
public static final int NEW_REVISION_SUMMARY_FIELD_NUMBER = 3;
private volatile java.lang.Object newRevisionSummary_;
/**
*
* Description of the changes to be applied when updating to the latest
* revision. Empty if new_revision_available is false.
*
*
* string new_revision_summary = 3;
* @return The newRevisionSummary.
*/
@java.lang.Override
public java.lang.String getNewRevisionSummary() {
java.lang.Object ref = newRevisionSummary_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
newRevisionSummary_ = s;
return s;
}
}
/**
*
* Description of the changes to be applied when updating to the latest
* revision. Empty if new_revision_available is false.
*
*
* string new_revision_summary = 3;
* @return The bytes for newRevisionSummary.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNewRevisionSummaryBytes() {
java.lang.Object ref = newRevisionSummary_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
newRevisionSummary_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_DEPRECATED_FIELD_NUMBER = 4;
private boolean versionDeprecated_;
/**
*
* The current version is on the deprecation schedule, component (master or node group)
* should be upgraded.
*
*
* bool version_deprecated = 4;
* @return The versionDeprecated.
*/
@java.lang.Override
public boolean getVersionDeprecated() {
return versionDeprecated_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currentVersion_);
}
if (newRevisionAvailable_ != false) {
output.writeBool(2, newRevisionAvailable_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newRevisionSummary_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, newRevisionSummary_);
}
if (versionDeprecated_ != false) {
output.writeBool(4, versionDeprecated_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currentVersion_);
}
if (newRevisionAvailable_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, newRevisionAvailable_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newRevisionSummary_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, newRevisionSummary_);
}
if (versionDeprecated_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, versionDeprecated_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.k8s.v1.Version.VersionInfo)) {
return super.equals(obj);
}
yandex.cloud.api.k8s.v1.Version.VersionInfo other = (yandex.cloud.api.k8s.v1.Version.VersionInfo) obj;
if (!getCurrentVersion()
.equals(other.getCurrentVersion())) return false;
if (getNewRevisionAvailable()
!= other.getNewRevisionAvailable()) return false;
if (!getNewRevisionSummary()
.equals(other.getNewRevisionSummary())) return false;
if (getVersionDeprecated()
!= other.getVersionDeprecated()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CURRENT_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getCurrentVersion().hashCode();
hash = (37 * hash) + NEW_REVISION_AVAILABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNewRevisionAvailable());
hash = (37 * hash) + NEW_REVISION_SUMMARY_FIELD_NUMBER;
hash = (53 * hash) + getNewRevisionSummary().hashCode();
hash = (37 * hash) + VERSION_DEPRECATED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getVersionDeprecated());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.k8s.v1.Version.VersionInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.Version.VersionInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.k8s.v1.Version.VersionInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.Version.VersionInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.k8s.v1.Version.VersionInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.Version.VersionInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.k8s.v1.Version.VersionInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.Version.VersionInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.k8s.v1.Version.VersionInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.Version.VersionInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.k8s.v1.Version.VersionInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.Version.VersionInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.k8s.v1.Version.VersionInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.k8s.v1.VersionInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.k8s.v1.VersionInfo)
yandex.cloud.api.k8s.v1.Version.VersionInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.k8s.v1.Version.internal_static_yandex_cloud_k8s_v1_VersionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.Version.internal_static_yandex_cloud_k8s_v1_VersionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.Version.VersionInfo.class, yandex.cloud.api.k8s.v1.Version.VersionInfo.Builder.class);
}
// Construct using yandex.cloud.api.k8s.v1.Version.VersionInfo.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();
currentVersion_ = "";
newRevisionAvailable_ = false;
newRevisionSummary_ = "";
versionDeprecated_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.k8s.v1.Version.internal_static_yandex_cloud_k8s_v1_VersionInfo_descriptor;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.Version.VersionInfo getDefaultInstanceForType() {
return yandex.cloud.api.k8s.v1.Version.VersionInfo.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.Version.VersionInfo build() {
yandex.cloud.api.k8s.v1.Version.VersionInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.Version.VersionInfo buildPartial() {
yandex.cloud.api.k8s.v1.Version.VersionInfo result = new yandex.cloud.api.k8s.v1.Version.VersionInfo(this);
result.currentVersion_ = currentVersion_;
result.newRevisionAvailable_ = newRevisionAvailable_;
result.newRevisionSummary_ = newRevisionSummary_;
result.versionDeprecated_ = versionDeprecated_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.k8s.v1.Version.VersionInfo) {
return mergeFrom((yandex.cloud.api.k8s.v1.Version.VersionInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.k8s.v1.Version.VersionInfo other) {
if (other == yandex.cloud.api.k8s.v1.Version.VersionInfo.getDefaultInstance()) return this;
if (!other.getCurrentVersion().isEmpty()) {
currentVersion_ = other.currentVersion_;
onChanged();
}
if (other.getNewRevisionAvailable() != false) {
setNewRevisionAvailable(other.getNewRevisionAvailable());
}
if (!other.getNewRevisionSummary().isEmpty()) {
newRevisionSummary_ = other.newRevisionSummary_;
onChanged();
}
if (other.getVersionDeprecated() != false) {
setVersionDeprecated(other.getVersionDeprecated());
}
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 {
yandex.cloud.api.k8s.v1.Version.VersionInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.k8s.v1.Version.VersionInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object currentVersion_ = "";
/**
*
* Current Kubernetes version, format: major.minor (e.g. 1.15).
*
*
* string current_version = 1;
* @return The currentVersion.
*/
public java.lang.String getCurrentVersion() {
java.lang.Object ref = currentVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
currentVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Current Kubernetes version, format: major.minor (e.g. 1.15).
*
*
* string current_version = 1;
* @return The bytes for currentVersion.
*/
public com.google.protobuf.ByteString
getCurrentVersionBytes() {
java.lang.Object ref = currentVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
currentVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Current Kubernetes version, format: major.minor (e.g. 1.15).
*
*
* string current_version = 1;
* @param value The currentVersion to set.
* @return This builder for chaining.
*/
public Builder setCurrentVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
currentVersion_ = value;
onChanged();
return this;
}
/**
*
* Current Kubernetes version, format: major.minor (e.g. 1.15).
*
*
* string current_version = 1;
* @return This builder for chaining.
*/
public Builder clearCurrentVersion() {
currentVersion_ = getDefaultInstance().getCurrentVersion();
onChanged();
return this;
}
/**
*
* Current Kubernetes version, format: major.minor (e.g. 1.15).
*
*
* string current_version = 1;
* @param value The bytes for currentVersion to set.
* @return This builder for chaining.
*/
public Builder setCurrentVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
currentVersion_ = value;
onChanged();
return this;
}
private boolean newRevisionAvailable_ ;
/**
*
* Newer revisions may include Kubernetes patches (e.g 1.15.1 -> 1.15.2) as well
* as some internal component updates - new features or bug fixes in platform specific
* components either on the master or nodes.
*
*
* bool new_revision_available = 2;
* @return The newRevisionAvailable.
*/
@java.lang.Override
public boolean getNewRevisionAvailable() {
return newRevisionAvailable_;
}
/**
*
* Newer revisions may include Kubernetes patches (e.g 1.15.1 -> 1.15.2) as well
* as some internal component updates - new features or bug fixes in platform specific
* components either on the master or nodes.
*
*
* bool new_revision_available = 2;
* @param value The newRevisionAvailable to set.
* @return This builder for chaining.
*/
public Builder setNewRevisionAvailable(boolean value) {
newRevisionAvailable_ = value;
onChanged();
return this;
}
/**
*
* Newer revisions may include Kubernetes patches (e.g 1.15.1 -> 1.15.2) as well
* as some internal component updates - new features or bug fixes in platform specific
* components either on the master or nodes.
*
*
* bool new_revision_available = 2;
* @return This builder for chaining.
*/
public Builder clearNewRevisionAvailable() {
newRevisionAvailable_ = false;
onChanged();
return this;
}
private java.lang.Object newRevisionSummary_ = "";
/**
*
* Description of the changes to be applied when updating to the latest
* revision. Empty if new_revision_available is false.
*
*
* string new_revision_summary = 3;
* @return The newRevisionSummary.
*/
public java.lang.String getNewRevisionSummary() {
java.lang.Object ref = newRevisionSummary_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
newRevisionSummary_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the changes to be applied when updating to the latest
* revision. Empty if new_revision_available is false.
*
*
* string new_revision_summary = 3;
* @return The bytes for newRevisionSummary.
*/
public com.google.protobuf.ByteString
getNewRevisionSummaryBytes() {
java.lang.Object ref = newRevisionSummary_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
newRevisionSummary_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the changes to be applied when updating to the latest
* revision. Empty if new_revision_available is false.
*
*
* string new_revision_summary = 3;
* @param value The newRevisionSummary to set.
* @return This builder for chaining.
*/
public Builder setNewRevisionSummary(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
newRevisionSummary_ = value;
onChanged();
return this;
}
/**
*
* Description of the changes to be applied when updating to the latest
* revision. Empty if new_revision_available is false.
*
*
* string new_revision_summary = 3;
* @return This builder for chaining.
*/
public Builder clearNewRevisionSummary() {
newRevisionSummary_ = getDefaultInstance().getNewRevisionSummary();
onChanged();
return this;
}
/**
*
* Description of the changes to be applied when updating to the latest
* revision. Empty if new_revision_available is false.
*
*
* string new_revision_summary = 3;
* @param value The bytes for newRevisionSummary to set.
* @return This builder for chaining.
*/
public Builder setNewRevisionSummaryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
newRevisionSummary_ = value;
onChanged();
return this;
}
private boolean versionDeprecated_ ;
/**
*
* The current version is on the deprecation schedule, component (master or node group)
* should be upgraded.
*
*
* bool version_deprecated = 4;
* @return The versionDeprecated.
*/
@java.lang.Override
public boolean getVersionDeprecated() {
return versionDeprecated_;
}
/**
*
* The current version is on the deprecation schedule, component (master or node group)
* should be upgraded.
*
*
* bool version_deprecated = 4;
* @param value The versionDeprecated to set.
* @return This builder for chaining.
*/
public Builder setVersionDeprecated(boolean value) {
versionDeprecated_ = value;
onChanged();
return this;
}
/**
*
* The current version is on the deprecation schedule, component (master or node group)
* should be upgraded.
*
*
* bool version_deprecated = 4;
* @return This builder for chaining.
*/
public Builder clearVersionDeprecated() {
versionDeprecated_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.k8s.v1.VersionInfo)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.k8s.v1.VersionInfo)
private static final yandex.cloud.api.k8s.v1.Version.VersionInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.k8s.v1.Version.VersionInfo();
}
public static yandex.cloud.api.k8s.v1.Version.VersionInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VersionInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new VersionInfo(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 yandex.cloud.api.k8s.v1.Version.VersionInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateVersionSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.k8s.v1.UpdateVersionSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
* Request update to a newer version of Kubernetes (1.x -> 1.y).
*
*
* string version = 1;
* @return Whether the version field is set.
*/
boolean hasVersion();
/**
*
* Request update to a newer version of Kubernetes (1.x -> 1.y).
*
*
* string version = 1;
* @return The version.
*/
java.lang.String getVersion();
/**
*
* Request update to a newer version of Kubernetes (1.x -> 1.y).
*
*
* string version = 1;
* @return The bytes for version.
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
*
* Request update to the latest revision for the current version.
*
*
* bool latest_revision = 2;
* @return Whether the latestRevision field is set.
*/
boolean hasLatestRevision();
/**
*
* Request update to the latest revision for the current version.
*
*
* bool latest_revision = 2;
* @return The latestRevision.
*/
boolean getLatestRevision();
public yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec.SpecifierCase getSpecifierCase();
}
/**
* Protobuf type {@code yandex.cloud.k8s.v1.UpdateVersionSpec}
*/
public static final class UpdateVersionSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.k8s.v1.UpdateVersionSpec)
UpdateVersionSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateVersionSpec.newBuilder() to construct.
private UpdateVersionSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateVersionSpec() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateVersionSpec();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateVersionSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.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: {
java.lang.String s = input.readStringRequireUtf8();
specifierCase_ = 1;
specifier_ = s;
break;
}
case 16: {
specifier_ = input.readBool();
specifierCase_ = 2;
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 yandex.cloud.api.k8s.v1.Version.internal_static_yandex_cloud_k8s_v1_UpdateVersionSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.Version.internal_static_yandex_cloud_k8s_v1_UpdateVersionSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec.class, yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec.Builder.class);
}
private int specifierCase_ = 0;
private java.lang.Object specifier_;
public enum SpecifierCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
VERSION(1),
LATEST_REVISION(2),
SPECIFIER_NOT_SET(0);
private final int value;
private SpecifierCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SpecifierCase valueOf(int value) {
return forNumber(value);
}
public static SpecifierCase forNumber(int value) {
switch (value) {
case 1: return VERSION;
case 2: return LATEST_REVISION;
case 0: return SPECIFIER_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SpecifierCase
getSpecifierCase() {
return SpecifierCase.forNumber(
specifierCase_);
}
public static final int VERSION_FIELD_NUMBER = 1;
/**
*
* Request update to a newer version of Kubernetes (1.x -> 1.y).
*
*
* string version = 1;
* @return Whether the version field is set.
*/
public boolean hasVersion() {
return specifierCase_ == 1;
}
/**
*
* Request update to a newer version of Kubernetes (1.x -> 1.y).
*
*
* string version = 1;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = "";
if (specifierCase_ == 1) {
ref = specifier_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (specifierCase_ == 1) {
specifier_ = s;
}
return s;
}
}
/**
*
* Request update to a newer version of Kubernetes (1.x -> 1.y).
*
*
* string version = 1;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = "";
if (specifierCase_ == 1) {
ref = specifier_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (specifierCase_ == 1) {
specifier_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LATEST_REVISION_FIELD_NUMBER = 2;
/**
*
* Request update to the latest revision for the current version.
*
*
* bool latest_revision = 2;
* @return Whether the latestRevision field is set.
*/
@java.lang.Override
public boolean hasLatestRevision() {
return specifierCase_ == 2;
}
/**
*
* Request update to the latest revision for the current version.
*
*
* bool latest_revision = 2;
* @return The latestRevision.
*/
@java.lang.Override
public boolean getLatestRevision() {
if (specifierCase_ == 2) {
return (java.lang.Boolean) specifier_;
}
return false;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
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 (specifierCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, specifier_);
}
if (specifierCase_ == 2) {
output.writeBool(
2, (boolean)((java.lang.Boolean) specifier_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (specifierCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, specifier_);
}
if (specifierCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
2, (boolean)((java.lang.Boolean) specifier_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec)) {
return super.equals(obj);
}
yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec other = (yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec) obj;
if (!getSpecifierCase().equals(other.getSpecifierCase())) return false;
switch (specifierCase_) {
case 1:
if (!getVersion()
.equals(other.getVersion())) return false;
break;
case 2:
if (getLatestRevision()
!= other.getLatestRevision()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (specifierCase_) {
case 1:
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
break;
case 2:
hash = (37 * hash) + LATEST_REVISION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getLatestRevision());
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.k8s.v1.UpdateVersionSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.k8s.v1.UpdateVersionSpec)
yandex.cloud.api.k8s.v1.Version.UpdateVersionSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.k8s.v1.Version.internal_static_yandex_cloud_k8s_v1_UpdateVersionSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.Version.internal_static_yandex_cloud_k8s_v1_UpdateVersionSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec.class, yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec.Builder.class);
}
// Construct using yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec.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();
specifierCase_ = 0;
specifier_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.k8s.v1.Version.internal_static_yandex_cloud_k8s_v1_UpdateVersionSpec_descriptor;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec getDefaultInstanceForType() {
return yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec build() {
yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec buildPartial() {
yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec result = new yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec(this);
if (specifierCase_ == 1) {
result.specifier_ = specifier_;
}
if (specifierCase_ == 2) {
result.specifier_ = specifier_;
}
result.specifierCase_ = specifierCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec) {
return mergeFrom((yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec other) {
if (other == yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec.getDefaultInstance()) return this;
switch (other.getSpecifierCase()) {
case VERSION: {
specifierCase_ = 1;
specifier_ = other.specifier_;
onChanged();
break;
}
case LATEST_REVISION: {
setLatestRevision(other.getLatestRevision());
break;
}
case SPECIFIER_NOT_SET: {
break;
}
}
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 {
yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int specifierCase_ = 0;
private java.lang.Object specifier_;
public SpecifierCase
getSpecifierCase() {
return SpecifierCase.forNumber(
specifierCase_);
}
public Builder clearSpecifier() {
specifierCase_ = 0;
specifier_ = null;
onChanged();
return this;
}
/**
*
* Request update to a newer version of Kubernetes (1.x -> 1.y).
*
*
* string version = 1;
* @return Whether the version field is set.
*/
@java.lang.Override
public boolean hasVersion() {
return specifierCase_ == 1;
}
/**
*
* Request update to a newer version of Kubernetes (1.x -> 1.y).
*
*
* string version = 1;
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = "";
if (specifierCase_ == 1) {
ref = specifier_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (specifierCase_ == 1) {
specifier_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Request update to a newer version of Kubernetes (1.x -> 1.y).
*
*
* string version = 1;
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = "";
if (specifierCase_ == 1) {
ref = specifier_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (specifierCase_ == 1) {
specifier_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Request update to a newer version of Kubernetes (1.x -> 1.y).
*
*
* string version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
specifierCase_ = 1;
specifier_ = value;
onChanged();
return this;
}
/**
*
* Request update to a newer version of Kubernetes (1.x -> 1.y).
*
*
* string version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
if (specifierCase_ == 1) {
specifierCase_ = 0;
specifier_ = null;
onChanged();
}
return this;
}
/**
*
* Request update to a newer version of Kubernetes (1.x -> 1.y).
*
*
* string version = 1;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
specifierCase_ = 1;
specifier_ = value;
onChanged();
return this;
}
/**
*
* Request update to the latest revision for the current version.
*
*
* bool latest_revision = 2;
* @return Whether the latestRevision field is set.
*/
public boolean hasLatestRevision() {
return specifierCase_ == 2;
}
/**
*
* Request update to the latest revision for the current version.
*
*
* bool latest_revision = 2;
* @return The latestRevision.
*/
public boolean getLatestRevision() {
if (specifierCase_ == 2) {
return (java.lang.Boolean) specifier_;
}
return false;
}
/**
*
* Request update to the latest revision for the current version.
*
*
* bool latest_revision = 2;
* @param value The latestRevision to set.
* @return This builder for chaining.
*/
public Builder setLatestRevision(boolean value) {
specifierCase_ = 2;
specifier_ = value;
onChanged();
return this;
}
/**
*
* Request update to the latest revision for the current version.
*
*
* bool latest_revision = 2;
* @return This builder for chaining.
*/
public Builder clearLatestRevision() {
if (specifierCase_ == 2) {
specifierCase_ = 0;
specifier_ = null;
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:yandex.cloud.k8s.v1.UpdateVersionSpec)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.k8s.v1.UpdateVersionSpec)
private static final yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec();
}
public static yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateVersionSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateVersionSpec(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 yandex.cloud.api.k8s.v1.Version.UpdateVersionSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_k8s_v1_VersionInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_k8s_v1_VersionInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_k8s_v1_UpdateVersionSpec_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_k8s_v1_UpdateVersionSpec_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n!yandex/cloud/k8s/v1/version.proto\022\023yan" +
"dex.cloud.k8s.v1\032\035yandex/cloud/validatio" +
"n.proto\"\200\001\n\013VersionInfo\022\027\n\017current_versi" +
"on\030\001 \001(\t\022\036\n\026new_revision_available\030\002 \001(\010" +
"\022\034\n\024new_revision_summary\030\003 \001(\t\022\032\n\022versio" +
"n_deprecated\030\004 \001(\010\"T\n\021UpdateVersionSpec\022" +
"\021\n\007version\030\001 \001(\tH\000\022\031\n\017latest_revision\030\002 " +
"\001(\010H\000B\021\n\tspecifier\022\004\300\3011\001BV\n\027yandex.cloud" +
".api.k8s.v1Z;github.com/yandex-cloud/go-" +
"genproto/yandex/cloud/k8s/v1;k8sb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_k8s_v1_VersionInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_k8s_v1_VersionInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_k8s_v1_VersionInfo_descriptor,
new java.lang.String[] { "CurrentVersion", "NewRevisionAvailable", "NewRevisionSummary", "VersionDeprecated", });
internal_static_yandex_cloud_k8s_v1_UpdateVersionSpec_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_k8s_v1_UpdateVersionSpec_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_k8s_v1_UpdateVersionSpec_descriptor,
new java.lang.String[] { "Version", "LatestRevision", "Specifier", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(yandex.cloud.api.Validation.exactlyOne);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy