yandex.cloud.api.k8s.v1.NodeGroupOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/k8s/v1/node_group.proto
package yandex.cloud.api.k8s.v1;
public final class NodeGroupOuterClass {
private NodeGroupOuterClass() {}
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 NodeGroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.k8s.v1.NodeGroup)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the node group.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of the node group.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* ID of the cluster that the node group belongs to.
*
*
* string cluster_id = 2;
* @return The clusterId.
*/
java.lang.String getClusterId();
/**
*
* ID of the cluster that the node group belongs to.
*
*
* string cluster_id = 2;
* @return The bytes for clusterId.
*/
com.google.protobuf.ByteString
getClusterIdBytes();
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
boolean hasCreatedAt();
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
com.google.protobuf.Timestamp getCreatedAt();
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
/**
*
* Name of the node group.
* The name is unique within the folder.
*
*
* string name = 4;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the node group.
* The name is unique within the folder.
*
*
* string name = 4;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the node group. 0-256 characters long.
*
*
* string description = 5;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the node group. 0-256 characters long.
*
*
* string description = 5;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
int getLabelsCount();
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
java.util.Map
getLabelsMap();
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
/**
*
* Status of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroup.Status status = 7;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
*
* Status of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroup.Status status = 7;
* @return The status.
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.Status getStatus();
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
* @return Whether the nodeTemplate field is set.
*/
boolean hasNodeTemplate();
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
* @return The nodeTemplate.
*/
yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate getNodeTemplate();
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
*/
yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplateOrBuilder getNodeTemplateOrBuilder();
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
* @return Whether the scalePolicy field is set.
*/
boolean hasScalePolicy();
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
* @return The scalePolicy.
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy getScalePolicy();
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder();
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
* @return Whether the allocationPolicy field is set.
*/
boolean hasAllocationPolicy();
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
* @return The allocationPolicy.
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy getAllocationPolicy();
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicyOrBuilder getAllocationPolicyOrBuilder();
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
* @return Whether the deployPolicy field is set.
*/
boolean hasDeployPolicy();
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
* @return The deployPolicy.
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy getDeployPolicy();
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicyOrBuilder getDeployPolicyOrBuilder();
/**
*
* ID of the managed instance group associated with this node group.
*
*
* string instance_group_id = 11;
* @return The instanceGroupId.
*/
java.lang.String getInstanceGroupId();
/**
*
* ID of the managed instance group associated with this node group.
*
*
* string instance_group_id = 11;
* @return The bytes for instanceGroupId.
*/
com.google.protobuf.ByteString
getInstanceGroupIdBytes();
/**
*
* Version of Kubernetes components that runs on the nodes.
* Deprecated. Use version_info.current_version.
*
*
* string node_version = 12;
* @return The nodeVersion.
*/
java.lang.String getNodeVersion();
/**
*
* Version of Kubernetes components that runs on the nodes.
* Deprecated. Use version_info.current_version.
*
*
* string node_version = 12;
* @return The bytes for nodeVersion.
*/
com.google.protobuf.ByteString
getNodeVersionBytes();
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
* @return Whether the versionInfo field is set.
*/
boolean hasVersionInfo();
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
* @return The versionInfo.
*/
yandex.cloud.api.k8s.v1.Version.VersionInfo getVersionInfo();
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
*/
yandex.cloud.api.k8s.v1.Version.VersionInfoOrBuilder getVersionInfoOrBuilder();
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
* @return Whether the maintenancePolicy field is set.
*/
boolean hasMaintenancePolicy();
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
* @return The maintenancePolicy.
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy getMaintenancePolicy();
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder();
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @return A list containing the allowedUnsafeSysctls.
*/
java.util.List
getAllowedUnsafeSysctlsList();
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @return The count of allowedUnsafeSysctls.
*/
int getAllowedUnsafeSysctlsCount();
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @param index The index of the element to return.
* @return The allowedUnsafeSysctls at the given index.
*/
java.lang.String getAllowedUnsafeSysctls(int index);
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @param index The index of the value to return.
* @return The bytes of the allowedUnsafeSysctls at the given index.
*/
com.google.protobuf.ByteString
getAllowedUnsafeSysctlsBytes(int index);
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
java.util.List
getNodeTaintsList();
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
yandex.cloud.api.k8s.v1.NodeOuterClass.Taint getNodeTaints(int index);
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
int getNodeTaintsCount();
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
java.util.List extends yandex.cloud.api.k8s.v1.NodeOuterClass.TaintOrBuilder>
getNodeTaintsOrBuilderList();
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
yandex.cloud.api.k8s.v1.NodeOuterClass.TaintOrBuilder getNodeTaintsOrBuilder(
int index);
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
int getNodeLabelsCount();
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
boolean containsNodeLabels(
java.lang.String key);
/**
* Use {@link #getNodeLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getNodeLabels();
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
java.util.Map
getNodeLabelsMap();
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
java.lang.String getNodeLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
java.lang.String getNodeLabelsOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code yandex.cloud.k8s.v1.NodeGroup}
*/
public static final class NodeGroup extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.k8s.v1.NodeGroup)
NodeGroupOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeGroup.newBuilder() to construct.
private NodeGroup(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeGroup() {
id_ = "";
clusterId_ = "";
name_ = "";
description_ = "";
status_ = 0;
instanceGroupId_ = "";
nodeVersion_ = "";
allowedUnsafeSysctls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
nodeTaints_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeGroup();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeGroup(
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: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
clusterId_ = s;
break;
}
case 26: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (createdAt_ != null) {
subBuilder = createdAt_.toBuilder();
}
createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(createdAt_);
createdAt_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
}
case 56: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 66: {
yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate.Builder subBuilder = null;
if (nodeTemplate_ != null) {
subBuilder = nodeTemplate_.toBuilder();
}
nodeTemplate_ = input.readMessage(yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nodeTemplate_);
nodeTemplate_ = subBuilder.buildPartial();
}
break;
}
case 74: {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.Builder subBuilder = null;
if (scalePolicy_ != null) {
subBuilder = scalePolicy_.toBuilder();
}
scalePolicy_ = input.readMessage(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scalePolicy_);
scalePolicy_ = subBuilder.buildPartial();
}
break;
}
case 82: {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.Builder subBuilder = null;
if (allocationPolicy_ != null) {
subBuilder = allocationPolicy_.toBuilder();
}
allocationPolicy_ = input.readMessage(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(allocationPolicy_);
allocationPolicy_ = subBuilder.buildPartial();
}
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
instanceGroupId_ = s;
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
nodeVersion_ = s;
break;
}
case 106: {
yandex.cloud.api.k8s.v1.Version.VersionInfo.Builder subBuilder = null;
if (versionInfo_ != null) {
subBuilder = versionInfo_.toBuilder();
}
versionInfo_ = input.readMessage(yandex.cloud.api.k8s.v1.Version.VersionInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(versionInfo_);
versionInfo_ = subBuilder.buildPartial();
}
break;
}
case 114: {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.Builder subBuilder = null;
if (maintenancePolicy_ != null) {
subBuilder = maintenancePolicy_.toBuilder();
}
maintenancePolicy_ = input.readMessage(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maintenancePolicy_);
maintenancePolicy_ = subBuilder.buildPartial();
}
break;
}
case 122: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
allowedUnsafeSysctls_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
allowedUnsafeSysctls_.add(s);
break;
}
case 130: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
nodeTaints_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
nodeTaints_.add(
input.readMessage(yandex.cloud.api.k8s.v1.NodeOuterClass.Taint.parser(), extensionRegistry));
break;
}
case 138: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
nodeLabels_ = com.google.protobuf.MapField.newMapField(
NodeLabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000008;
}
com.google.protobuf.MapEntry
nodeLabels__ = input.readMessage(
NodeLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
nodeLabels_.getMutableMap().put(
nodeLabels__.getKey(), nodeLabels__.getValue());
break;
}
case 146: {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.Builder subBuilder = null;
if (deployPolicy_ != null) {
subBuilder = deployPolicy_.toBuilder();
}
deployPolicy_ = input.readMessage(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deployPolicy_);
deployPolicy_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) != 0)) {
allowedUnsafeSysctls_ = allowedUnsafeSysctls_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
nodeTaints_ = java.util.Collections.unmodifiableList(nodeTaints_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroup_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetLabels();
case 17:
return internalGetNodeLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.k8s.v1.NodeGroup.Status}
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATUS_UNSPECIFIED = 0;
*/
STATUS_UNSPECIFIED(0),
/**
*
* Node group is waiting for resources to be allocated.
*
*
* PROVISIONING = 1;
*/
PROVISIONING(1),
/**
*
* Node group is running.
*
*
* RUNNING = 2;
*/
RUNNING(2),
/**
*
* Node group is waiting for some work to be done, such as upgrading node software.
*
*
* RECONCILING = 3;
*/
RECONCILING(3),
/**
*
* Node group is being stopped.
*
*
* STOPPING = 4;
*/
STOPPING(4),
/**
*
* Node group stopped.
*
*
* STOPPED = 5;
*/
STOPPED(5),
/**
*
* Node group is being deleted.
*
*
* DELETING = 6;
*/
DELETING(6),
/**
*
* Node group is being started.
*
*
* STARTING = 7;
*/
STARTING(7),
UNRECOGNIZED(-1),
;
/**
* STATUS_UNSPECIFIED = 0;
*/
public static final int STATUS_UNSPECIFIED_VALUE = 0;
/**
*
* Node group is waiting for resources to be allocated.
*
*
* PROVISIONING = 1;
*/
public static final int PROVISIONING_VALUE = 1;
/**
*
* Node group is running.
*
*
* RUNNING = 2;
*/
public static final int RUNNING_VALUE = 2;
/**
*
* Node group is waiting for some work to be done, such as upgrading node software.
*
*
* RECONCILING = 3;
*/
public static final int RECONCILING_VALUE = 3;
/**
*
* Node group is being stopped.
*
*
* STOPPING = 4;
*/
public static final int STOPPING_VALUE = 4;
/**
*
* Node group stopped.
*
*
* STOPPED = 5;
*/
public static final int STOPPED_VALUE = 5;
/**
*
* Node group is being deleted.
*
*
* DELETING = 6;
*/
public static final int DELETING_VALUE = 6;
/**
*
* Node group is being started.
*
*
* STARTING = 7;
*/
public static final int STARTING_VALUE = 7;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Status valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Status forNumber(int value) {
switch (value) {
case 0: return STATUS_UNSPECIFIED;
case 1: return PROVISIONING;
case 2: return RUNNING;
case 3: return RECONCILING;
case 4: return STOPPING;
case 5: return STOPPED;
case 6: return DELETING;
case 7: return STARTING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Status> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Status findValueByNumber(int number) {
return Status.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.getDescriptor().getEnumTypes().get(0);
}
private static final Status[] VALUES = values();
public static Status valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Status(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.k8s.v1.NodeGroup.Status)
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of the node group.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* ID of the node group.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLUSTER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object clusterId_;
/**
*
* ID of the cluster that the node group belongs to.
*
*
* string cluster_id = 2;
* @return The clusterId.
*/
@java.lang.Override
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clusterId_ = s;
return s;
}
}
/**
*
* ID of the cluster that the node group belongs to.
*
*
* string cluster_id = 2;
* @return The bytes for clusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_AT_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object name_;
/**
*
* Name of the node group.
* The name is unique within the folder.
*
*
* string name = 4;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the node group.
* The name is unique within the folder.
*
*
* string name = 4;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 5;
private volatile java.lang.Object description_;
/**
*
* Description of the node group. 0-256 characters long.
*
*
* string description = 5;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* Description of the node group. 0-256 characters long.
*
*
* string description = 5;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABELS_FIELD_NUMBER = 6;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroup_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int STATUS_FIELD_NUMBER = 7;
private int status_;
/**
*
* Status of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroup.Status status = 7;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Status of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroup.Status status = 7;
* @return The status.
*/
@java.lang.Override public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.Status result = yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.Status.valueOf(status_);
return result == null ? yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.Status.UNRECOGNIZED : result;
}
public static final int NODE_TEMPLATE_FIELD_NUMBER = 8;
private yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate nodeTemplate_;
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
* @return Whether the nodeTemplate field is set.
*/
@java.lang.Override
public boolean hasNodeTemplate() {
return nodeTemplate_ != null;
}
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
* @return The nodeTemplate.
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate getNodeTemplate() {
return nodeTemplate_ == null ? yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate.getDefaultInstance() : nodeTemplate_;
}
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplateOrBuilder getNodeTemplateOrBuilder() {
return getNodeTemplate();
}
public static final int SCALE_POLICY_FIELD_NUMBER = 9;
private yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy scalePolicy_;
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
* @return Whether the scalePolicy field is set.
*/
@java.lang.Override
public boolean hasScalePolicy() {
return scalePolicy_ != null;
}
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
* @return The scalePolicy.
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy getScalePolicy() {
return scalePolicy_ == null ? yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_;
}
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder() {
return getScalePolicy();
}
public static final int ALLOCATION_POLICY_FIELD_NUMBER = 10;
private yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy allocationPolicy_;
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
* @return Whether the allocationPolicy field is set.
*/
@java.lang.Override
public boolean hasAllocationPolicy() {
return allocationPolicy_ != null;
}
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
* @return The allocationPolicy.
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy getAllocationPolicy() {
return allocationPolicy_ == null ? yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.getDefaultInstance() : allocationPolicy_;
}
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicyOrBuilder getAllocationPolicyOrBuilder() {
return getAllocationPolicy();
}
public static final int DEPLOY_POLICY_FIELD_NUMBER = 18;
private yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy deployPolicy_;
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
* @return Whether the deployPolicy field is set.
*/
@java.lang.Override
public boolean hasDeployPolicy() {
return deployPolicy_ != null;
}
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
* @return The deployPolicy.
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy getDeployPolicy() {
return deployPolicy_ == null ? yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.getDefaultInstance() : deployPolicy_;
}
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicyOrBuilder getDeployPolicyOrBuilder() {
return getDeployPolicy();
}
public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 11;
private volatile java.lang.Object instanceGroupId_;
/**
*
* ID of the managed instance group associated with this node group.
*
*
* string instance_group_id = 11;
* @return The instanceGroupId.
*/
@java.lang.Override
public java.lang.String getInstanceGroupId() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceGroupId_ = s;
return s;
}
}
/**
*
* ID of the managed instance group associated with this node group.
*
*
* string instance_group_id = 11;
* @return The bytes for instanceGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NODE_VERSION_FIELD_NUMBER = 12;
private volatile java.lang.Object nodeVersion_;
/**
*
* Version of Kubernetes components that runs on the nodes.
* Deprecated. Use version_info.current_version.
*
*
* string node_version = 12;
* @return The nodeVersion.
*/
@java.lang.Override
public java.lang.String getNodeVersion() {
java.lang.Object ref = nodeVersion_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nodeVersion_ = s;
return s;
}
}
/**
*
* Version of Kubernetes components that runs on the nodes.
* Deprecated. Use version_info.current_version.
*
*
* string node_version = 12;
* @return The bytes for nodeVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNodeVersionBytes() {
java.lang.Object ref = nodeVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_INFO_FIELD_NUMBER = 13;
private yandex.cloud.api.k8s.v1.Version.VersionInfo versionInfo_;
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
* @return Whether the versionInfo field is set.
*/
@java.lang.Override
public boolean hasVersionInfo() {
return versionInfo_ != null;
}
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
* @return The versionInfo.
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.Version.VersionInfo getVersionInfo() {
return versionInfo_ == null ? yandex.cloud.api.k8s.v1.Version.VersionInfo.getDefaultInstance() : versionInfo_;
}
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.Version.VersionInfoOrBuilder getVersionInfoOrBuilder() {
return getVersionInfo();
}
public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 14;
private yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy maintenancePolicy_;
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
* @return Whether the maintenancePolicy field is set.
*/
@java.lang.Override
public boolean hasMaintenancePolicy() {
return maintenancePolicy_ != null;
}
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
* @return The maintenancePolicy.
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy getMaintenancePolicy() {
return maintenancePolicy_ == null ? yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.getDefaultInstance() : maintenancePolicy_;
}
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() {
return getMaintenancePolicy();
}
public static final int ALLOWED_UNSAFE_SYSCTLS_FIELD_NUMBER = 15;
private com.google.protobuf.LazyStringList allowedUnsafeSysctls_;
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @return A list containing the allowedUnsafeSysctls.
*/
public com.google.protobuf.ProtocolStringList
getAllowedUnsafeSysctlsList() {
return allowedUnsafeSysctls_;
}
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @return The count of allowedUnsafeSysctls.
*/
public int getAllowedUnsafeSysctlsCount() {
return allowedUnsafeSysctls_.size();
}
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @param index The index of the element to return.
* @return The allowedUnsafeSysctls at the given index.
*/
public java.lang.String getAllowedUnsafeSysctls(int index) {
return allowedUnsafeSysctls_.get(index);
}
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @param index The index of the value to return.
* @return The bytes of the allowedUnsafeSysctls at the given index.
*/
public com.google.protobuf.ByteString
getAllowedUnsafeSysctlsBytes(int index) {
return allowedUnsafeSysctls_.getByteString(index);
}
public static final int NODE_TAINTS_FIELD_NUMBER = 16;
private java.util.List nodeTaints_;
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
@java.lang.Override
public java.util.List getNodeTaintsList() {
return nodeTaints_;
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.k8s.v1.NodeOuterClass.TaintOrBuilder>
getNodeTaintsOrBuilderList() {
return nodeTaints_;
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
@java.lang.Override
public int getNodeTaintsCount() {
return nodeTaints_.size();
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeOuterClass.Taint getNodeTaints(int index) {
return nodeTaints_.get(index);
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeOuterClass.TaintOrBuilder getNodeTaintsOrBuilder(
int index) {
return nodeTaints_.get(index);
}
public static final int NODE_LABELS_FIELD_NUMBER = 17;
private static final class NodeLabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroup_NodeLabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> nodeLabels_;
private com.google.protobuf.MapField
internalGetNodeLabels() {
if (nodeLabels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
NodeLabelsDefaultEntryHolder.defaultEntry);
}
return nodeLabels_;
}
public int getNodeLabelsCount() {
return internalGetNodeLabels().getMap().size();
}
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
@java.lang.Override
public boolean containsNodeLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetNodeLabels().getMap().containsKey(key);
}
/**
* Use {@link #getNodeLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getNodeLabels() {
return getNodeLabelsMap();
}
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
@java.lang.Override
public java.util.Map getNodeLabelsMap() {
return internalGetNodeLabels().getMap();
}
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
@java.lang.Override
public java.lang.String getNodeLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetNodeLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
@java.lang.Override
public java.lang.String getNodeLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetNodeLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterId_);
}
if (createdAt_ != null) {
output.writeMessage(3, getCreatedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
6);
if (status_ != yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(7, status_);
}
if (nodeTemplate_ != null) {
output.writeMessage(8, getNodeTemplate());
}
if (scalePolicy_ != null) {
output.writeMessage(9, getScalePolicy());
}
if (allocationPolicy_ != null) {
output.writeMessage(10, getAllocationPolicy());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, instanceGroupId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, nodeVersion_);
}
if (versionInfo_ != null) {
output.writeMessage(13, getVersionInfo());
}
if (maintenancePolicy_ != null) {
output.writeMessage(14, getMaintenancePolicy());
}
for (int i = 0; i < allowedUnsafeSysctls_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, allowedUnsafeSysctls_.getRaw(i));
}
for (int i = 0; i < nodeTaints_.size(); i++) {
output.writeMessage(16, nodeTaints_.get(i));
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetNodeLabels(),
NodeLabelsDefaultEntryHolder.defaultEntry,
17);
if (deployPolicy_ != null) {
output.writeMessage(18, getDeployPolicy());
}
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(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterId_);
}
if (createdAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCreatedAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
}
for (java.util.Map.Entry entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, labels__);
}
if (status_ != yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, status_);
}
if (nodeTemplate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getNodeTemplate());
}
if (scalePolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getScalePolicy());
}
if (allocationPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getAllocationPolicy());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, instanceGroupId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, nodeVersion_);
}
if (versionInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getVersionInfo());
}
if (maintenancePolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getMaintenancePolicy());
}
{
int dataSize = 0;
for (int i = 0; i < allowedUnsafeSysctls_.size(); i++) {
dataSize += computeStringSizeNoTag(allowedUnsafeSysctls_.getRaw(i));
}
size += dataSize;
size += 1 * getAllowedUnsafeSysctlsList().size();
}
for (int i = 0; i < nodeTaints_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, nodeTaints_.get(i));
}
for (java.util.Map.Entry entry
: internalGetNodeLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
nodeLabels__ = NodeLabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, nodeLabels__);
}
if (deployPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, getDeployPolicy());
}
size += unknownFields.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.NodeGroupOuterClass.NodeGroup)) {
return super.equals(obj);
}
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup other = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (status_ != other.status_) return false;
if (hasNodeTemplate() != other.hasNodeTemplate()) return false;
if (hasNodeTemplate()) {
if (!getNodeTemplate()
.equals(other.getNodeTemplate())) return false;
}
if (hasScalePolicy() != other.hasScalePolicy()) return false;
if (hasScalePolicy()) {
if (!getScalePolicy()
.equals(other.getScalePolicy())) return false;
}
if (hasAllocationPolicy() != other.hasAllocationPolicy()) return false;
if (hasAllocationPolicy()) {
if (!getAllocationPolicy()
.equals(other.getAllocationPolicy())) return false;
}
if (hasDeployPolicy() != other.hasDeployPolicy()) return false;
if (hasDeployPolicy()) {
if (!getDeployPolicy()
.equals(other.getDeployPolicy())) return false;
}
if (!getInstanceGroupId()
.equals(other.getInstanceGroupId())) return false;
if (!getNodeVersion()
.equals(other.getNodeVersion())) return false;
if (hasVersionInfo() != other.hasVersionInfo()) return false;
if (hasVersionInfo()) {
if (!getVersionInfo()
.equals(other.getVersionInfo())) return false;
}
if (hasMaintenancePolicy() != other.hasMaintenancePolicy()) return false;
if (hasMaintenancePolicy()) {
if (!getMaintenancePolicy()
.equals(other.getMaintenancePolicy())) return false;
}
if (!getAllowedUnsafeSysctlsList()
.equals(other.getAllowedUnsafeSysctlsList())) return false;
if (!getNodeTaintsList()
.equals(other.getNodeTaintsList())) return false;
if (!internalGetNodeLabels().equals(
other.internalGetNodeLabels())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (hasNodeTemplate()) {
hash = (37 * hash) + NODE_TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getNodeTemplate().hashCode();
}
if (hasScalePolicy()) {
hash = (37 * hash) + SCALE_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getScalePolicy().hashCode();
}
if (hasAllocationPolicy()) {
hash = (37 * hash) + ALLOCATION_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getAllocationPolicy().hashCode();
}
if (hasDeployPolicy()) {
hash = (37 * hash) + DEPLOY_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getDeployPolicy().hashCode();
}
hash = (37 * hash) + INSTANCE_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceGroupId().hashCode();
hash = (37 * hash) + NODE_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getNodeVersion().hashCode();
if (hasVersionInfo()) {
hash = (37 * hash) + VERSION_INFO_FIELD_NUMBER;
hash = (53 * hash) + getVersionInfo().hashCode();
}
if (hasMaintenancePolicy()) {
hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getMaintenancePolicy().hashCode();
}
if (getAllowedUnsafeSysctlsCount() > 0) {
hash = (37 * hash) + ALLOWED_UNSAFE_SYSCTLS_FIELD_NUMBER;
hash = (53 * hash) + getAllowedUnsafeSysctlsList().hashCode();
}
if (getNodeTaintsCount() > 0) {
hash = (37 * hash) + NODE_TAINTS_FIELD_NUMBER;
hash = (53 * hash) + getNodeTaintsList().hashCode();
}
if (!internalGetNodeLabels().getMap().isEmpty()) {
hash = (37 * hash) + NODE_LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetNodeLabels().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup 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.NodeGroupOuterClass.NodeGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup 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.NodeGroupOuterClass.NodeGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup 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.NodeGroupOuterClass.NodeGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup parseFrom(
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.NodeGroupOuterClass.NodeGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup parseDelimitedFrom(
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.NodeGroupOuterClass.NodeGroup 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.NodeGroupOuterClass.NodeGroup 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.NodeGroupOuterClass.NodeGroup 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.NodeGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.k8s.v1.NodeGroup)
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroup_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetLabels();
case 17:
return internalGetNodeLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 6:
return internalGetMutableLabels();
case 17:
return internalGetMutableNodeLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.Builder.class);
}
// Construct using yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNodeTaintsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
clusterId_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
status_ = 0;
if (nodeTemplateBuilder_ == null) {
nodeTemplate_ = null;
} else {
nodeTemplate_ = null;
nodeTemplateBuilder_ = null;
}
if (scalePolicyBuilder_ == null) {
scalePolicy_ = null;
} else {
scalePolicy_ = null;
scalePolicyBuilder_ = null;
}
if (allocationPolicyBuilder_ == null) {
allocationPolicy_ = null;
} else {
allocationPolicy_ = null;
allocationPolicyBuilder_ = null;
}
if (deployPolicyBuilder_ == null) {
deployPolicy_ = null;
} else {
deployPolicy_ = null;
deployPolicyBuilder_ = null;
}
instanceGroupId_ = "";
nodeVersion_ = "";
if (versionInfoBuilder_ == null) {
versionInfo_ = null;
} else {
versionInfo_ = null;
versionInfoBuilder_ = null;
}
if (maintenancePolicyBuilder_ == null) {
maintenancePolicy_ = null;
} else {
maintenancePolicy_ = null;
maintenancePolicyBuilder_ = null;
}
allowedUnsafeSysctls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
if (nodeTaintsBuilder_ == null) {
nodeTaints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
nodeTaintsBuilder_.clear();
}
internalGetMutableNodeLabels().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroup_descriptor;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup getDefaultInstanceForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup build() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup buildPartial() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup result = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.clusterId_ = clusterId_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
result.status_ = status_;
if (nodeTemplateBuilder_ == null) {
result.nodeTemplate_ = nodeTemplate_;
} else {
result.nodeTemplate_ = nodeTemplateBuilder_.build();
}
if (scalePolicyBuilder_ == null) {
result.scalePolicy_ = scalePolicy_;
} else {
result.scalePolicy_ = scalePolicyBuilder_.build();
}
if (allocationPolicyBuilder_ == null) {
result.allocationPolicy_ = allocationPolicy_;
} else {
result.allocationPolicy_ = allocationPolicyBuilder_.build();
}
if (deployPolicyBuilder_ == null) {
result.deployPolicy_ = deployPolicy_;
} else {
result.deployPolicy_ = deployPolicyBuilder_.build();
}
result.instanceGroupId_ = instanceGroupId_;
result.nodeVersion_ = nodeVersion_;
if (versionInfoBuilder_ == null) {
result.versionInfo_ = versionInfo_;
} else {
result.versionInfo_ = versionInfoBuilder_.build();
}
if (maintenancePolicyBuilder_ == null) {
result.maintenancePolicy_ = maintenancePolicy_;
} else {
result.maintenancePolicy_ = maintenancePolicyBuilder_.build();
}
if (((bitField0_ & 0x00000002) != 0)) {
allowedUnsafeSysctls_ = allowedUnsafeSysctls_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.allowedUnsafeSysctls_ = allowedUnsafeSysctls_;
if (nodeTaintsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
nodeTaints_ = java.util.Collections.unmodifiableList(nodeTaints_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.nodeTaints_ = nodeTaints_;
} else {
result.nodeTaints_ = nodeTaintsBuilder_.build();
}
result.nodeLabels_ = internalGetNodeLabels();
result.nodeLabels_.makeImmutable();
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.NodeGroupOuterClass.NodeGroup) {
return mergeFrom((yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup other) {
if (other == yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.hasNodeTemplate()) {
mergeNodeTemplate(other.getNodeTemplate());
}
if (other.hasScalePolicy()) {
mergeScalePolicy(other.getScalePolicy());
}
if (other.hasAllocationPolicy()) {
mergeAllocationPolicy(other.getAllocationPolicy());
}
if (other.hasDeployPolicy()) {
mergeDeployPolicy(other.getDeployPolicy());
}
if (!other.getInstanceGroupId().isEmpty()) {
instanceGroupId_ = other.instanceGroupId_;
onChanged();
}
if (!other.getNodeVersion().isEmpty()) {
nodeVersion_ = other.nodeVersion_;
onChanged();
}
if (other.hasVersionInfo()) {
mergeVersionInfo(other.getVersionInfo());
}
if (other.hasMaintenancePolicy()) {
mergeMaintenancePolicy(other.getMaintenancePolicy());
}
if (!other.allowedUnsafeSysctls_.isEmpty()) {
if (allowedUnsafeSysctls_.isEmpty()) {
allowedUnsafeSysctls_ = other.allowedUnsafeSysctls_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAllowedUnsafeSysctlsIsMutable();
allowedUnsafeSysctls_.addAll(other.allowedUnsafeSysctls_);
}
onChanged();
}
if (nodeTaintsBuilder_ == null) {
if (!other.nodeTaints_.isEmpty()) {
if (nodeTaints_.isEmpty()) {
nodeTaints_ = other.nodeTaints_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureNodeTaintsIsMutable();
nodeTaints_.addAll(other.nodeTaints_);
}
onChanged();
}
} else {
if (!other.nodeTaints_.isEmpty()) {
if (nodeTaintsBuilder_.isEmpty()) {
nodeTaintsBuilder_.dispose();
nodeTaintsBuilder_ = null;
nodeTaints_ = other.nodeTaints_;
bitField0_ = (bitField0_ & ~0x00000004);
nodeTaintsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNodeTaintsFieldBuilder() : null;
} else {
nodeTaintsBuilder_.addAllMessages(other.nodeTaints_);
}
}
}
internalGetMutableNodeLabels().mergeFrom(
other.internalGetNodeLabels());
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.NodeGroupOuterClass.NodeGroup parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* ID of the node group.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the node group.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the node group.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* ID of the node group.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of the node group.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object clusterId_ = "";
/**
*
* ID of the cluster that the node group belongs to.
*
*
* string cluster_id = 2;
* @return The clusterId.
*/
public java.lang.String getClusterId() {
java.lang.Object ref = clusterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clusterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the cluster that the node group belongs to.
*
*
* string cluster_id = 2;
* @return The bytes for clusterId.
*/
public com.google.protobuf.ByteString
getClusterIdBytes() {
java.lang.Object ref = clusterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the cluster that the node group belongs to.
*
*
* string cluster_id = 2;
* @param value The clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clusterId_ = value;
onChanged();
return this;
}
/**
*
* ID of the cluster that the node group belongs to.
*
*
* string cluster_id = 2;
* @return This builder for chaining.
*/
public Builder clearClusterId() {
clusterId_ = getDefaultInstance().getClusterId();
onChanged();
return this;
}
/**
*
* ID of the cluster that the node group belongs to.
*
*
* string cluster_id = 2;
* @param value The bytes for clusterId to set.
* @return This builder for chaining.
*/
public Builder setClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clusterId_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (createdAt_ != null) {
createdAt_ =
com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial();
} else {
createdAt_ = value;
}
onChanged();
} else {
createdAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* Creation timestamp.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private java.lang.Object name_ = "";
/**
*
* Name of the node group.
* The name is unique within the folder.
*
*
* string name = 4;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the node group.
* The name is unique within the folder.
*
*
* string name = 4;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the node group.
* The name is unique within the folder.
*
*
* string name = 4;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the node group.
* The name is unique within the folder.
*
*
* string name = 4;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the node group.
* The name is unique within the folder.
*
*
* string name = 4;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the node group. 0-256 characters long.
*
*
* string description = 5;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the node group. 0-256 characters long.
*
*
* string description = 5;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the node group. 0-256 characters long.
*
*
* string description = 5;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the node group. 0-256 characters long.
*
*
* string description = 5;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the node group. 0-256 characters long.
*
*
* string description = 5;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
onChanged();;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
internalGetMutableLabels().getMutableMap()
.clear();
return this;
}
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
public Builder removeLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableLabels().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableLabels() {
return internalGetMutableLabels().getMutableMap();
}
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
public Builder putLabels(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
private int status_ = 0;
/**
*
* Status of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroup.Status status = 7;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Status of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroup.Status status = 7;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* Status of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroup.Status status = 7;
* @return The status.
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.Status result = yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.Status.valueOf(status_);
return result == null ? yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.Status.UNRECOGNIZED : result;
}
/**
*
* Status of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroup.Status status = 7;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Status of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroup.Status status = 7;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate nodeTemplate_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate, yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate.Builder, yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplateOrBuilder> nodeTemplateBuilder_;
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
* @return Whether the nodeTemplate field is set.
*/
public boolean hasNodeTemplate() {
return nodeTemplateBuilder_ != null || nodeTemplate_ != null;
}
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
* @return The nodeTemplate.
*/
public yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate getNodeTemplate() {
if (nodeTemplateBuilder_ == null) {
return nodeTemplate_ == null ? yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate.getDefaultInstance() : nodeTemplate_;
} else {
return nodeTemplateBuilder_.getMessage();
}
}
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
*/
public Builder setNodeTemplate(yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate value) {
if (nodeTemplateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeTemplate_ = value;
onChanged();
} else {
nodeTemplateBuilder_.setMessage(value);
}
return this;
}
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
*/
public Builder setNodeTemplate(
yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate.Builder builderForValue) {
if (nodeTemplateBuilder_ == null) {
nodeTemplate_ = builderForValue.build();
onChanged();
} else {
nodeTemplateBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
*/
public Builder mergeNodeTemplate(yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate value) {
if (nodeTemplateBuilder_ == null) {
if (nodeTemplate_ != null) {
nodeTemplate_ =
yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate.newBuilder(nodeTemplate_).mergeFrom(value).buildPartial();
} else {
nodeTemplate_ = value;
}
onChanged();
} else {
nodeTemplateBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
*/
public Builder clearNodeTemplate() {
if (nodeTemplateBuilder_ == null) {
nodeTemplate_ = null;
onChanged();
} else {
nodeTemplate_ = null;
nodeTemplateBuilder_ = null;
}
return this;
}
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
*/
public yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate.Builder getNodeTemplateBuilder() {
onChanged();
return getNodeTemplateFieldBuilder().getBuilder();
}
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
*/
public yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplateOrBuilder getNodeTemplateOrBuilder() {
if (nodeTemplateBuilder_ != null) {
return nodeTemplateBuilder_.getMessageOrBuilder();
} else {
return nodeTemplate_ == null ?
yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate.getDefaultInstance() : nodeTemplate_;
}
}
/**
*
* Node template that specifies parameters of the compute instances for the node group.
*
*
* .yandex.cloud.k8s.v1.NodeTemplate node_template = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate, yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate.Builder, yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplateOrBuilder>
getNodeTemplateFieldBuilder() {
if (nodeTemplateBuilder_ == null) {
nodeTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate, yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplate.Builder, yandex.cloud.api.k8s.v1.NodeOuterClass.NodeTemplateOrBuilder>(
getNodeTemplate(),
getParentForChildren(),
isClean());
nodeTemplate_ = null;
}
return nodeTemplateBuilder_;
}
private yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy scalePolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicyOrBuilder> scalePolicyBuilder_;
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
* @return Whether the scalePolicy field is set.
*/
public boolean hasScalePolicy() {
return scalePolicyBuilder_ != null || scalePolicy_ != null;
}
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
* @return The scalePolicy.
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy getScalePolicy() {
if (scalePolicyBuilder_ == null) {
return scalePolicy_ == null ? yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_;
} else {
return scalePolicyBuilder_.getMessage();
}
}
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
*/
public Builder setScalePolicy(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy value) {
if (scalePolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scalePolicy_ = value;
onChanged();
} else {
scalePolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
*/
public Builder setScalePolicy(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.Builder builderForValue) {
if (scalePolicyBuilder_ == null) {
scalePolicy_ = builderForValue.build();
onChanged();
} else {
scalePolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
*/
public Builder mergeScalePolicy(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy value) {
if (scalePolicyBuilder_ == null) {
if (scalePolicy_ != null) {
scalePolicy_ =
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.newBuilder(scalePolicy_).mergeFrom(value).buildPartial();
} else {
scalePolicy_ = value;
}
onChanged();
} else {
scalePolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
*/
public Builder clearScalePolicy() {
if (scalePolicyBuilder_ == null) {
scalePolicy_ = null;
onChanged();
} else {
scalePolicy_ = null;
scalePolicyBuilder_ = null;
}
return this;
}
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.Builder getScalePolicyBuilder() {
onChanged();
return getScalePolicyFieldBuilder().getBuilder();
}
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder() {
if (scalePolicyBuilder_ != null) {
return scalePolicyBuilder_.getMessageOrBuilder();
} else {
return scalePolicy_ == null ?
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_;
}
}
/**
*
* Scale policy of the node group. For more information, see [Scaling policy](/docs/compute/concepts/instance-groups/policies#scale-policy).
*
*
* .yandex.cloud.k8s.v1.ScalePolicy scale_policy = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicyOrBuilder>
getScalePolicyFieldBuilder() {
if (scalePolicyBuilder_ == null) {
scalePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicyOrBuilder>(
getScalePolicy(),
getParentForChildren(),
isClean());
scalePolicy_ = null;
}
return scalePolicyBuilder_;
}
private yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy allocationPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicyOrBuilder> allocationPolicyBuilder_;
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
* @return Whether the allocationPolicy field is set.
*/
public boolean hasAllocationPolicy() {
return allocationPolicyBuilder_ != null || allocationPolicy_ != null;
}
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
* @return The allocationPolicy.
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy getAllocationPolicy() {
if (allocationPolicyBuilder_ == null) {
return allocationPolicy_ == null ? yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.getDefaultInstance() : allocationPolicy_;
} else {
return allocationPolicyBuilder_.getMessage();
}
}
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
*/
public Builder setAllocationPolicy(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy value) {
if (allocationPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
allocationPolicy_ = value;
onChanged();
} else {
allocationPolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
*/
public Builder setAllocationPolicy(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.Builder builderForValue) {
if (allocationPolicyBuilder_ == null) {
allocationPolicy_ = builderForValue.build();
onChanged();
} else {
allocationPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
*/
public Builder mergeAllocationPolicy(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy value) {
if (allocationPolicyBuilder_ == null) {
if (allocationPolicy_ != null) {
allocationPolicy_ =
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.newBuilder(allocationPolicy_).mergeFrom(value).buildPartial();
} else {
allocationPolicy_ = value;
}
onChanged();
} else {
allocationPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
*/
public Builder clearAllocationPolicy() {
if (allocationPolicyBuilder_ == null) {
allocationPolicy_ = null;
onChanged();
} else {
allocationPolicy_ = null;
allocationPolicyBuilder_ = null;
}
return this;
}
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.Builder getAllocationPolicyBuilder() {
onChanged();
return getAllocationPolicyFieldBuilder().getBuilder();
}
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicyOrBuilder getAllocationPolicyOrBuilder() {
if (allocationPolicyBuilder_ != null) {
return allocationPolicyBuilder_.getMessageOrBuilder();
} else {
return allocationPolicy_ == null ?
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.getDefaultInstance() : allocationPolicy_;
}
}
/**
*
* Allocation policy by which resources for node group are allocated to zones and regions.
*
*
* .yandex.cloud.k8s.v1.NodeGroupAllocationPolicy allocation_policy = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicyOrBuilder>
getAllocationPolicyFieldBuilder() {
if (allocationPolicyBuilder_ == null) {
allocationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicyOrBuilder>(
getAllocationPolicy(),
getParentForChildren(),
isClean());
allocationPolicy_ = null;
}
return allocationPolicyBuilder_;
}
private yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy deployPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicyOrBuilder> deployPolicyBuilder_;
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
* @return Whether the deployPolicy field is set.
*/
public boolean hasDeployPolicy() {
return deployPolicyBuilder_ != null || deployPolicy_ != null;
}
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
* @return The deployPolicy.
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy getDeployPolicy() {
if (deployPolicyBuilder_ == null) {
return deployPolicy_ == null ? yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.getDefaultInstance() : deployPolicy_;
} else {
return deployPolicyBuilder_.getMessage();
}
}
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
*/
public Builder setDeployPolicy(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy value) {
if (deployPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deployPolicy_ = value;
onChanged();
} else {
deployPolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
*/
public Builder setDeployPolicy(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.Builder builderForValue) {
if (deployPolicyBuilder_ == null) {
deployPolicy_ = builderForValue.build();
onChanged();
} else {
deployPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
*/
public Builder mergeDeployPolicy(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy value) {
if (deployPolicyBuilder_ == null) {
if (deployPolicy_ != null) {
deployPolicy_ =
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.newBuilder(deployPolicy_).mergeFrom(value).buildPartial();
} else {
deployPolicy_ = value;
}
onChanged();
} else {
deployPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
*/
public Builder clearDeployPolicy() {
if (deployPolicyBuilder_ == null) {
deployPolicy_ = null;
onChanged();
} else {
deployPolicy_ = null;
deployPolicyBuilder_ = null;
}
return this;
}
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.Builder getDeployPolicyBuilder() {
onChanged();
return getDeployPolicyFieldBuilder().getBuilder();
}
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicyOrBuilder getDeployPolicyOrBuilder() {
if (deployPolicyBuilder_ != null) {
return deployPolicyBuilder_.getMessageOrBuilder();
} else {
return deployPolicy_ == null ?
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.getDefaultInstance() : deployPolicy_;
}
}
/**
*
* Deploy policy according to which the updates are rolled out.
*
*
* .yandex.cloud.k8s.v1.DeployPolicy deploy_policy = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicyOrBuilder>
getDeployPolicyFieldBuilder() {
if (deployPolicyBuilder_ == null) {
deployPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicyOrBuilder>(
getDeployPolicy(),
getParentForChildren(),
isClean());
deployPolicy_ = null;
}
return deployPolicyBuilder_;
}
private java.lang.Object instanceGroupId_ = "";
/**
*
* ID of the managed instance group associated with this node group.
*
*
* string instance_group_id = 11;
* @return The instanceGroupId.
*/
public java.lang.String getInstanceGroupId() {
java.lang.Object ref = instanceGroupId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceGroupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the managed instance group associated with this node group.
*
*
* string instance_group_id = 11;
* @return The bytes for instanceGroupId.
*/
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the managed instance group associated with this node group.
*
*
* string instance_group_id = 11;
* @param value The instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the managed instance group associated with this node group.
*
*
* string instance_group_id = 11;
* @return This builder for chaining.
*/
public Builder clearInstanceGroupId() {
instanceGroupId_ = getDefaultInstance().getInstanceGroupId();
onChanged();
return this;
}
/**
*
* ID of the managed instance group associated with this node group.
*
*
* string instance_group_id = 11;
* @param value The bytes for instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceGroupId_ = value;
onChanged();
return this;
}
private java.lang.Object nodeVersion_ = "";
/**
*
* Version of Kubernetes components that runs on the nodes.
* Deprecated. Use version_info.current_version.
*
*
* string node_version = 12;
* @return The nodeVersion.
*/
public java.lang.String getNodeVersion() {
java.lang.Object ref = nodeVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nodeVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Version of Kubernetes components that runs on the nodes.
* Deprecated. Use version_info.current_version.
*
*
* string node_version = 12;
* @return The bytes for nodeVersion.
*/
public com.google.protobuf.ByteString
getNodeVersionBytes() {
java.lang.Object ref = nodeVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Version of Kubernetes components that runs on the nodes.
* Deprecated. Use version_info.current_version.
*
*
* string node_version = 12;
* @param value The nodeVersion to set.
* @return This builder for chaining.
*/
public Builder setNodeVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nodeVersion_ = value;
onChanged();
return this;
}
/**
*
* Version of Kubernetes components that runs on the nodes.
* Deprecated. Use version_info.current_version.
*
*
* string node_version = 12;
* @return This builder for chaining.
*/
public Builder clearNodeVersion() {
nodeVersion_ = getDefaultInstance().getNodeVersion();
onChanged();
return this;
}
/**
*
* Version of Kubernetes components that runs on the nodes.
* Deprecated. Use version_info.current_version.
*
*
* string node_version = 12;
* @param value The bytes for nodeVersion to set.
* @return This builder for chaining.
*/
public Builder setNodeVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nodeVersion_ = value;
onChanged();
return this;
}
private yandex.cloud.api.k8s.v1.Version.VersionInfo versionInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.Version.VersionInfo, yandex.cloud.api.k8s.v1.Version.VersionInfo.Builder, yandex.cloud.api.k8s.v1.Version.VersionInfoOrBuilder> versionInfoBuilder_;
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
* @return Whether the versionInfo field is set.
*/
public boolean hasVersionInfo() {
return versionInfoBuilder_ != null || versionInfo_ != null;
}
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
* @return The versionInfo.
*/
public yandex.cloud.api.k8s.v1.Version.VersionInfo getVersionInfo() {
if (versionInfoBuilder_ == null) {
return versionInfo_ == null ? yandex.cloud.api.k8s.v1.Version.VersionInfo.getDefaultInstance() : versionInfo_;
} else {
return versionInfoBuilder_.getMessage();
}
}
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
*/
public Builder setVersionInfo(yandex.cloud.api.k8s.v1.Version.VersionInfo value) {
if (versionInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
versionInfo_ = value;
onChanged();
} else {
versionInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
*/
public Builder setVersionInfo(
yandex.cloud.api.k8s.v1.Version.VersionInfo.Builder builderForValue) {
if (versionInfoBuilder_ == null) {
versionInfo_ = builderForValue.build();
onChanged();
} else {
versionInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
*/
public Builder mergeVersionInfo(yandex.cloud.api.k8s.v1.Version.VersionInfo value) {
if (versionInfoBuilder_ == null) {
if (versionInfo_ != null) {
versionInfo_ =
yandex.cloud.api.k8s.v1.Version.VersionInfo.newBuilder(versionInfo_).mergeFrom(value).buildPartial();
} else {
versionInfo_ = value;
}
onChanged();
} else {
versionInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
*/
public Builder clearVersionInfo() {
if (versionInfoBuilder_ == null) {
versionInfo_ = null;
onChanged();
} else {
versionInfo_ = null;
versionInfoBuilder_ = null;
}
return this;
}
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
*/
public yandex.cloud.api.k8s.v1.Version.VersionInfo.Builder getVersionInfoBuilder() {
onChanged();
return getVersionInfoFieldBuilder().getBuilder();
}
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
*/
public yandex.cloud.api.k8s.v1.Version.VersionInfoOrBuilder getVersionInfoOrBuilder() {
if (versionInfoBuilder_ != null) {
return versionInfoBuilder_.getMessageOrBuilder();
} else {
return versionInfo_ == null ?
yandex.cloud.api.k8s.v1.Version.VersionInfo.getDefaultInstance() : versionInfo_;
}
}
/**
*
* Detailed information about the Kubernetes version that is running on the node.
*
*
* .yandex.cloud.k8s.v1.VersionInfo version_info = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.Version.VersionInfo, yandex.cloud.api.k8s.v1.Version.VersionInfo.Builder, yandex.cloud.api.k8s.v1.Version.VersionInfoOrBuilder>
getVersionInfoFieldBuilder() {
if (versionInfoBuilder_ == null) {
versionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.Version.VersionInfo, yandex.cloud.api.k8s.v1.Version.VersionInfo.Builder, yandex.cloud.api.k8s.v1.Version.VersionInfoOrBuilder>(
getVersionInfo(),
getParentForChildren(),
isClean());
versionInfo_ = null;
}
return versionInfoBuilder_;
}
private yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy maintenancePolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicyOrBuilder> maintenancePolicyBuilder_;
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
* @return Whether the maintenancePolicy field is set.
*/
public boolean hasMaintenancePolicy() {
return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null;
}
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
* @return The maintenancePolicy.
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy getMaintenancePolicy() {
if (maintenancePolicyBuilder_ == null) {
return maintenancePolicy_ == null ? yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.getDefaultInstance() : maintenancePolicy_;
} else {
return maintenancePolicyBuilder_.getMessage();
}
}
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
*/
public Builder setMaintenancePolicy(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy value) {
if (maintenancePolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maintenancePolicy_ = value;
onChanged();
} else {
maintenancePolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
*/
public Builder setMaintenancePolicy(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.Builder builderForValue) {
if (maintenancePolicyBuilder_ == null) {
maintenancePolicy_ = builderForValue.build();
onChanged();
} else {
maintenancePolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
*/
public Builder mergeMaintenancePolicy(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy value) {
if (maintenancePolicyBuilder_ == null) {
if (maintenancePolicy_ != null) {
maintenancePolicy_ =
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.newBuilder(maintenancePolicy_).mergeFrom(value).buildPartial();
} else {
maintenancePolicy_ = value;
}
onChanged();
} else {
maintenancePolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
*/
public Builder clearMaintenancePolicy() {
if (maintenancePolicyBuilder_ == null) {
maintenancePolicy_ = null;
onChanged();
} else {
maintenancePolicy_ = null;
maintenancePolicyBuilder_ = null;
}
return this;
}
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.Builder getMaintenancePolicyBuilder() {
onChanged();
return getMaintenancePolicyFieldBuilder().getBuilder();
}
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() {
if (maintenancePolicyBuilder_ != null) {
return maintenancePolicyBuilder_.getMessageOrBuilder();
} else {
return maintenancePolicy_ == null ?
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.getDefaultInstance() : maintenancePolicy_;
}
}
/**
*
* Maintenance policy of the node group.
*
*
* .yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy maintenance_policy = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicyOrBuilder>
getMaintenancePolicyFieldBuilder() {
if (maintenancePolicyBuilder_ == null) {
maintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicyOrBuilder>(
getMaintenancePolicy(),
getParentForChildren(),
isClean());
maintenancePolicy_ = null;
}
return maintenancePolicyBuilder_;
}
private com.google.protobuf.LazyStringList allowedUnsafeSysctls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAllowedUnsafeSysctlsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
allowedUnsafeSysctls_ = new com.google.protobuf.LazyStringArrayList(allowedUnsafeSysctls_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @return A list containing the allowedUnsafeSysctls.
*/
public com.google.protobuf.ProtocolStringList
getAllowedUnsafeSysctlsList() {
return allowedUnsafeSysctls_.getUnmodifiableView();
}
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @return The count of allowedUnsafeSysctls.
*/
public int getAllowedUnsafeSysctlsCount() {
return allowedUnsafeSysctls_.size();
}
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @param index The index of the element to return.
* @return The allowedUnsafeSysctls at the given index.
*/
public java.lang.String getAllowedUnsafeSysctls(int index) {
return allowedUnsafeSysctls_.get(index);
}
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @param index The index of the value to return.
* @return The bytes of the allowedUnsafeSysctls at the given index.
*/
public com.google.protobuf.ByteString
getAllowedUnsafeSysctlsBytes(int index) {
return allowedUnsafeSysctls_.getByteString(index);
}
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @param index The index to set the value at.
* @param value The allowedUnsafeSysctls to set.
* @return This builder for chaining.
*/
public Builder setAllowedUnsafeSysctls(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAllowedUnsafeSysctlsIsMutable();
allowedUnsafeSysctls_.set(index, value);
onChanged();
return this;
}
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @param value The allowedUnsafeSysctls to add.
* @return This builder for chaining.
*/
public Builder addAllowedUnsafeSysctls(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAllowedUnsafeSysctlsIsMutable();
allowedUnsafeSysctls_.add(value);
onChanged();
return this;
}
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @param values The allowedUnsafeSysctls to add.
* @return This builder for chaining.
*/
public Builder addAllAllowedUnsafeSysctls(
java.lang.Iterable values) {
ensureAllowedUnsafeSysctlsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, allowedUnsafeSysctls_);
onChanged();
return this;
}
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @return This builder for chaining.
*/
public Builder clearAllowedUnsafeSysctls() {
allowedUnsafeSysctls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Support for unsafe sysctl parameters. For more details see [documentation](https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/).
*
*
* repeated string allowed_unsafe_sysctls = 15;
* @param value The bytes of the allowedUnsafeSysctls to add.
* @return This builder for chaining.
*/
public Builder addAllowedUnsafeSysctlsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAllowedUnsafeSysctlsIsMutable();
allowedUnsafeSysctls_.add(value);
onChanged();
return this;
}
private java.util.List nodeTaints_ =
java.util.Collections.emptyList();
private void ensureNodeTaintsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
nodeTaints_ = new java.util.ArrayList(nodeTaints_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeOuterClass.Taint, yandex.cloud.api.k8s.v1.NodeOuterClass.Taint.Builder, yandex.cloud.api.k8s.v1.NodeOuterClass.TaintOrBuilder> nodeTaintsBuilder_;
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public java.util.List getNodeTaintsList() {
if (nodeTaintsBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodeTaints_);
} else {
return nodeTaintsBuilder_.getMessageList();
}
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public int getNodeTaintsCount() {
if (nodeTaintsBuilder_ == null) {
return nodeTaints_.size();
} else {
return nodeTaintsBuilder_.getCount();
}
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public yandex.cloud.api.k8s.v1.NodeOuterClass.Taint getNodeTaints(int index) {
if (nodeTaintsBuilder_ == null) {
return nodeTaints_.get(index);
} else {
return nodeTaintsBuilder_.getMessage(index);
}
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public Builder setNodeTaints(
int index, yandex.cloud.api.k8s.v1.NodeOuterClass.Taint value) {
if (nodeTaintsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeTaintsIsMutable();
nodeTaints_.set(index, value);
onChanged();
} else {
nodeTaintsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public Builder setNodeTaints(
int index, yandex.cloud.api.k8s.v1.NodeOuterClass.Taint.Builder builderForValue) {
if (nodeTaintsBuilder_ == null) {
ensureNodeTaintsIsMutable();
nodeTaints_.set(index, builderForValue.build());
onChanged();
} else {
nodeTaintsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public Builder addNodeTaints(yandex.cloud.api.k8s.v1.NodeOuterClass.Taint value) {
if (nodeTaintsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeTaintsIsMutable();
nodeTaints_.add(value);
onChanged();
} else {
nodeTaintsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public Builder addNodeTaints(
int index, yandex.cloud.api.k8s.v1.NodeOuterClass.Taint value) {
if (nodeTaintsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeTaintsIsMutable();
nodeTaints_.add(index, value);
onChanged();
} else {
nodeTaintsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public Builder addNodeTaints(
yandex.cloud.api.k8s.v1.NodeOuterClass.Taint.Builder builderForValue) {
if (nodeTaintsBuilder_ == null) {
ensureNodeTaintsIsMutable();
nodeTaints_.add(builderForValue.build());
onChanged();
} else {
nodeTaintsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public Builder addNodeTaints(
int index, yandex.cloud.api.k8s.v1.NodeOuterClass.Taint.Builder builderForValue) {
if (nodeTaintsBuilder_ == null) {
ensureNodeTaintsIsMutable();
nodeTaints_.add(index, builderForValue.build());
onChanged();
} else {
nodeTaintsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public Builder addAllNodeTaints(
java.lang.Iterable extends yandex.cloud.api.k8s.v1.NodeOuterClass.Taint> values) {
if (nodeTaintsBuilder_ == null) {
ensureNodeTaintsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nodeTaints_);
onChanged();
} else {
nodeTaintsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public Builder clearNodeTaints() {
if (nodeTaintsBuilder_ == null) {
nodeTaints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
nodeTaintsBuilder_.clear();
}
return this;
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public Builder removeNodeTaints(int index) {
if (nodeTaintsBuilder_ == null) {
ensureNodeTaintsIsMutable();
nodeTaints_.remove(index);
onChanged();
} else {
nodeTaintsBuilder_.remove(index);
}
return this;
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public yandex.cloud.api.k8s.v1.NodeOuterClass.Taint.Builder getNodeTaintsBuilder(
int index) {
return getNodeTaintsFieldBuilder().getBuilder(index);
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public yandex.cloud.api.k8s.v1.NodeOuterClass.TaintOrBuilder getNodeTaintsOrBuilder(
int index) {
if (nodeTaintsBuilder_ == null) {
return nodeTaints_.get(index); } else {
return nodeTaintsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public java.util.List extends yandex.cloud.api.k8s.v1.NodeOuterClass.TaintOrBuilder>
getNodeTaintsOrBuilderList() {
if (nodeTaintsBuilder_ != null) {
return nodeTaintsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodeTaints_);
}
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public yandex.cloud.api.k8s.v1.NodeOuterClass.Taint.Builder addNodeTaintsBuilder() {
return getNodeTaintsFieldBuilder().addBuilder(
yandex.cloud.api.k8s.v1.NodeOuterClass.Taint.getDefaultInstance());
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public yandex.cloud.api.k8s.v1.NodeOuterClass.Taint.Builder addNodeTaintsBuilder(
int index) {
return getNodeTaintsFieldBuilder().addBuilder(
index, yandex.cloud.api.k8s.v1.NodeOuterClass.Taint.getDefaultInstance());
}
/**
*
* Taints that are applied to the nodes of the node group at creation time.
*
*
* repeated .yandex.cloud.k8s.v1.Taint node_taints = 16;
*/
public java.util.List
getNodeTaintsBuilderList() {
return getNodeTaintsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeOuterClass.Taint, yandex.cloud.api.k8s.v1.NodeOuterClass.Taint.Builder, yandex.cloud.api.k8s.v1.NodeOuterClass.TaintOrBuilder>
getNodeTaintsFieldBuilder() {
if (nodeTaintsBuilder_ == null) {
nodeTaintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeOuterClass.Taint, yandex.cloud.api.k8s.v1.NodeOuterClass.Taint.Builder, yandex.cloud.api.k8s.v1.NodeOuterClass.TaintOrBuilder>(
nodeTaints_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
nodeTaints_ = null;
}
return nodeTaintsBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> nodeLabels_;
private com.google.protobuf.MapField
internalGetNodeLabels() {
if (nodeLabels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
NodeLabelsDefaultEntryHolder.defaultEntry);
}
return nodeLabels_;
}
private com.google.protobuf.MapField
internalGetMutableNodeLabels() {
onChanged();;
if (nodeLabels_ == null) {
nodeLabels_ = com.google.protobuf.MapField.newMapField(
NodeLabelsDefaultEntryHolder.defaultEntry);
}
if (!nodeLabels_.isMutable()) {
nodeLabels_ = nodeLabels_.copy();
}
return nodeLabels_;
}
public int getNodeLabelsCount() {
return internalGetNodeLabels().getMap().size();
}
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
@java.lang.Override
public boolean containsNodeLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetNodeLabels().getMap().containsKey(key);
}
/**
* Use {@link #getNodeLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getNodeLabels() {
return getNodeLabelsMap();
}
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
@java.lang.Override
public java.util.Map getNodeLabelsMap() {
return internalGetNodeLabels().getMap();
}
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
@java.lang.Override
public java.lang.String getNodeLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetNodeLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
@java.lang.Override
public java.lang.String getNodeLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetNodeLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearNodeLabels() {
internalGetMutableNodeLabels().getMutableMap()
.clear();
return this;
}
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
public Builder removeNodeLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableNodeLabels().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableNodeLabels() {
return internalGetMutableNodeLabels().getMutableMap();
}
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
public Builder putNodeLabels(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableNodeLabels().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Labels that are assigned to the nodes of the node group at creation time.
*
*
* map<string, string> node_labels = 17;
*/
public Builder putAllNodeLabels(
java.util.Map values) {
internalGetMutableNodeLabels().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.k8s.v1.NodeGroup)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.k8s.v1.NodeGroup)
private static final yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup();
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeGroup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeGroup(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.NodeGroupOuterClass.NodeGroup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ScalePolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.k8s.v1.ScalePolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
* @return Whether the fixedScale field is set.
*/
boolean hasFixedScale();
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
* @return The fixedScale.
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale getFixedScale();
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScaleOrBuilder getFixedScaleOrBuilder();
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
* @return Whether the autoScale field is set.
*/
boolean hasAutoScale();
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
* @return The autoScale.
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale getAutoScale();
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScaleOrBuilder getAutoScaleOrBuilder();
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.ScaleTypeCase getScaleTypeCase();
}
/**
* Protobuf type {@code yandex.cloud.k8s.v1.ScalePolicy}
*/
public static final class ScalePolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.k8s.v1.ScalePolicy)
ScalePolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScalePolicy.newBuilder() to construct.
private ScalePolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScalePolicy() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScalePolicy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ScalePolicy(
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: {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.Builder subBuilder = null;
if (scaleTypeCase_ == 1) {
subBuilder = ((yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale) scaleType_).toBuilder();
}
scaleType_ =
input.readMessage(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale) scaleType_);
scaleType_ = subBuilder.buildPartial();
}
scaleTypeCase_ = 1;
break;
}
case 18: {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.Builder subBuilder = null;
if (scaleTypeCase_ == 2) {
subBuilder = ((yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale) scaleType_).toBuilder();
}
scaleType_ =
input.readMessage(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale) scaleType_);
scaleType_ = subBuilder.buildPartial();
}
scaleTypeCase_ = 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.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.Builder.class);
}
public interface FixedScaleOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.k8s.v1.ScalePolicy.FixedScale)
com.google.protobuf.MessageOrBuilder {
/**
*
* Number of nodes in the node group.
*
*
* int64 size = 1 [(.yandex.cloud.value) = "0-100"];
* @return The size.
*/
long getSize();
}
/**
* Protobuf type {@code yandex.cloud.k8s.v1.ScalePolicy.FixedScale}
*/
public static final class FixedScale extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.k8s.v1.ScalePolicy.FixedScale)
FixedScaleOrBuilder {
private static final long serialVersionUID = 0L;
// Use FixedScale.newBuilder() to construct.
private FixedScale(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FixedScale() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FixedScale();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FixedScale(
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 8: {
size_ = 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 yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_FixedScale_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_FixedScale_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.Builder.class);
}
public static final int SIZE_FIELD_NUMBER = 1;
private long size_;
/**
*
* Number of nodes in the node group.
*
*
* int64 size = 1 [(.yandex.cloud.value) = "0-100"];
* @return The size.
*/
@java.lang.Override
public long getSize() {
return size_;
}
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 (size_ != 0L) {
output.writeInt64(1, size_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (size_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, size_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale)) {
return super.equals(obj);
}
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale other = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale) obj;
if (getSize()
!= other.getSize()) 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) + SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSize());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale 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.NodeGroupOuterClass.ScalePolicy.FixedScale parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale 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.NodeGroupOuterClass.ScalePolicy.FixedScale parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale 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.NodeGroupOuterClass.ScalePolicy.FixedScale parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale parseFrom(
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.NodeGroupOuterClass.ScalePolicy.FixedScale parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale parseDelimitedFrom(
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.NodeGroupOuterClass.ScalePolicy.FixedScale 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.NodeGroupOuterClass.ScalePolicy.FixedScale 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.NodeGroupOuterClass.ScalePolicy.FixedScale 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.ScalePolicy.FixedScale}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.k8s.v1.ScalePolicy.FixedScale)
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScaleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_FixedScale_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_FixedScale_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.Builder.class);
}
// Construct using yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.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();
size_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_FixedScale_descriptor;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale getDefaultInstanceForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale build() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale buildPartial() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale result = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale(this);
result.size_ = size_;
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.NodeGroupOuterClass.ScalePolicy.FixedScale) {
return mergeFrom((yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale other) {
if (other == yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance()) return this;
if (other.getSize() != 0L) {
setSize(other.getSize());
}
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.NodeGroupOuterClass.ScalePolicy.FixedScale parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long size_ ;
/**
*
* Number of nodes in the node group.
*
*
* int64 size = 1 [(.yandex.cloud.value) = "0-100"];
* @return The size.
*/
@java.lang.Override
public long getSize() {
return size_;
}
/**
*
* Number of nodes in the node group.
*
*
* int64 size = 1 [(.yandex.cloud.value) = "0-100"];
* @param value The size to set.
* @return This builder for chaining.
*/
public Builder setSize(long value) {
size_ = value;
onChanged();
return this;
}
/**
*
* Number of nodes in the node group.
*
*
* int64 size = 1 [(.yandex.cloud.value) = "0-100"];
* @return This builder for chaining.
*/
public Builder clearSize() {
size_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.k8s.v1.ScalePolicy.FixedScale)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.k8s.v1.ScalePolicy.FixedScale)
private static final yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale();
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FixedScale parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FixedScale(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.NodeGroupOuterClass.ScalePolicy.FixedScale getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AutoScaleOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.k8s.v1.ScalePolicy.AutoScale)
com.google.protobuf.MessageOrBuilder {
/**
*
* Minimum number of nodes in the node group.
*
*
* int64 min_size = 1 [(.yandex.cloud.value) = "0-100"];
* @return The minSize.
*/
long getMinSize();
/**
*
* Maximum number of nodes in the node group.
*
*
* int64 max_size = 2 [(.yandex.cloud.value) = "0-100"];
* @return The maxSize.
*/
long getMaxSize();
/**
*
* Initial number of nodes in the node group.
*
*
* int64 initial_size = 3 [(.yandex.cloud.value) = "0-100"];
* @return The initialSize.
*/
long getInitialSize();
}
/**
* Protobuf type {@code yandex.cloud.k8s.v1.ScalePolicy.AutoScale}
*/
public static final class AutoScale extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.k8s.v1.ScalePolicy.AutoScale)
AutoScaleOrBuilder {
private static final long serialVersionUID = 0L;
// Use AutoScale.newBuilder() to construct.
private AutoScale(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AutoScale() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AutoScale();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AutoScale(
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 8: {
minSize_ = input.readInt64();
break;
}
case 16: {
maxSize_ = input.readInt64();
break;
}
case 24: {
initialSize_ = 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 yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_AutoScale_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_AutoScale_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.Builder.class);
}
public static final int MIN_SIZE_FIELD_NUMBER = 1;
private long minSize_;
/**
*
* Minimum number of nodes in the node group.
*
*
* int64 min_size = 1 [(.yandex.cloud.value) = "0-100"];
* @return The minSize.
*/
@java.lang.Override
public long getMinSize() {
return minSize_;
}
public static final int MAX_SIZE_FIELD_NUMBER = 2;
private long maxSize_;
/**
*
* Maximum number of nodes in the node group.
*
*
* int64 max_size = 2 [(.yandex.cloud.value) = "0-100"];
* @return The maxSize.
*/
@java.lang.Override
public long getMaxSize() {
return maxSize_;
}
public static final int INITIAL_SIZE_FIELD_NUMBER = 3;
private long initialSize_;
/**
*
* Initial number of nodes in the node group.
*
*
* int64 initial_size = 3 [(.yandex.cloud.value) = "0-100"];
* @return The initialSize.
*/
@java.lang.Override
public long getInitialSize() {
return initialSize_;
}
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 (minSize_ != 0L) {
output.writeInt64(1, minSize_);
}
if (maxSize_ != 0L) {
output.writeInt64(2, maxSize_);
}
if (initialSize_ != 0L) {
output.writeInt64(3, initialSize_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (minSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, minSize_);
}
if (maxSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, maxSize_);
}
if (initialSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, initialSize_);
}
size += unknownFields.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.NodeGroupOuterClass.ScalePolicy.AutoScale)) {
return super.equals(obj);
}
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale other = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale) obj;
if (getMinSize()
!= other.getMinSize()) return false;
if (getMaxSize()
!= other.getMaxSize()) return false;
if (getInitialSize()
!= other.getInitialSize()) 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) + MIN_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMinSize());
hash = (37 * hash) + MAX_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxSize());
hash = (37 * hash) + INITIAL_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInitialSize());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale 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.NodeGroupOuterClass.ScalePolicy.AutoScale parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale 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.NodeGroupOuterClass.ScalePolicy.AutoScale parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale 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.NodeGroupOuterClass.ScalePolicy.AutoScale parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale parseFrom(
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.NodeGroupOuterClass.ScalePolicy.AutoScale parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale parseDelimitedFrom(
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.NodeGroupOuterClass.ScalePolicy.AutoScale 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.NodeGroupOuterClass.ScalePolicy.AutoScale 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.NodeGroupOuterClass.ScalePolicy.AutoScale 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.ScalePolicy.AutoScale}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.k8s.v1.ScalePolicy.AutoScale)
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScaleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_AutoScale_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_AutoScale_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.Builder.class);
}
// Construct using yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.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();
minSize_ = 0L;
maxSize_ = 0L;
initialSize_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_AutoScale_descriptor;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale getDefaultInstanceForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale build() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale buildPartial() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale result = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale(this);
result.minSize_ = minSize_;
result.maxSize_ = maxSize_;
result.initialSize_ = initialSize_;
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.NodeGroupOuterClass.ScalePolicy.AutoScale) {
return mergeFrom((yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale other) {
if (other == yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance()) return this;
if (other.getMinSize() != 0L) {
setMinSize(other.getMinSize());
}
if (other.getMaxSize() != 0L) {
setMaxSize(other.getMaxSize());
}
if (other.getInitialSize() != 0L) {
setInitialSize(other.getInitialSize());
}
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.NodeGroupOuterClass.ScalePolicy.AutoScale parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long minSize_ ;
/**
*
* Minimum number of nodes in the node group.
*
*
* int64 min_size = 1 [(.yandex.cloud.value) = "0-100"];
* @return The minSize.
*/
@java.lang.Override
public long getMinSize() {
return minSize_;
}
/**
*
* Minimum number of nodes in the node group.
*
*
* int64 min_size = 1 [(.yandex.cloud.value) = "0-100"];
* @param value The minSize to set.
* @return This builder for chaining.
*/
public Builder setMinSize(long value) {
minSize_ = value;
onChanged();
return this;
}
/**
*
* Minimum number of nodes in the node group.
*
*
* int64 min_size = 1 [(.yandex.cloud.value) = "0-100"];
* @return This builder for chaining.
*/
public Builder clearMinSize() {
minSize_ = 0L;
onChanged();
return this;
}
private long maxSize_ ;
/**
*
* Maximum number of nodes in the node group.
*
*
* int64 max_size = 2 [(.yandex.cloud.value) = "0-100"];
* @return The maxSize.
*/
@java.lang.Override
public long getMaxSize() {
return maxSize_;
}
/**
*
* Maximum number of nodes in the node group.
*
*
* int64 max_size = 2 [(.yandex.cloud.value) = "0-100"];
* @param value The maxSize to set.
* @return This builder for chaining.
*/
public Builder setMaxSize(long value) {
maxSize_ = value;
onChanged();
return this;
}
/**
*
* Maximum number of nodes in the node group.
*
*
* int64 max_size = 2 [(.yandex.cloud.value) = "0-100"];
* @return This builder for chaining.
*/
public Builder clearMaxSize() {
maxSize_ = 0L;
onChanged();
return this;
}
private long initialSize_ ;
/**
*
* Initial number of nodes in the node group.
*
*
* int64 initial_size = 3 [(.yandex.cloud.value) = "0-100"];
* @return The initialSize.
*/
@java.lang.Override
public long getInitialSize() {
return initialSize_;
}
/**
*
* Initial number of nodes in the node group.
*
*
* int64 initial_size = 3 [(.yandex.cloud.value) = "0-100"];
* @param value The initialSize to set.
* @return This builder for chaining.
*/
public Builder setInitialSize(long value) {
initialSize_ = value;
onChanged();
return this;
}
/**
*
* Initial number of nodes in the node group.
*
*
* int64 initial_size = 3 [(.yandex.cloud.value) = "0-100"];
* @return This builder for chaining.
*/
public Builder clearInitialSize() {
initialSize_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.k8s.v1.ScalePolicy.AutoScale)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.k8s.v1.ScalePolicy.AutoScale)
private static final yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale();
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AutoScale parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AutoScale(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.NodeGroupOuterClass.ScalePolicy.AutoScale getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int scaleTypeCase_ = 0;
private java.lang.Object scaleType_;
public enum ScaleTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
FIXED_SCALE(1),
AUTO_SCALE(2),
SCALETYPE_NOT_SET(0);
private final int value;
private ScaleTypeCase(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 ScaleTypeCase valueOf(int value) {
return forNumber(value);
}
public static ScaleTypeCase forNumber(int value) {
switch (value) {
case 1: return FIXED_SCALE;
case 2: return AUTO_SCALE;
case 0: return SCALETYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ScaleTypeCase
getScaleTypeCase() {
return ScaleTypeCase.forNumber(
scaleTypeCase_);
}
public static final int FIXED_SCALE_FIELD_NUMBER = 1;
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
* @return Whether the fixedScale field is set.
*/
@java.lang.Override
public boolean hasFixedScale() {
return scaleTypeCase_ == 1;
}
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
* @return The fixedScale.
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale getFixedScale() {
if (scaleTypeCase_ == 1) {
return (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale) scaleType_;
}
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance();
}
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScaleOrBuilder getFixedScaleOrBuilder() {
if (scaleTypeCase_ == 1) {
return (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale) scaleType_;
}
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance();
}
public static final int AUTO_SCALE_FIELD_NUMBER = 2;
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
* @return Whether the autoScale field is set.
*/
@java.lang.Override
public boolean hasAutoScale() {
return scaleTypeCase_ == 2;
}
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
* @return The autoScale.
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale getAutoScale() {
if (scaleTypeCase_ == 2) {
return (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale) scaleType_;
}
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance();
}
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScaleOrBuilder getAutoScaleOrBuilder() {
if (scaleTypeCase_ == 2) {
return (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale) scaleType_;
}
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance();
}
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 (scaleTypeCase_ == 1) {
output.writeMessage(1, (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale) scaleType_);
}
if (scaleTypeCase_ == 2) {
output.writeMessage(2, (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale) scaleType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (scaleTypeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale) scaleType_);
}
if (scaleTypeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale) scaleType_);
}
size += unknownFields.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.NodeGroupOuterClass.ScalePolicy)) {
return super.equals(obj);
}
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy other = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy) obj;
if (!getScaleTypeCase().equals(other.getScaleTypeCase())) return false;
switch (scaleTypeCase_) {
case 1:
if (!getFixedScale()
.equals(other.getFixedScale())) return false;
break;
case 2:
if (!getAutoScale()
.equals(other.getAutoScale())) 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 (scaleTypeCase_) {
case 1:
hash = (37 * hash) + FIXED_SCALE_FIELD_NUMBER;
hash = (53 * hash) + getFixedScale().hashCode();
break;
case 2:
hash = (37 * hash) + AUTO_SCALE_FIELD_NUMBER;
hash = (53 * hash) + getAutoScale().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy 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.NodeGroupOuterClass.ScalePolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy 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.NodeGroupOuterClass.ScalePolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy 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.NodeGroupOuterClass.ScalePolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy parseFrom(
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.NodeGroupOuterClass.ScalePolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy parseDelimitedFrom(
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.NodeGroupOuterClass.ScalePolicy 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.NodeGroupOuterClass.ScalePolicy 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.NodeGroupOuterClass.ScalePolicy 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.ScalePolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.k8s.v1.ScalePolicy)
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.Builder.class);
}
// Construct using yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.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();
scaleTypeCase_ = 0;
scaleType_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_ScalePolicy_descriptor;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy getDefaultInstanceForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy build() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy buildPartial() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy result = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy(this);
if (scaleTypeCase_ == 1) {
if (fixedScaleBuilder_ == null) {
result.scaleType_ = scaleType_;
} else {
result.scaleType_ = fixedScaleBuilder_.build();
}
}
if (scaleTypeCase_ == 2) {
if (autoScaleBuilder_ == null) {
result.scaleType_ = scaleType_;
} else {
result.scaleType_ = autoScaleBuilder_.build();
}
}
result.scaleTypeCase_ = scaleTypeCase_;
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.NodeGroupOuterClass.ScalePolicy) {
return mergeFrom((yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy other) {
if (other == yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.getDefaultInstance()) return this;
switch (other.getScaleTypeCase()) {
case FIXED_SCALE: {
mergeFixedScale(other.getFixedScale());
break;
}
case AUTO_SCALE: {
mergeAutoScale(other.getAutoScale());
break;
}
case SCALETYPE_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.NodeGroupOuterClass.ScalePolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int scaleTypeCase_ = 0;
private java.lang.Object scaleType_;
public ScaleTypeCase
getScaleTypeCase() {
return ScaleTypeCase.forNumber(
scaleTypeCase_);
}
public Builder clearScaleType() {
scaleTypeCase_ = 0;
scaleType_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScaleOrBuilder> fixedScaleBuilder_;
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
* @return Whether the fixedScale field is set.
*/
@java.lang.Override
public boolean hasFixedScale() {
return scaleTypeCase_ == 1;
}
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
* @return The fixedScale.
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale getFixedScale() {
if (fixedScaleBuilder_ == null) {
if (scaleTypeCase_ == 1) {
return (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale) scaleType_;
}
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance();
} else {
if (scaleTypeCase_ == 1) {
return fixedScaleBuilder_.getMessage();
}
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance();
}
}
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
*/
public Builder setFixedScale(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale value) {
if (fixedScaleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scaleType_ = value;
onChanged();
} else {
fixedScaleBuilder_.setMessage(value);
}
scaleTypeCase_ = 1;
return this;
}
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
*/
public Builder setFixedScale(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.Builder builderForValue) {
if (fixedScaleBuilder_ == null) {
scaleType_ = builderForValue.build();
onChanged();
} else {
fixedScaleBuilder_.setMessage(builderForValue.build());
}
scaleTypeCase_ = 1;
return this;
}
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
*/
public Builder mergeFixedScale(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale value) {
if (fixedScaleBuilder_ == null) {
if (scaleTypeCase_ == 1 &&
scaleType_ != yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance()) {
scaleType_ = yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.newBuilder((yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale) scaleType_)
.mergeFrom(value).buildPartial();
} else {
scaleType_ = value;
}
onChanged();
} else {
if (scaleTypeCase_ == 1) {
fixedScaleBuilder_.mergeFrom(value);
}
fixedScaleBuilder_.setMessage(value);
}
scaleTypeCase_ = 1;
return this;
}
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
*/
public Builder clearFixedScale() {
if (fixedScaleBuilder_ == null) {
if (scaleTypeCase_ == 1) {
scaleTypeCase_ = 0;
scaleType_ = null;
onChanged();
}
} else {
if (scaleTypeCase_ == 1) {
scaleTypeCase_ = 0;
scaleType_ = null;
}
fixedScaleBuilder_.clear();
}
return this;
}
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.Builder getFixedScaleBuilder() {
return getFixedScaleFieldBuilder().getBuilder();
}
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScaleOrBuilder getFixedScaleOrBuilder() {
if ((scaleTypeCase_ == 1) && (fixedScaleBuilder_ != null)) {
return fixedScaleBuilder_.getMessageOrBuilder();
} else {
if (scaleTypeCase_ == 1) {
return (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale) scaleType_;
}
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance();
}
}
/**
*
* Fixed scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.FixedScale fixed_scale = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScaleOrBuilder>
getFixedScaleFieldBuilder() {
if (fixedScaleBuilder_ == null) {
if (!(scaleTypeCase_ == 1)) {
scaleType_ = yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance();
}
fixedScaleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScaleOrBuilder>(
(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.FixedScale) scaleType_,
getParentForChildren(),
isClean());
scaleType_ = null;
}
scaleTypeCase_ = 1;
onChanged();;
return fixedScaleBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScaleOrBuilder> autoScaleBuilder_;
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
* @return Whether the autoScale field is set.
*/
@java.lang.Override
public boolean hasAutoScale() {
return scaleTypeCase_ == 2;
}
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
* @return The autoScale.
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale getAutoScale() {
if (autoScaleBuilder_ == null) {
if (scaleTypeCase_ == 2) {
return (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale) scaleType_;
}
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance();
} else {
if (scaleTypeCase_ == 2) {
return autoScaleBuilder_.getMessage();
}
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance();
}
}
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
*/
public Builder setAutoScale(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale value) {
if (autoScaleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scaleType_ = value;
onChanged();
} else {
autoScaleBuilder_.setMessage(value);
}
scaleTypeCase_ = 2;
return this;
}
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
*/
public Builder setAutoScale(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.Builder builderForValue) {
if (autoScaleBuilder_ == null) {
scaleType_ = builderForValue.build();
onChanged();
} else {
autoScaleBuilder_.setMessage(builderForValue.build());
}
scaleTypeCase_ = 2;
return this;
}
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
*/
public Builder mergeAutoScale(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale value) {
if (autoScaleBuilder_ == null) {
if (scaleTypeCase_ == 2 &&
scaleType_ != yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance()) {
scaleType_ = yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.newBuilder((yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale) scaleType_)
.mergeFrom(value).buildPartial();
} else {
scaleType_ = value;
}
onChanged();
} else {
if (scaleTypeCase_ == 2) {
autoScaleBuilder_.mergeFrom(value);
}
autoScaleBuilder_.setMessage(value);
}
scaleTypeCase_ = 2;
return this;
}
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
*/
public Builder clearAutoScale() {
if (autoScaleBuilder_ == null) {
if (scaleTypeCase_ == 2) {
scaleTypeCase_ = 0;
scaleType_ = null;
onChanged();
}
} else {
if (scaleTypeCase_ == 2) {
scaleTypeCase_ = 0;
scaleType_ = null;
}
autoScaleBuilder_.clear();
}
return this;
}
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.Builder getAutoScaleBuilder() {
return getAutoScaleFieldBuilder().getBuilder();
}
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScaleOrBuilder getAutoScaleOrBuilder() {
if ((scaleTypeCase_ == 2) && (autoScaleBuilder_ != null)) {
return autoScaleBuilder_.getMessageOrBuilder();
} else {
if (scaleTypeCase_ == 2) {
return (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale) scaleType_;
}
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance();
}
}
/**
*
* Auto scale policy of the node group.
*
*
* .yandex.cloud.k8s.v1.ScalePolicy.AutoScale auto_scale = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScaleOrBuilder>
getAutoScaleFieldBuilder() {
if (autoScaleBuilder_ == null) {
if (!(scaleTypeCase_ == 2)) {
scaleType_ = yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance();
}
autoScaleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScaleOrBuilder>(
(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy.AutoScale) scaleType_,
getParentForChildren(),
isClean());
scaleType_ = null;
}
scaleTypeCase_ = 2;
onChanged();;
return autoScaleBuilder_;
}
@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.ScalePolicy)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.k8s.v1.ScalePolicy)
private static final yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy();
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.ScalePolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScalePolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ScalePolicy(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.NodeGroupOuterClass.ScalePolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeGroupAllocationPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.k8s.v1.NodeGroupAllocationPolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
java.util.List
getLocationsList();
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation getLocations(int index);
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
int getLocationsCount();
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
java.util.List extends yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocationOrBuilder>
getLocationsOrBuilderList();
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocationOrBuilder getLocationsOrBuilder(
int index);
}
/**
* Protobuf type {@code yandex.cloud.k8s.v1.NodeGroupAllocationPolicy}
*/
public static final class NodeGroupAllocationPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.k8s.v1.NodeGroupAllocationPolicy)
NodeGroupAllocationPolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeGroupAllocationPolicy.newBuilder() to construct.
private NodeGroupAllocationPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeGroupAllocationPolicy() {
locations_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeGroupAllocationPolicy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeGroupAllocationPolicy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
locations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
locations_.add(
input.readMessage(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
locations_ = java.util.Collections.unmodifiableList(locations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupAllocationPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupAllocationPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.Builder.class);
}
public static final int LOCATIONS_FIELD_NUMBER = 1;
private java.util.List locations_;
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
@java.lang.Override
public java.util.List getLocationsList() {
return locations_;
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocationOrBuilder>
getLocationsOrBuilderList() {
return locations_;
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
@java.lang.Override
public int getLocationsCount() {
return locations_.size();
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation getLocations(int index) {
return locations_.get(index);
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocationOrBuilder getLocationsOrBuilder(
int index) {
return locations_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < locations_.size(); i++) {
output.writeMessage(1, locations_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < locations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, locations_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy)) {
return super.equals(obj);
}
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy other = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy) obj;
if (!getLocationsList()
.equals(other.getLocationsList())) 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();
if (getLocationsCount() > 0) {
hash = (37 * hash) + LOCATIONS_FIELD_NUMBER;
hash = (53 * hash) + getLocationsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy 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.NodeGroupOuterClass.NodeGroupAllocationPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy 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.NodeGroupOuterClass.NodeGroupAllocationPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy 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.NodeGroupOuterClass.NodeGroupAllocationPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy parseFrom(
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.NodeGroupOuterClass.NodeGroupAllocationPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy parseDelimitedFrom(
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.NodeGroupOuterClass.NodeGroupAllocationPolicy 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.NodeGroupOuterClass.NodeGroupAllocationPolicy 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.NodeGroupOuterClass.NodeGroupAllocationPolicy 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.NodeGroupAllocationPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.k8s.v1.NodeGroupAllocationPolicy)
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupAllocationPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupAllocationPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.Builder.class);
}
// Construct using yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLocationsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (locationsBuilder_ == null) {
locations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
locationsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupAllocationPolicy_descriptor;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy getDefaultInstanceForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy build() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy buildPartial() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy result = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy(this);
int from_bitField0_ = bitField0_;
if (locationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
locations_ = java.util.Collections.unmodifiableList(locations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.locations_ = locations_;
} else {
result.locations_ = locationsBuilder_.build();
}
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.NodeGroupOuterClass.NodeGroupAllocationPolicy) {
return mergeFrom((yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy other) {
if (other == yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy.getDefaultInstance()) return this;
if (locationsBuilder_ == null) {
if (!other.locations_.isEmpty()) {
if (locations_.isEmpty()) {
locations_ = other.locations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLocationsIsMutable();
locations_.addAll(other.locations_);
}
onChanged();
}
} else {
if (!other.locations_.isEmpty()) {
if (locationsBuilder_.isEmpty()) {
locationsBuilder_.dispose();
locationsBuilder_ = null;
locations_ = other.locations_;
bitField0_ = (bitField0_ & ~0x00000001);
locationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLocationsFieldBuilder() : null;
} else {
locationsBuilder_.addAllMessages(other.locations_);
}
}
}
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.NodeGroupOuterClass.NodeGroupAllocationPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List locations_ =
java.util.Collections.emptyList();
private void ensureLocationsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
locations_ = new java.util.ArrayList(locations_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocationOrBuilder> locationsBuilder_;
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public java.util.List getLocationsList() {
if (locationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(locations_);
} else {
return locationsBuilder_.getMessageList();
}
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public int getLocationsCount() {
if (locationsBuilder_ == null) {
return locations_.size();
} else {
return locationsBuilder_.getCount();
}
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation getLocations(int index) {
if (locationsBuilder_ == null) {
return locations_.get(index);
} else {
return locationsBuilder_.getMessage(index);
}
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public Builder setLocations(
int index, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation value) {
if (locationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationsIsMutable();
locations_.set(index, value);
onChanged();
} else {
locationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public Builder setLocations(
int index, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.Builder builderForValue) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
locations_.set(index, builderForValue.build());
onChanged();
} else {
locationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public Builder addLocations(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation value) {
if (locationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationsIsMutable();
locations_.add(value);
onChanged();
} else {
locationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public Builder addLocations(
int index, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation value) {
if (locationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationsIsMutable();
locations_.add(index, value);
onChanged();
} else {
locationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public Builder addLocations(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.Builder builderForValue) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
locations_.add(builderForValue.build());
onChanged();
} else {
locationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public Builder addLocations(
int index, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.Builder builderForValue) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
locations_.add(index, builderForValue.build());
onChanged();
} else {
locationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public Builder addAllLocations(
java.lang.Iterable extends yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation> values) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, locations_);
onChanged();
} else {
locationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public Builder clearLocations() {
if (locationsBuilder_ == null) {
locations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
locationsBuilder_.clear();
}
return this;
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public Builder removeLocations(int index) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
locations_.remove(index);
onChanged();
} else {
locationsBuilder_.remove(index);
}
return this;
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.Builder getLocationsBuilder(
int index) {
return getLocationsFieldBuilder().getBuilder(index);
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocationOrBuilder getLocationsOrBuilder(
int index) {
if (locationsBuilder_ == null) {
return locations_.get(index); } else {
return locationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public java.util.List extends yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocationOrBuilder>
getLocationsOrBuilderList() {
if (locationsBuilder_ != null) {
return locationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(locations_);
}
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.Builder addLocationsBuilder() {
return getLocationsFieldBuilder().addBuilder(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.getDefaultInstance());
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.Builder addLocationsBuilder(
int index) {
return getLocationsFieldBuilder().addBuilder(
index, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.getDefaultInstance());
}
/**
*
* List of locations where resources for the node group will be allocated.
*
*
* repeated .yandex.cloud.k8s.v1.NodeGroupLocation locations = 1;
*/
public java.util.List
getLocationsBuilderList() {
return getLocationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocationOrBuilder>
getLocationsFieldBuilder() {
if (locationsBuilder_ == null) {
locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.Builder, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocationOrBuilder>(
locations_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
locations_ = null;
}
return locationsBuilder_;
}
@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.NodeGroupAllocationPolicy)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.k8s.v1.NodeGroupAllocationPolicy)
private static final yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy();
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupAllocationPolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeGroupAllocationPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeGroupAllocationPolicy(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.NodeGroupOuterClass.NodeGroupAllocationPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeGroupLocationOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.k8s.v1.NodeGroupLocation)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the availability zone where the nodes may reside.
*
*
* string zone_id = 1 [(.yandex.cloud.required) = true];
* @return The zoneId.
*/
java.lang.String getZoneId();
/**
*
* ID of the availability zone where the nodes may reside.
*
*
* string zone_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for zoneId.
*/
com.google.protobuf.ByteString
getZoneIdBytes();
/**
*
* ID of the subnet. If a network chosen for the Kubernetes cluster has only one subnet in the specified zone, subnet ID may be omitted.
*
*
* string subnet_id = 2;
* @return The subnetId.
*/
java.lang.String getSubnetId();
/**
*
* ID of the subnet. If a network chosen for the Kubernetes cluster has only one subnet in the specified zone, subnet ID may be omitted.
*
*
* string subnet_id = 2;
* @return The bytes for subnetId.
*/
com.google.protobuf.ByteString
getSubnetIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.k8s.v1.NodeGroupLocation}
*/
public static final class NodeGroupLocation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.k8s.v1.NodeGroupLocation)
NodeGroupLocationOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeGroupLocation.newBuilder() to construct.
private NodeGroupLocation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeGroupLocation() {
zoneId_ = "";
subnetId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeGroupLocation();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeGroupLocation(
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();
zoneId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
subnetId_ = s;
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.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupLocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupLocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.Builder.class);
}
public static final int ZONE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object zoneId_;
/**
*
* ID of the availability zone where the nodes may reside.
*
*
* string zone_id = 1 [(.yandex.cloud.required) = true];
* @return The zoneId.
*/
@java.lang.Override
public java.lang.String getZoneId() {
java.lang.Object ref = zoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zoneId_ = s;
return s;
}
}
/**
*
* ID of the availability zone where the nodes may reside.
*
*
* string zone_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for zoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getZoneIdBytes() {
java.lang.Object ref = zoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBNET_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object subnetId_;
/**
*
* ID of the subnet. If a network chosen for the Kubernetes cluster has only one subnet in the specified zone, subnet ID may be omitted.
*
*
* string subnet_id = 2;
* @return The subnetId.
*/
@java.lang.Override
public java.lang.String getSubnetId() {
java.lang.Object ref = subnetId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subnetId_ = s;
return s;
}
}
/**
*
* ID of the subnet. If a network chosen for the Kubernetes cluster has only one subnet in the specified zone, subnet ID may be omitted.
*
*
* string subnet_id = 2;
* @return The bytes for subnetId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubnetIdBytes() {
java.lang.Object ref = subnetId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subnetId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zoneId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetId_);
}
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(zoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, zoneId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetId_);
}
size += unknownFields.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.NodeGroupOuterClass.NodeGroupLocation)) {
return super.equals(obj);
}
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation other = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation) obj;
if (!getZoneId()
.equals(other.getZoneId())) return false;
if (!getSubnetId()
.equals(other.getSubnetId())) 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) + ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getZoneId().hashCode();
hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER;
hash = (53 * hash) + getSubnetId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation 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.NodeGroupOuterClass.NodeGroupLocation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation 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.NodeGroupOuterClass.NodeGroupLocation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation 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.NodeGroupOuterClass.NodeGroupLocation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation parseFrom(
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.NodeGroupOuterClass.NodeGroupLocation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation parseDelimitedFrom(
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.NodeGroupOuterClass.NodeGroupLocation 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.NodeGroupOuterClass.NodeGroupLocation 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.NodeGroupOuterClass.NodeGroupLocation 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.NodeGroupLocation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.k8s.v1.NodeGroupLocation)
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupLocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupLocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.Builder.class);
}
// Construct using yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.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();
zoneId_ = "";
subnetId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupLocation_descriptor;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation getDefaultInstanceForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation build() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation buildPartial() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation result = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation(this);
result.zoneId_ = zoneId_;
result.subnetId_ = subnetId_;
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.NodeGroupOuterClass.NodeGroupLocation) {
return mergeFrom((yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation other) {
if (other == yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation.getDefaultInstance()) return this;
if (!other.getZoneId().isEmpty()) {
zoneId_ = other.zoneId_;
onChanged();
}
if (!other.getSubnetId().isEmpty()) {
subnetId_ = other.subnetId_;
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 {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object zoneId_ = "";
/**
*
* ID of the availability zone where the nodes may reside.
*
*
* string zone_id = 1 [(.yandex.cloud.required) = true];
* @return The zoneId.
*/
public java.lang.String getZoneId() {
java.lang.Object ref = zoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the availability zone where the nodes may reside.
*
*
* string zone_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for zoneId.
*/
public com.google.protobuf.ByteString
getZoneIdBytes() {
java.lang.Object ref = zoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the availability zone where the nodes may reside.
*
*
* string zone_id = 1 [(.yandex.cloud.required) = true];
* @param value The zoneId to set.
* @return This builder for chaining.
*/
public Builder setZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
zoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the availability zone where the nodes may reside.
*
*
* string zone_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearZoneId() {
zoneId_ = getDefaultInstance().getZoneId();
onChanged();
return this;
}
/**
*
* ID of the availability zone where the nodes may reside.
*
*
* string zone_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for zoneId to set.
* @return This builder for chaining.
*/
public Builder setZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
zoneId_ = value;
onChanged();
return this;
}
private java.lang.Object subnetId_ = "";
/**
*
* ID of the subnet. If a network chosen for the Kubernetes cluster has only one subnet in the specified zone, subnet ID may be omitted.
*
*
* string subnet_id = 2;
* @return The subnetId.
*/
public java.lang.String getSubnetId() {
java.lang.Object ref = subnetId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subnetId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the subnet. If a network chosen for the Kubernetes cluster has only one subnet in the specified zone, subnet ID may be omitted.
*
*
* string subnet_id = 2;
* @return The bytes for subnetId.
*/
public com.google.protobuf.ByteString
getSubnetIdBytes() {
java.lang.Object ref = subnetId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subnetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the subnet. If a network chosen for the Kubernetes cluster has only one subnet in the specified zone, subnet ID may be omitted.
*
*
* string subnet_id = 2;
* @param value The subnetId to set.
* @return This builder for chaining.
*/
public Builder setSubnetId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
subnetId_ = value;
onChanged();
return this;
}
/**
*
* ID of the subnet. If a network chosen for the Kubernetes cluster has only one subnet in the specified zone, subnet ID may be omitted.
*
*
* string subnet_id = 2;
* @return This builder for chaining.
*/
public Builder clearSubnetId() {
subnetId_ = getDefaultInstance().getSubnetId();
onChanged();
return this;
}
/**
*
* ID of the subnet. If a network chosen for the Kubernetes cluster has only one subnet in the specified zone, subnet ID may be omitted.
*
*
* string subnet_id = 2;
* @param value The bytes for subnetId to set.
* @return This builder for chaining.
*/
public Builder setSubnetIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
subnetId_ = 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:yandex.cloud.k8s.v1.NodeGroupLocation)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.k8s.v1.NodeGroupLocation)
private static final yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation();
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupLocation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeGroupLocation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeGroupLocation(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.NodeGroupOuterClass.NodeGroupLocation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeGroupMaintenancePolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
* If set to true, automatic updates are installed in the specified period of time with no interaction from the user.
* If set to false, automatic upgrades are disabled.
*
*
* bool auto_upgrade = 1;
* @return The autoUpgrade.
*/
boolean getAutoUpgrade();
/**
*
* If set to true, automatic repairs are enabled. Default value is false.
*
*
* bool auto_repair = 2;
* @return The autoRepair.
*/
boolean getAutoRepair();
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
* @return Whether the maintenanceWindow field is set.
*/
boolean hasMaintenanceWindow();
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
* @return The maintenanceWindow.
*/
yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow getMaintenanceWindow();
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
*/
yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy}
*/
public static final class NodeGroupMaintenancePolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy)
NodeGroupMaintenancePolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeGroupMaintenancePolicy.newBuilder() to construct.
private NodeGroupMaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeGroupMaintenancePolicy() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeGroupMaintenancePolicy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeGroupMaintenancePolicy(
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 8: {
autoUpgrade_ = input.readBool();
break;
}
case 16: {
autoRepair_ = input.readBool();
break;
}
case 26: {
yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow.Builder subBuilder = null;
if (maintenanceWindow_ != null) {
subBuilder = maintenanceWindow_.toBuilder();
}
maintenanceWindow_ = input.readMessage(yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maintenanceWindow_);
maintenanceWindow_ = subBuilder.buildPartial();
}
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.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupMaintenancePolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupMaintenancePolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.Builder.class);
}
public static final int AUTO_UPGRADE_FIELD_NUMBER = 1;
private boolean autoUpgrade_;
/**
*
* If set to true, automatic updates are installed in the specified period of time with no interaction from the user.
* If set to false, automatic upgrades are disabled.
*
*
* bool auto_upgrade = 1;
* @return The autoUpgrade.
*/
@java.lang.Override
public boolean getAutoUpgrade() {
return autoUpgrade_;
}
public static final int AUTO_REPAIR_FIELD_NUMBER = 2;
private boolean autoRepair_;
/**
*
* If set to true, automatic repairs are enabled. Default value is false.
*
*
* bool auto_repair = 2;
* @return The autoRepair.
*/
@java.lang.Override
public boolean getAutoRepair() {
return autoRepair_;
}
public static final int MAINTENANCE_WINDOW_FIELD_NUMBER = 3;
private yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow maintenanceWindow_;
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
* @return Whether the maintenanceWindow field is set.
*/
@java.lang.Override
public boolean hasMaintenanceWindow() {
return maintenanceWindow_ != null;
}
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
* @return The maintenanceWindow.
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow getMaintenanceWindow() {
return maintenanceWindow_ == null ? yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow.getDefaultInstance() : maintenanceWindow_;
}
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
*/
@java.lang.Override
public yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder() {
return getMaintenanceWindow();
}
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 (autoUpgrade_ != false) {
output.writeBool(1, autoUpgrade_);
}
if (autoRepair_ != false) {
output.writeBool(2, autoRepair_);
}
if (maintenanceWindow_ != null) {
output.writeMessage(3, getMaintenanceWindow());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (autoUpgrade_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, autoUpgrade_);
}
if (autoRepair_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, autoRepair_);
}
if (maintenanceWindow_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMaintenanceWindow());
}
size += unknownFields.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.NodeGroupOuterClass.NodeGroupMaintenancePolicy)) {
return super.equals(obj);
}
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy other = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy) obj;
if (getAutoUpgrade()
!= other.getAutoUpgrade()) return false;
if (getAutoRepair()
!= other.getAutoRepair()) return false;
if (hasMaintenanceWindow() != other.hasMaintenanceWindow()) return false;
if (hasMaintenanceWindow()) {
if (!getMaintenanceWindow()
.equals(other.getMaintenanceWindow())) 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) + AUTO_UPGRADE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAutoUpgrade());
hash = (37 * hash) + AUTO_REPAIR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAutoRepair());
if (hasMaintenanceWindow()) {
hash = (37 * hash) + MAINTENANCE_WINDOW_FIELD_NUMBER;
hash = (53 * hash) + getMaintenanceWindow().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy 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.NodeGroupOuterClass.NodeGroupMaintenancePolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy 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.NodeGroupOuterClass.NodeGroupMaintenancePolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy 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.NodeGroupOuterClass.NodeGroupMaintenancePolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy parseFrom(
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.NodeGroupOuterClass.NodeGroupMaintenancePolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy parseDelimitedFrom(
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.NodeGroupOuterClass.NodeGroupMaintenancePolicy 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.NodeGroupOuterClass.NodeGroupMaintenancePolicy 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.NodeGroupOuterClass.NodeGroupMaintenancePolicy 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.NodeGroupMaintenancePolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy)
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupMaintenancePolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupMaintenancePolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.Builder.class);
}
// Construct using yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.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();
autoUpgrade_ = false;
autoRepair_ = false;
if (maintenanceWindowBuilder_ == null) {
maintenanceWindow_ = null;
} else {
maintenanceWindow_ = null;
maintenanceWindowBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_NodeGroupMaintenancePolicy_descriptor;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy getDefaultInstanceForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy build() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy buildPartial() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy result = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy(this);
result.autoUpgrade_ = autoUpgrade_;
result.autoRepair_ = autoRepair_;
if (maintenanceWindowBuilder_ == null) {
result.maintenanceWindow_ = maintenanceWindow_;
} else {
result.maintenanceWindow_ = maintenanceWindowBuilder_.build();
}
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.NodeGroupOuterClass.NodeGroupMaintenancePolicy) {
return mergeFrom((yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy other) {
if (other == yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy.getDefaultInstance()) return this;
if (other.getAutoUpgrade() != false) {
setAutoUpgrade(other.getAutoUpgrade());
}
if (other.getAutoRepair() != false) {
setAutoRepair(other.getAutoRepair());
}
if (other.hasMaintenanceWindow()) {
mergeMaintenanceWindow(other.getMaintenanceWindow());
}
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.NodeGroupOuterClass.NodeGroupMaintenancePolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean autoUpgrade_ ;
/**
*
* If set to true, automatic updates are installed in the specified period of time with no interaction from the user.
* If set to false, automatic upgrades are disabled.
*
*
* bool auto_upgrade = 1;
* @return The autoUpgrade.
*/
@java.lang.Override
public boolean getAutoUpgrade() {
return autoUpgrade_;
}
/**
*
* If set to true, automatic updates are installed in the specified period of time with no interaction from the user.
* If set to false, automatic upgrades are disabled.
*
*
* bool auto_upgrade = 1;
* @param value The autoUpgrade to set.
* @return This builder for chaining.
*/
public Builder setAutoUpgrade(boolean value) {
autoUpgrade_ = value;
onChanged();
return this;
}
/**
*
* If set to true, automatic updates are installed in the specified period of time with no interaction from the user.
* If set to false, automatic upgrades are disabled.
*
*
* bool auto_upgrade = 1;
* @return This builder for chaining.
*/
public Builder clearAutoUpgrade() {
autoUpgrade_ = false;
onChanged();
return this;
}
private boolean autoRepair_ ;
/**
*
* If set to true, automatic repairs are enabled. Default value is false.
*
*
* bool auto_repair = 2;
* @return The autoRepair.
*/
@java.lang.Override
public boolean getAutoRepair() {
return autoRepair_;
}
/**
*
* If set to true, automatic repairs are enabled. Default value is false.
*
*
* bool auto_repair = 2;
* @param value The autoRepair to set.
* @return This builder for chaining.
*/
public Builder setAutoRepair(boolean value) {
autoRepair_ = value;
onChanged();
return this;
}
/**
*
* If set to true, automatic repairs are enabled. Default value is false.
*
*
* bool auto_repair = 2;
* @return This builder for chaining.
*/
public Builder clearAutoRepair() {
autoRepair_ = false;
onChanged();
return this;
}
private yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow maintenanceWindow_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow, yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow.Builder, yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindowOrBuilder> maintenanceWindowBuilder_;
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
* @return Whether the maintenanceWindow field is set.
*/
public boolean hasMaintenanceWindow() {
return maintenanceWindowBuilder_ != null || maintenanceWindow_ != null;
}
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
* @return The maintenanceWindow.
*/
public yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow getMaintenanceWindow() {
if (maintenanceWindowBuilder_ == null) {
return maintenanceWindow_ == null ? yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow.getDefaultInstance() : maintenanceWindow_;
} else {
return maintenanceWindowBuilder_.getMessage();
}
}
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
*/
public Builder setMaintenanceWindow(yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow value) {
if (maintenanceWindowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maintenanceWindow_ = value;
onChanged();
} else {
maintenanceWindowBuilder_.setMessage(value);
}
return this;
}
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
*/
public Builder setMaintenanceWindow(
yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow.Builder builderForValue) {
if (maintenanceWindowBuilder_ == null) {
maintenanceWindow_ = builderForValue.build();
onChanged();
} else {
maintenanceWindowBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
*/
public Builder mergeMaintenanceWindow(yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow value) {
if (maintenanceWindowBuilder_ == null) {
if (maintenanceWindow_ != null) {
maintenanceWindow_ =
yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow.newBuilder(maintenanceWindow_).mergeFrom(value).buildPartial();
} else {
maintenanceWindow_ = value;
}
onChanged();
} else {
maintenanceWindowBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
*/
public Builder clearMaintenanceWindow() {
if (maintenanceWindowBuilder_ == null) {
maintenanceWindow_ = null;
onChanged();
} else {
maintenanceWindow_ = null;
maintenanceWindowBuilder_ = null;
}
return this;
}
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
*/
public yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow.Builder getMaintenanceWindowBuilder() {
onChanged();
return getMaintenanceWindowFieldBuilder().getBuilder();
}
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
*/
public yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder() {
if (maintenanceWindowBuilder_ != null) {
return maintenanceWindowBuilder_.getMessageOrBuilder();
} else {
return maintenanceWindow_ == null ?
yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow.getDefaultInstance() : maintenanceWindow_;
}
}
/**
*
* Maintenance window settings. Update will start at the specified time and last no more than the specified duration.
* The time is set in UTC.
*
*
* .yandex.cloud.k8s.v1.MaintenanceWindow maintenance_window = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow, yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow.Builder, yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindowOrBuilder>
getMaintenanceWindowFieldBuilder() {
if (maintenanceWindowBuilder_ == null) {
maintenanceWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow, yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindow.Builder, yandex.cloud.api.k8s.v1.Maintenance.MaintenanceWindowOrBuilder>(
getMaintenanceWindow(),
getParentForChildren(),
isClean());
maintenanceWindow_ = null;
}
return maintenanceWindowBuilder_;
}
@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.NodeGroupMaintenancePolicy)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.k8s.v1.NodeGroupMaintenancePolicy)
private static final yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy();
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.NodeGroupMaintenancePolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeGroupMaintenancePolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeGroupMaintenancePolicy(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.NodeGroupOuterClass.NodeGroupMaintenancePolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeployPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.k8s.v1.DeployPolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
* The maximum number of running instances that can be taken offline (i.e.,
* stopped or deleted) at the same time during the update process.
* If [max_expansion] is not specified or set to zero, [max_unavailable] must
* be set to a non-zero value.
*
*
* int64 max_unavailable = 1 [(.yandex.cloud.value) = "0-100"];
* @return The maxUnavailable.
*/
long getMaxUnavailable();
/**
*
* The maximum number of instances that can be temporarily allocated above
* the group's target size during the update process.
* If [max_unavailable] is not specified or set to zero, [max_expansion] must
* be set to a non-zero value.
*
*
* int64 max_expansion = 2 [(.yandex.cloud.value) = "0-100"];
* @return The maxExpansion.
*/
long getMaxExpansion();
}
/**
* Protobuf type {@code yandex.cloud.k8s.v1.DeployPolicy}
*/
public static final class DeployPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.k8s.v1.DeployPolicy)
DeployPolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeployPolicy.newBuilder() to construct.
private DeployPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeployPolicy() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeployPolicy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeployPolicy(
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 8: {
maxUnavailable_ = input.readInt64();
break;
}
case 16: {
maxExpansion_ = 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 yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_DeployPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_DeployPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.Builder.class);
}
public static final int MAX_UNAVAILABLE_FIELD_NUMBER = 1;
private long maxUnavailable_;
/**
*
* The maximum number of running instances that can be taken offline (i.e.,
* stopped or deleted) at the same time during the update process.
* If [max_expansion] is not specified or set to zero, [max_unavailable] must
* be set to a non-zero value.
*
*
* int64 max_unavailable = 1 [(.yandex.cloud.value) = "0-100"];
* @return The maxUnavailable.
*/
@java.lang.Override
public long getMaxUnavailable() {
return maxUnavailable_;
}
public static final int MAX_EXPANSION_FIELD_NUMBER = 2;
private long maxExpansion_;
/**
*
* The maximum number of instances that can be temporarily allocated above
* the group's target size during the update process.
* If [max_unavailable] is not specified or set to zero, [max_expansion] must
* be set to a non-zero value.
*
*
* int64 max_expansion = 2 [(.yandex.cloud.value) = "0-100"];
* @return The maxExpansion.
*/
@java.lang.Override
public long getMaxExpansion() {
return maxExpansion_;
}
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 (maxUnavailable_ != 0L) {
output.writeInt64(1, maxUnavailable_);
}
if (maxExpansion_ != 0L) {
output.writeInt64(2, maxExpansion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (maxUnavailable_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, maxUnavailable_);
}
if (maxExpansion_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, maxExpansion_);
}
size += unknownFields.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.NodeGroupOuterClass.DeployPolicy)) {
return super.equals(obj);
}
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy other = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy) obj;
if (getMaxUnavailable()
!= other.getMaxUnavailable()) return false;
if (getMaxExpansion()
!= other.getMaxExpansion()) 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) + MAX_UNAVAILABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxUnavailable());
hash = (37 * hash) + MAX_EXPANSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxExpansion());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy 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.NodeGroupOuterClass.DeployPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy 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.NodeGroupOuterClass.DeployPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy 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.NodeGroupOuterClass.DeployPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy parseFrom(
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.NodeGroupOuterClass.DeployPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy parseDelimitedFrom(
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.NodeGroupOuterClass.DeployPolicy 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.NodeGroupOuterClass.DeployPolicy 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.NodeGroupOuterClass.DeployPolicy 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.DeployPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.k8s.v1.DeployPolicy)
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_DeployPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_DeployPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.class, yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.Builder.class);
}
// Construct using yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.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();
maxUnavailable_ = 0L;
maxExpansion_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.internal_static_yandex_cloud_k8s_v1_DeployPolicy_descriptor;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy getDefaultInstanceForType() {
return yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy build() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy buildPartial() {
yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy result = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy(this);
result.maxUnavailable_ = maxUnavailable_;
result.maxExpansion_ = maxExpansion_;
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.NodeGroupOuterClass.DeployPolicy) {
return mergeFrom((yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy other) {
if (other == yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy.getDefaultInstance()) return this;
if (other.getMaxUnavailable() != 0L) {
setMaxUnavailable(other.getMaxUnavailable());
}
if (other.getMaxExpansion() != 0L) {
setMaxExpansion(other.getMaxExpansion());
}
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.NodeGroupOuterClass.DeployPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long maxUnavailable_ ;
/**
*
* The maximum number of running instances that can be taken offline (i.e.,
* stopped or deleted) at the same time during the update process.
* If [max_expansion] is not specified or set to zero, [max_unavailable] must
* be set to a non-zero value.
*
*
* int64 max_unavailable = 1 [(.yandex.cloud.value) = "0-100"];
* @return The maxUnavailable.
*/
@java.lang.Override
public long getMaxUnavailable() {
return maxUnavailable_;
}
/**
*
* The maximum number of running instances that can be taken offline (i.e.,
* stopped or deleted) at the same time during the update process.
* If [max_expansion] is not specified or set to zero, [max_unavailable] must
* be set to a non-zero value.
*
*
* int64 max_unavailable = 1 [(.yandex.cloud.value) = "0-100"];
* @param value The maxUnavailable to set.
* @return This builder for chaining.
*/
public Builder setMaxUnavailable(long value) {
maxUnavailable_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of running instances that can be taken offline (i.e.,
* stopped or deleted) at the same time during the update process.
* If [max_expansion] is not specified or set to zero, [max_unavailable] must
* be set to a non-zero value.
*
*
* int64 max_unavailable = 1 [(.yandex.cloud.value) = "0-100"];
* @return This builder for chaining.
*/
public Builder clearMaxUnavailable() {
maxUnavailable_ = 0L;
onChanged();
return this;
}
private long maxExpansion_ ;
/**
*
* The maximum number of instances that can be temporarily allocated above
* the group's target size during the update process.
* If [max_unavailable] is not specified or set to zero, [max_expansion] must
* be set to a non-zero value.
*
*
* int64 max_expansion = 2 [(.yandex.cloud.value) = "0-100"];
* @return The maxExpansion.
*/
@java.lang.Override
public long getMaxExpansion() {
return maxExpansion_;
}
/**
*
* The maximum number of instances that can be temporarily allocated above
* the group's target size during the update process.
* If [max_unavailable] is not specified or set to zero, [max_expansion] must
* be set to a non-zero value.
*
*
* int64 max_expansion = 2 [(.yandex.cloud.value) = "0-100"];
* @param value The maxExpansion to set.
* @return This builder for chaining.
*/
public Builder setMaxExpansion(long value) {
maxExpansion_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of instances that can be temporarily allocated above
* the group's target size during the update process.
* If [max_unavailable] is not specified or set to zero, [max_expansion] must
* be set to a non-zero value.
*
*
* int64 max_expansion = 2 [(.yandex.cloud.value) = "0-100"];
* @return This builder for chaining.
*/
public Builder clearMaxExpansion() {
maxExpansion_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.k8s.v1.DeployPolicy)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.k8s.v1.DeployPolicy)
private static final yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy();
}
public static yandex.cloud.api.k8s.v1.NodeGroupOuterClass.DeployPolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeployPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeployPolicy(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.NodeGroupOuterClass.DeployPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_k8s_v1_NodeGroup_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_k8s_v1_NodeGroup_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_k8s_v1_NodeGroup_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_k8s_v1_NodeGroup_LabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_k8s_v1_NodeGroup_NodeLabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_k8s_v1_NodeGroup_NodeLabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_k8s_v1_ScalePolicy_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_k8s_v1_ScalePolicy_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_k8s_v1_ScalePolicy_FixedScale_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_k8s_v1_ScalePolicy_FixedScale_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_k8s_v1_ScalePolicy_AutoScale_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_k8s_v1_ScalePolicy_AutoScale_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_k8s_v1_NodeGroupAllocationPolicy_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_k8s_v1_NodeGroupAllocationPolicy_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_k8s_v1_NodeGroupLocation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_k8s_v1_NodeGroupLocation_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_k8s_v1_NodeGroupMaintenancePolicy_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_k8s_v1_NodeGroupMaintenancePolicy_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_k8s_v1_DeployPolicy_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_k8s_v1_DeployPolicy_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/node_group.proto\022\023" +
"yandex.cloud.k8s.v1\032\037google/protobuf/tim" +
"estamp.proto\032%yandex/cloud/k8s/v1/mainte" +
"nance.proto\032\036yandex/cloud/k8s/v1/node.pr" +
"oto\032!yandex/cloud/k8s/v1/version.proto\032\035" +
"yandex/cloud/validation.proto\"\240\010\n\tNodeGr" +
"oup\022\n\n\002id\030\001 \001(\t\022\022\n\ncluster_id\030\002 \001(\t\022.\n\nc" +
"reated_at\030\003 \001(\0132\032.google.protobuf.Timest" +
"amp\022\014\n\004name\030\004 \001(\t\022\023\n\013description\030\005 \001(\t\022:" +
"\n\006labels\030\006 \003(\0132*.yandex.cloud.k8s.v1.Nod" +
"eGroup.LabelsEntry\0225\n\006status\030\007 \001(\0162%.yan" +
"dex.cloud.k8s.v1.NodeGroup.Status\0228\n\rnod" +
"e_template\030\010 \001(\0132!.yandex.cloud.k8s.v1.N" +
"odeTemplate\0226\n\014scale_policy\030\t \001(\0132 .yand" +
"ex.cloud.k8s.v1.ScalePolicy\022I\n\021allocatio" +
"n_policy\030\n \001(\0132..yandex.cloud.k8s.v1.Nod" +
"eGroupAllocationPolicy\0228\n\rdeploy_policy\030" +
"\022 \001(\0132!.yandex.cloud.k8s.v1.DeployPolicy" +
"\022\031\n\021instance_group_id\030\013 \001(\t\022\024\n\014node_vers" +
"ion\030\014 \001(\t\0226\n\014version_info\030\r \001(\0132 .yandex" +
".cloud.k8s.v1.VersionInfo\022K\n\022maintenance" +
"_policy\030\016 \001(\0132/.yandex.cloud.k8s.v1.Node" +
"GroupMaintenancePolicy\022\036\n\026allowed_unsafe" +
"_sysctls\030\017 \003(\t\022/\n\013node_taints\030\020 \003(\0132\032.ya" +
"ndex.cloud.k8s.v1.Taint\022C\n\013node_labels\030\021" +
" \003(\0132..yandex.cloud.k8s.v1.NodeGroup.Nod" +
"eLabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" +
"\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017NodeLabelsEntry\022\013" +
"\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\207\001\n\006Statu" +
"s\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONIN" +
"G\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STO" +
"PPING\020\004\022\013\n\007STOPPED\020\005\022\014\n\010DELETING\020\006\022\014\n\010ST" +
"ARTING\020\007\"\266\002\n\013ScalePolicy\022B\n\013fixed_scale\030" +
"\001 \001(\0132+.yandex.cloud.k8s.v1.ScalePolicy." +
"FixedScaleH\000\022@\n\nauto_scale\030\002 \001(\0132*.yande" +
"x.cloud.k8s.v1.ScalePolicy.AutoScaleH\000\032%" +
"\n\nFixedScale\022\027\n\004size\030\001 \001(\003B\t\372\3071\0050-100\032f\n" +
"\tAutoScale\022\033\n\010min_size\030\001 \001(\003B\t\372\3071\0050-100\022" +
"\033\n\010max_size\030\002 \001(\003B\t\372\3071\0050-100\022\037\n\014initial_" +
"size\030\003 \001(\003B\t\372\3071\0050-100B\022\n\nscale_type\022\004\300\3011" +
"\001\"V\n\031NodeGroupAllocationPolicy\0229\n\tlocati" +
"ons\030\001 \003(\0132&.yandex.cloud.k8s.v1.NodeGrou" +
"pLocation\"=\n\021NodeGroupLocation\022\025\n\007zone_i" +
"d\030\001 \001(\tB\004\350\3071\001\022\021\n\tsubnet_id\030\002 \001(\t\"\213\001\n\032Nod" +
"eGroupMaintenancePolicy\022\024\n\014auto_upgrade\030" +
"\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022B\n\022maintenanc" +
"e_window\030\003 \001(\0132&.yandex.cloud.k8s.v1.Mai" +
"ntenanceWindow\"T\n\014DeployPolicy\022\"\n\017max_un" +
"available\030\001 \001(\003B\t\372\3071\0050-100\022 \n\rmax_expans" +
"ion\030\002 \001(\003B\t\372\3071\0050-100BV\n\027yandex.cloud.api" +
".k8s.v1Z;github.com/yandex-cloud/go-genp" +
"roto/yandex/cloud/k8s/v1;k8sb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
yandex.cloud.api.k8s.v1.Maintenance.getDescriptor(),
yandex.cloud.api.k8s.v1.NodeOuterClass.getDescriptor(),
yandex.cloud.api.k8s.v1.Version.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_k8s_v1_NodeGroup_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_k8s_v1_NodeGroup_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_k8s_v1_NodeGroup_descriptor,
new java.lang.String[] { "Id", "ClusterId", "CreatedAt", "Name", "Description", "Labels", "Status", "NodeTemplate", "ScalePolicy", "AllocationPolicy", "DeployPolicy", "InstanceGroupId", "NodeVersion", "VersionInfo", "MaintenancePolicy", "AllowedUnsafeSysctls", "NodeTaints", "NodeLabels", });
internal_static_yandex_cloud_k8s_v1_NodeGroup_LabelsEntry_descriptor =
internal_static_yandex_cloud_k8s_v1_NodeGroup_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_k8s_v1_NodeGroup_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_k8s_v1_NodeGroup_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_k8s_v1_NodeGroup_NodeLabelsEntry_descriptor =
internal_static_yandex_cloud_k8s_v1_NodeGroup_descriptor.getNestedTypes().get(1);
internal_static_yandex_cloud_k8s_v1_NodeGroup_NodeLabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_k8s_v1_NodeGroup_NodeLabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_k8s_v1_ScalePolicy_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_k8s_v1_ScalePolicy_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_k8s_v1_ScalePolicy_descriptor,
new java.lang.String[] { "FixedScale", "AutoScale", "ScaleType", });
internal_static_yandex_cloud_k8s_v1_ScalePolicy_FixedScale_descriptor =
internal_static_yandex_cloud_k8s_v1_ScalePolicy_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_k8s_v1_ScalePolicy_FixedScale_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_k8s_v1_ScalePolicy_FixedScale_descriptor,
new java.lang.String[] { "Size", });
internal_static_yandex_cloud_k8s_v1_ScalePolicy_AutoScale_descriptor =
internal_static_yandex_cloud_k8s_v1_ScalePolicy_descriptor.getNestedTypes().get(1);
internal_static_yandex_cloud_k8s_v1_ScalePolicy_AutoScale_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_k8s_v1_ScalePolicy_AutoScale_descriptor,
new java.lang.String[] { "MinSize", "MaxSize", "InitialSize", });
internal_static_yandex_cloud_k8s_v1_NodeGroupAllocationPolicy_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_k8s_v1_NodeGroupAllocationPolicy_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_k8s_v1_NodeGroupAllocationPolicy_descriptor,
new java.lang.String[] { "Locations", });
internal_static_yandex_cloud_k8s_v1_NodeGroupLocation_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_k8s_v1_NodeGroupLocation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_k8s_v1_NodeGroupLocation_descriptor,
new java.lang.String[] { "ZoneId", "SubnetId", });
internal_static_yandex_cloud_k8s_v1_NodeGroupMaintenancePolicy_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_k8s_v1_NodeGroupMaintenancePolicy_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_k8s_v1_NodeGroupMaintenancePolicy_descriptor,
new java.lang.String[] { "AutoUpgrade", "AutoRepair", "MaintenanceWindow", });
internal_static_yandex_cloud_k8s_v1_DeployPolicy_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_k8s_v1_DeployPolicy_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_k8s_v1_DeployPolicy_descriptor,
new java.lang.String[] { "MaxUnavailable", "MaxExpansion", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(yandex.cloud.api.Validation.exactlyOne);
registry.add(yandex.cloud.api.Validation.required);
registry.add(yandex.cloud.api.Validation.value);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.TimestampProto.getDescriptor();
yandex.cloud.api.k8s.v1.Maintenance.getDescriptor();
yandex.cloud.api.k8s.v1.NodeOuterClass.getDescriptor();
yandex.cloud.api.k8s.v1.Version.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy