yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/mdb/elasticsearch/v1/cluster.proto
package yandex.cloud.api.mdb.elasticsearch.v1;
public final class ClusterOuterClass {
private ClusterOuterClass() {}
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 ClusterOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.elasticsearch.v1.Cluster)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the Elasticsearch cluster.
* This ID is assigned at creation time.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of the Elasticsearch cluster.
* This ID is assigned at creation time.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* ID of the folder that the Elasticsearch cluster belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder that the Elasticsearch cluster belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* 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 Elasticsearch cluster.
* The name must be unique within the folder. 1-63 characters long.
*
*
* string name = 4;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the Elasticsearch cluster.
* The name must be unique within the folder. 1-63 characters long.
*
*
* string name = 4;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the Elasticsearch cluster. 0-256 characters long.
*
*
* string description = 5;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the Elasticsearch cluster. 0-256 characters long.
*
*
* string description = 5;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* map<string, string> labels = 6;
*/
int getLabelsCount();
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* map<string, string> labels = 6;
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* map<string, string> labels = 6;
*/
java.util.Map
getLabelsMap();
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* map<string, string> labels = 6;
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* map<string, string> labels = 6;
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
/**
*
* Deployment environment of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Environment environment = 7;
* @return The enum numeric value on the wire for environment.
*/
int getEnvironmentValue();
/**
*
* Deployment environment of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Environment environment = 7;
* @return The environment.
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Environment getEnvironment();
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
java.util.List
getMonitoringList();
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring getMonitoring(int index);
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
int getMonitoringCount();
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
java.util.List extends yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.MonitoringOrBuilder>
getMonitoringOrBuilderList();
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.MonitoringOrBuilder getMonitoringOrBuilder(
int index);
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
* @return Whether the config field is set.
*/
boolean hasConfig();
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
* @return The config.
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig getConfig();
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfigOrBuilder getConfigOrBuilder();
/**
*
* ID of the network that the cluster belongs to.
*
*
* string network_id = 10;
* @return The networkId.
*/
java.lang.String getNetworkId();
/**
*
* ID of the network that the cluster belongs to.
*
*
* string network_id = 10;
* @return The bytes for networkId.
*/
com.google.protobuf.ByteString
getNetworkIdBytes();
/**
*
* Aggregated cluster health.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Health health = 11;
* @return The enum numeric value on the wire for health.
*/
int getHealthValue();
/**
*
* Aggregated cluster health.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Health health = 11;
* @return The health.
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Health getHealth();
/**
*
* Current state of the cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Status status = 12;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
*
* Current state of the cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Status status = 12;
* @return The status.
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Status getStatus();
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @return A list containing the securityGroupIds.
*/
java.util.List
getSecurityGroupIdsList();
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @return The count of securityGroupIds.
*/
int getSecurityGroupIdsCount();
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
java.lang.String getSecurityGroupIds(int index);
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index);
/**
*
* ID of the service account used for access to Object Storage.
*
*
* string service_account_id = 14;
* @return The serviceAccountId.
*/
java.lang.String getServiceAccountId();
/**
*
* ID of the service account used for access to Object Storage.
*
*
* string service_account_id = 14;
* @return The bytes for serviceAccountId.
*/
com.google.protobuf.ByteString
getServiceAccountIdBytes();
/**
*
* Deletion Protection inhibits deletion of the cluster
*
*
* bool deletion_protection = 15;
* @return The deletionProtection.
*/
boolean getDeletionProtection();
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
* @return Whether the maintenanceWindow field is set.
*/
boolean hasMaintenanceWindow();
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
* @return The maintenanceWindow.
*/
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow getMaintenanceWindow();
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
*/
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder();
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
* @return Whether the plannedOperation field is set.
*/
boolean hasPlannedOperation();
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
* @return The plannedOperation.
*/
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation getPlannedOperation();
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
*/
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperationOrBuilder getPlannedOperationOrBuilder();
}
/**
*
* An Elasticsearch cluster resource.
* For more information, see the [Concepts](/docs/managed-elasticsearch/concepts) section of the documentation.
*
*
* Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.Cluster}
*/
public static final class Cluster extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.elasticsearch.v1.Cluster)
ClusterOrBuilder {
private static final long serialVersionUID = 0L;
// Use Cluster.newBuilder() to construct.
private Cluster(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Cluster() {
id_ = "";
folderId_ = "";
name_ = "";
description_ = "";
environment_ = 0;
monitoring_ = java.util.Collections.emptyList();
networkId_ = "";
health_ = 0;
status_ = 0;
securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
serviceAccountId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Cluster();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Cluster(
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();
folderId_ = 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();
environment_ = rawValue;
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
monitoring_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
monitoring_.add(
input.readMessage(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.parser(), extensionRegistry));
break;
}
case 74: {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.Builder subBuilder = null;
if (config_ != null) {
subBuilder = config_.toBuilder();
}
config_ = input.readMessage(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(config_);
config_ = subBuilder.buildPartial();
}
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
networkId_ = s;
break;
}
case 88: {
int rawValue = input.readEnum();
health_ = rawValue;
break;
}
case 96: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 106: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
securityGroupIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
securityGroupIds_.add(s);
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
serviceAccountId_ = s;
break;
}
case 120: {
deletionProtection_ = input.readBool();
break;
}
case 130: {
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow.Builder subBuilder = null;
if (maintenanceWindow_ != null) {
subBuilder = maintenanceWindow_.toBuilder();
}
maintenanceWindow_ = input.readMessage(yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maintenanceWindow_);
maintenanceWindow_ = subBuilder.buildPartial();
}
break;
}
case 138: {
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation.Builder subBuilder = null;
if (plannedOperation_ != null) {
subBuilder = plannedOperation_.toBuilder();
}
plannedOperation_ = input.readMessage(yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(plannedOperation_);
plannedOperation_ = 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)) {
monitoring_ = java.util.Collections.unmodifiableList(monitoring_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
securityGroupIds_ = securityGroupIds_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.elasticsearch.v1.Cluster.Environment}
*/
public enum Environment
implements com.google.protobuf.ProtocolMessageEnum {
/**
* ENVIRONMENT_UNSPECIFIED = 0;
*/
ENVIRONMENT_UNSPECIFIED(0),
/**
*
* stable environment with a conservative update policy when only hotfixes are applied during regular maintenance.
*
*
* PRODUCTION = 1;
*/
PRODUCTION(1),
/**
*
* environment with a more aggressive update policy when new versions are rolled out irrespective of backward compatibility.
*
*
* PRESTABLE = 2;
*/
PRESTABLE(2),
UNRECOGNIZED(-1),
;
/**
* ENVIRONMENT_UNSPECIFIED = 0;
*/
public static final int ENVIRONMENT_UNSPECIFIED_VALUE = 0;
/**
*
* stable environment with a conservative update policy when only hotfixes are applied during regular maintenance.
*
*
* PRODUCTION = 1;
*/
public static final int PRODUCTION_VALUE = 1;
/**
*
* environment with a more aggressive update policy when new versions are rolled out irrespective of backward compatibility.
*
*
* PRESTABLE = 2;
*/
public static final int PRESTABLE_VALUE = 2;
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 Environment 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 Environment forNumber(int value) {
switch (value) {
case 0: return ENVIRONMENT_UNSPECIFIED;
case 1: return PRODUCTION;
case 2: return PRESTABLE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Environment> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Environment findValueByNumber(int number) {
return Environment.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.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.getDescriptor().getEnumTypes().get(0);
}
private static final Environment[] VALUES = values();
public static Environment 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 Environment(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.elasticsearch.v1.Cluster.Environment)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.elasticsearch.v1.Cluster.Health}
*/
public enum Health
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* state of the cluster is unknown ([Host.health] of all hosts in the cluster is `UNKNOWN`).
*
*
* HEALTH_UNKNOWN = 0;
*/
HEALTH_UNKNOWN(0),
/**
*
* cluster is alive and well ([Host.health] of all hosts in the cluster is `ALIVE`).
*
*
* ALIVE = 1;
*/
ALIVE(1),
/**
*
* cluster is inoperable ([Host.health] of all hosts in the cluster is `DEAD`).
*
*
* DEAD = 2;
*/
DEAD(2),
/**
*
* cluster is in degraded state ([Host.health] of at least one of the hosts in the cluster is not `ALIVE`).
*
*
* DEGRADED = 3;
*/
DEGRADED(3),
UNRECOGNIZED(-1),
;
/**
*
* state of the cluster is unknown ([Host.health] of all hosts in the cluster is `UNKNOWN`).
*
*
* HEALTH_UNKNOWN = 0;
*/
public static final int HEALTH_UNKNOWN_VALUE = 0;
/**
*
* cluster is alive and well ([Host.health] of all hosts in the cluster is `ALIVE`).
*
*
* ALIVE = 1;
*/
public static final int ALIVE_VALUE = 1;
/**
*
* cluster is inoperable ([Host.health] of all hosts in the cluster is `DEAD`).
*
*
* DEAD = 2;
*/
public static final int DEAD_VALUE = 2;
/**
*
* cluster is in degraded state ([Host.health] of at least one of the hosts in the cluster is not `ALIVE`).
*
*
* DEGRADED = 3;
*/
public static final int DEGRADED_VALUE = 3;
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 Health 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 Health forNumber(int value) {
switch (value) {
case 0: return HEALTH_UNKNOWN;
case 1: return ALIVE;
case 2: return DEAD;
case 3: return DEGRADED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Health> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Health findValueByNumber(int number) {
return Health.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.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.getDescriptor().getEnumTypes().get(1);
}
private static final Health[] VALUES = values();
public static Health 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 Health(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.elasticsearch.v1.Cluster.Health)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.elasticsearch.v1.Cluster.Status}
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* cluster state is unknown.
*
*
* STATUS_UNKNOWN = 0;
*/
STATUS_UNKNOWN(0),
/**
*
* cluster is being created.
*
*
* CREATING = 1;
*/
CREATING(1),
/**
*
* cluster is running normally.
*
*
* RUNNING = 2;
*/
RUNNING(2),
/**
*
* cluster encountered a problem and cannot operate.
*
*
* ERROR = 3;
*/
ERROR(3),
/**
*
* cluster is being updated.
*
*
* UPDATING = 4;
*/
UPDATING(4),
/**
*
* cluster is stopping.
*
*
* STOPPING = 5;
*/
STOPPING(5),
/**
*
* cluster stopped.
*
*
* STOPPED = 6;
*/
STOPPED(6),
/**
*
* cluster is starting.
*
*
* STARTING = 7;
*/
STARTING(7),
UNRECOGNIZED(-1),
;
/**
*
* cluster state is unknown.
*
*
* STATUS_UNKNOWN = 0;
*/
public static final int STATUS_UNKNOWN_VALUE = 0;
/**
*
* cluster is being created.
*
*
* CREATING = 1;
*/
public static final int CREATING_VALUE = 1;
/**
*
* cluster is running normally.
*
*
* RUNNING = 2;
*/
public static final int RUNNING_VALUE = 2;
/**
*
* cluster encountered a problem and cannot operate.
*
*
* ERROR = 3;
*/
public static final int ERROR_VALUE = 3;
/**
*
* cluster is being updated.
*
*
* UPDATING = 4;
*/
public static final int UPDATING_VALUE = 4;
/**
*
* cluster is stopping.
*
*
* STOPPING = 5;
*/
public static final int STOPPING_VALUE = 5;
/**
*
* cluster stopped.
*
*
* STOPPED = 6;
*/
public static final int STOPPED_VALUE = 6;
/**
*
* cluster is starting.
*
*
* 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_UNKNOWN;
case 1: return CREATING;
case 2: return RUNNING;
case 3: return ERROR;
case 4: return UPDATING;
case 5: return STOPPING;
case 6: return STOPPED;
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.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.getDescriptor().getEnumTypes().get(2);
}
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.mdb.elasticsearch.v1.Cluster.Status)
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of the Elasticsearch cluster.
* This ID is assigned at creation time.
*
*
* 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 Elasticsearch cluster.
* This ID is assigned at creation time.
*
*
* 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 FOLDER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder that the Elasticsearch cluster belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
@java.lang.Override
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
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();
folderId_ = s;
return s;
}
}
/**
*
* ID of the folder that the Elasticsearch cluster belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = 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 Elasticsearch cluster.
* The name must be unique within the folder. 1-63 characters long.
*
*
* 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 Elasticsearch cluster.
* The name must be unique within the folder. 1-63 characters long.
*
*
* 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 Elasticsearch cluster. 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 Elasticsearch cluster. 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.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_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();
}
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* 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();
}
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* 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;
}
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* 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 ENVIRONMENT_FIELD_NUMBER = 7;
private int environment_;
/**
*
* Deployment environment of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Environment environment = 7;
* @return The enum numeric value on the wire for environment.
*/
@java.lang.Override public int getEnvironmentValue() {
return environment_;
}
/**
*
* Deployment environment of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Environment environment = 7;
* @return The environment.
*/
@java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Environment getEnvironment() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Environment result = yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Environment.valueOf(environment_);
return result == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Environment.UNRECOGNIZED : result;
}
public static final int MONITORING_FIELD_NUMBER = 8;
private java.util.List monitoring_;
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
@java.lang.Override
public java.util.List getMonitoringList() {
return monitoring_;
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.MonitoringOrBuilder>
getMonitoringOrBuilderList() {
return monitoring_;
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
@java.lang.Override
public int getMonitoringCount() {
return monitoring_.size();
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring getMonitoring(int index) {
return monitoring_.get(index);
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.MonitoringOrBuilder getMonitoringOrBuilder(
int index) {
return monitoring_.get(index);
}
public static final int CONFIG_FIELD_NUMBER = 9;
private yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig config_;
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
* @return Whether the config field is set.
*/
@java.lang.Override
public boolean hasConfig() {
return config_ != null;
}
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
* @return The config.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig getConfig() {
return config_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance() : config_;
}
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfigOrBuilder getConfigOrBuilder() {
return getConfig();
}
public static final int NETWORK_ID_FIELD_NUMBER = 10;
private volatile java.lang.Object networkId_;
/**
*
* ID of the network that the cluster belongs to.
*
*
* string network_id = 10;
* @return The networkId.
*/
@java.lang.Override
public java.lang.String getNetworkId() {
java.lang.Object ref = networkId_;
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();
networkId_ = s;
return s;
}
}
/**
*
* ID of the network that the cluster belongs to.
*
*
* string network_id = 10;
* @return The bytes for networkId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNetworkIdBytes() {
java.lang.Object ref = networkId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
networkId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HEALTH_FIELD_NUMBER = 11;
private int health_;
/**
*
* Aggregated cluster health.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Health health = 11;
* @return The enum numeric value on the wire for health.
*/
@java.lang.Override public int getHealthValue() {
return health_;
}
/**
*
* Aggregated cluster health.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Health health = 11;
* @return The health.
*/
@java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Health getHealth() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Health result = yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Health.valueOf(health_);
return result == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Health.UNRECOGNIZED : result;
}
public static final int STATUS_FIELD_NUMBER = 12;
private int status_;
/**
*
* Current state of the cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Status status = 12;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Current state of the cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Status status = 12;
* @return The status.
*/
@java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Status result = yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Status.valueOf(status_);
return result == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Status.UNRECOGNIZED : result;
}
public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 13;
private com.google.protobuf.LazyStringList securityGroupIds_;
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_;
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
public java.lang.String getSecurityGroupIds(int index) {
return securityGroupIds_.get(index);
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index) {
return securityGroupIds_.getByteString(index);
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 14;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account used for access to Object Storage.
*
*
* string service_account_id = 14;
* @return The serviceAccountId.
*/
@java.lang.Override
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
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();
serviceAccountId_ = s;
return s;
}
}
/**
*
* ID of the service account used for access to Object Storage.
*
*
* string service_account_id = 14;
* @return The bytes for serviceAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DELETION_PROTECTION_FIELD_NUMBER = 15;
private boolean deletionProtection_;
/**
*
* Deletion Protection inhibits deletion of the cluster
*
*
* bool deletion_protection = 15;
* @return The deletionProtection.
*/
@java.lang.Override
public boolean getDeletionProtection() {
return deletionProtection_;
}
public static final int MAINTENANCE_WINDOW_FIELD_NUMBER = 16;
private yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow maintenanceWindow_;
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
* @return Whether the maintenanceWindow field is set.
*/
@java.lang.Override
public boolean hasMaintenanceWindow() {
return maintenanceWindow_ != null;
}
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
* @return The maintenanceWindow.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow getMaintenanceWindow() {
return maintenanceWindow_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow.getDefaultInstance() : maintenanceWindow_;
}
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder() {
return getMaintenanceWindow();
}
public static final int PLANNED_OPERATION_FIELD_NUMBER = 17;
private yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation plannedOperation_;
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
* @return Whether the plannedOperation field is set.
*/
@java.lang.Override
public boolean hasPlannedOperation() {
return plannedOperation_ != null;
}
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
* @return The plannedOperation.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation getPlannedOperation() {
return plannedOperation_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation.getDefaultInstance() : plannedOperation_;
}
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperationOrBuilder getPlannedOperationOrBuilder() {
return getPlannedOperation();
}
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(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_);
}
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 (environment_ != yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) {
output.writeEnum(7, environment_);
}
for (int i = 0; i < monitoring_.size(); i++) {
output.writeMessage(8, monitoring_.get(i));
}
if (config_ != null) {
output.writeMessage(9, getConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, networkId_);
}
if (health_ != yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Health.HEALTH_UNKNOWN.getNumber()) {
output.writeEnum(11, health_);
}
if (status_ != yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Status.STATUS_UNKNOWN.getNumber()) {
output.writeEnum(12, status_);
}
for (int i = 0; i < securityGroupIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, securityGroupIds_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, serviceAccountId_);
}
if (deletionProtection_ != false) {
output.writeBool(15, deletionProtection_);
}
if (maintenanceWindow_ != null) {
output.writeMessage(16, getMaintenanceWindow());
}
if (plannedOperation_ != null) {
output.writeMessage(17, getPlannedOperation());
}
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(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_);
}
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 (environment_ != yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, environment_);
}
for (int i = 0; i < monitoring_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, monitoring_.get(i));
}
if (config_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, networkId_);
}
if (health_ != yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Health.HEALTH_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(11, health_);
}
if (status_ != yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Status.STATUS_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(12, status_);
}
{
int dataSize = 0;
for (int i = 0; i < securityGroupIds_.size(); i++) {
dataSize += computeStringSizeNoTag(securityGroupIds_.getRaw(i));
}
size += dataSize;
size += 1 * getSecurityGroupIdsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, serviceAccountId_);
}
if (deletionProtection_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(15, deletionProtection_);
}
if (maintenanceWindow_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getMaintenanceWindow());
}
if (plannedOperation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getPlannedOperation());
}
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.mdb.elasticsearch.v1.ClusterOuterClass.Cluster)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster other = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getFolderId()
.equals(other.getFolderId())) 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 (environment_ != other.environment_) return false;
if (!getMonitoringList()
.equals(other.getMonitoringList())) return false;
if (hasConfig() != other.hasConfig()) return false;
if (hasConfig()) {
if (!getConfig()
.equals(other.getConfig())) return false;
}
if (!getNetworkId()
.equals(other.getNetworkId())) return false;
if (health_ != other.health_) return false;
if (status_ != other.status_) return false;
if (!getSecurityGroupIdsList()
.equals(other.getSecurityGroupIdsList())) return false;
if (!getServiceAccountId()
.equals(other.getServiceAccountId())) return false;
if (getDeletionProtection()
!= other.getDeletionProtection()) return false;
if (hasMaintenanceWindow() != other.hasMaintenanceWindow()) return false;
if (hasMaintenanceWindow()) {
if (!getMaintenanceWindow()
.equals(other.getMaintenanceWindow())) return false;
}
if (hasPlannedOperation() != other.hasPlannedOperation()) return false;
if (hasPlannedOperation()) {
if (!getPlannedOperation()
.equals(other.getPlannedOperation())) 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) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().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) + ENVIRONMENT_FIELD_NUMBER;
hash = (53 * hash) + environment_;
if (getMonitoringCount() > 0) {
hash = (37 * hash) + MONITORING_FIELD_NUMBER;
hash = (53 * hash) + getMonitoringList().hashCode();
}
if (hasConfig()) {
hash = (37 * hash) + CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getConfig().hashCode();
}
hash = (37 * hash) + NETWORK_ID_FIELD_NUMBER;
hash = (53 * hash) + getNetworkId().hashCode();
hash = (37 * hash) + HEALTH_FIELD_NUMBER;
hash = (53 * hash) + health_;
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getSecurityGroupIdsCount() > 0) {
hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER;
hash = (53 * hash) + getSecurityGroupIdsList().hashCode();
}
hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountId().hashCode();
hash = (37 * hash) + DELETION_PROTECTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeletionProtection());
if (hasMaintenanceWindow()) {
hash = (37 * hash) + MAINTENANCE_WINDOW_FIELD_NUMBER;
hash = (53 * hash) + getMaintenanceWindow().hashCode();
}
if (hasPlannedOperation()) {
hash = (37 * hash) + PLANNED_OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getPlannedOperation().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster 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.mdb.elasticsearch.v1.ClusterOuterClass.Cluster parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster 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.mdb.elasticsearch.v1.ClusterOuterClass.Cluster parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster 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.mdb.elasticsearch.v1.ClusterOuterClass.Cluster parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster 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.mdb.elasticsearch.v1.ClusterOuterClass.Cluster parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster 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.mdb.elasticsearch.v1.ClusterOuterClass.Cluster 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;
}
/**
*
* An Elasticsearch cluster resource.
* For more information, see the [Concepts](/docs/managed-elasticsearch/concepts) section of the documentation.
*
*
* Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.Cluster}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.elasticsearch.v1.Cluster)
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetLabels();
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();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Builder.class);
}
// Construct using yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMonitoringFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
folderId_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
environment_ = 0;
if (monitoringBuilder_ == null) {
monitoring_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
monitoringBuilder_.clear();
}
if (configBuilder_ == null) {
config_ = null;
} else {
config_ = null;
configBuilder_ = null;
}
networkId_ = "";
health_ = 0;
status_ = 0;
securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
serviceAccountId_ = "";
deletionProtection_ = false;
if (maintenanceWindowBuilder_ == null) {
maintenanceWindow_ = null;
} else {
maintenanceWindow_ = null;
maintenanceWindowBuilder_ = null;
}
if (plannedOperationBuilder_ == null) {
plannedOperation_ = null;
} else {
plannedOperation_ = null;
plannedOperationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster getDefaultInstanceForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster build() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster buildPartial() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster result = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.folderId_ = folderId_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
result.environment_ = environment_;
if (monitoringBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
monitoring_ = java.util.Collections.unmodifiableList(monitoring_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.monitoring_ = monitoring_;
} else {
result.monitoring_ = monitoringBuilder_.build();
}
if (configBuilder_ == null) {
result.config_ = config_;
} else {
result.config_ = configBuilder_.build();
}
result.networkId_ = networkId_;
result.health_ = health_;
result.status_ = status_;
if (((bitField0_ & 0x00000004) != 0)) {
securityGroupIds_ = securityGroupIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.securityGroupIds_ = securityGroupIds_;
result.serviceAccountId_ = serviceAccountId_;
result.deletionProtection_ = deletionProtection_;
if (maintenanceWindowBuilder_ == null) {
result.maintenanceWindow_ = maintenanceWindow_;
} else {
result.maintenanceWindow_ = maintenanceWindowBuilder_.build();
}
if (plannedOperationBuilder_ == null) {
result.plannedOperation_ = plannedOperation_;
} else {
result.plannedOperation_ = plannedOperationBuilder_.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.mdb.elasticsearch.v1.ClusterOuterClass.Cluster) {
return mergeFrom((yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster other) {
if (other == yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
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.environment_ != 0) {
setEnvironmentValue(other.getEnvironmentValue());
}
if (monitoringBuilder_ == null) {
if (!other.monitoring_.isEmpty()) {
if (monitoring_.isEmpty()) {
monitoring_ = other.monitoring_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMonitoringIsMutable();
monitoring_.addAll(other.monitoring_);
}
onChanged();
}
} else {
if (!other.monitoring_.isEmpty()) {
if (monitoringBuilder_.isEmpty()) {
monitoringBuilder_.dispose();
monitoringBuilder_ = null;
monitoring_ = other.monitoring_;
bitField0_ = (bitField0_ & ~0x00000002);
monitoringBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMonitoringFieldBuilder() : null;
} else {
monitoringBuilder_.addAllMessages(other.monitoring_);
}
}
}
if (other.hasConfig()) {
mergeConfig(other.getConfig());
}
if (!other.getNetworkId().isEmpty()) {
networkId_ = other.networkId_;
onChanged();
}
if (other.health_ != 0) {
setHealthValue(other.getHealthValue());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (!other.securityGroupIds_.isEmpty()) {
if (securityGroupIds_.isEmpty()) {
securityGroupIds_ = other.securityGroupIds_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.addAll(other.securityGroupIds_);
}
onChanged();
}
if (!other.getServiceAccountId().isEmpty()) {
serviceAccountId_ = other.serviceAccountId_;
onChanged();
}
if (other.getDeletionProtection() != false) {
setDeletionProtection(other.getDeletionProtection());
}
if (other.hasMaintenanceWindow()) {
mergeMaintenanceWindow(other.getMaintenanceWindow());
}
if (other.hasPlannedOperation()) {
mergePlannedOperation(other.getPlannedOperation());
}
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.mdb.elasticsearch.v1.ClusterOuterClass.Cluster parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* ID of the Elasticsearch cluster.
* This ID is assigned at creation time.
*
*
* 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 Elasticsearch cluster.
* This ID is assigned at creation time.
*
*
* 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 Elasticsearch cluster.
* This ID is assigned at creation time.
*
*
* 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 Elasticsearch cluster.
* This ID is assigned at creation time.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of the Elasticsearch cluster.
* This ID is assigned at creation time.
*
*
* 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 folderId_ = "";
/**
*
* ID of the folder that the Elasticsearch cluster belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the folder that the Elasticsearch cluster belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the folder that the Elasticsearch cluster belongs to.
*
*
* string folder_id = 2;
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder that the Elasticsearch cluster belongs to.
*
*
* string folder_id = 2;
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder that the Elasticsearch cluster belongs to.
*
*
* string folder_id = 2;
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
folderId_ = 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 Elasticsearch cluster.
* The name must be unique within the folder. 1-63 characters long.
*
*
* 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 Elasticsearch cluster.
* The name must be unique within the folder. 1-63 characters long.
*
*
* 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 Elasticsearch cluster.
* The name must be unique within the folder. 1-63 characters long.
*
*
* 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 Elasticsearch cluster.
* The name must be unique within the folder. 1-63 characters long.
*
*
* string name = 4;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the Elasticsearch cluster.
* The name must be unique within the folder. 1-63 characters long.
*
*
* 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 Elasticsearch cluster. 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 Elasticsearch cluster. 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 Elasticsearch cluster. 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 Elasticsearch cluster. 0-256 characters long.
*
*
* string description = 5;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the Elasticsearch cluster. 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();
}
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* 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();
}
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* 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;
}
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* 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;
}
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* 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();
}
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* 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;
}
/**
*
* Custom labels for the Elasticsearch cluster as `key:value` pairs.
* A maximum of 64 labels per resource is allowed.
*
*
* map<string, string> labels = 6;
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
private int environment_ = 0;
/**
*
* Deployment environment of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Environment environment = 7;
* @return The enum numeric value on the wire for environment.
*/
@java.lang.Override public int getEnvironmentValue() {
return environment_;
}
/**
*
* Deployment environment of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Environment environment = 7;
* @param value The enum numeric value on the wire for environment to set.
* @return This builder for chaining.
*/
public Builder setEnvironmentValue(int value) {
environment_ = value;
onChanged();
return this;
}
/**
*
* Deployment environment of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Environment environment = 7;
* @return The environment.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Environment getEnvironment() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Environment result = yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Environment.valueOf(environment_);
return result == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Environment.UNRECOGNIZED : result;
}
/**
*
* Deployment environment of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Environment environment = 7;
* @param value The environment to set.
* @return This builder for chaining.
*/
public Builder setEnvironment(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Environment value) {
if (value == null) {
throw new NullPointerException();
}
environment_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Deployment environment of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Environment environment = 7;
* @return This builder for chaining.
*/
public Builder clearEnvironment() {
environment_ = 0;
onChanged();
return this;
}
private java.util.List monitoring_ =
java.util.Collections.emptyList();
private void ensureMonitoringIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
monitoring_ = new java.util.ArrayList(monitoring_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.MonitoringOrBuilder> monitoringBuilder_;
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public java.util.List getMonitoringList() {
if (monitoringBuilder_ == null) {
return java.util.Collections.unmodifiableList(monitoring_);
} else {
return monitoringBuilder_.getMessageList();
}
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public int getMonitoringCount() {
if (monitoringBuilder_ == null) {
return monitoring_.size();
} else {
return monitoringBuilder_.getCount();
}
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring getMonitoring(int index) {
if (monitoringBuilder_ == null) {
return monitoring_.get(index);
} else {
return monitoringBuilder_.getMessage(index);
}
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public Builder setMonitoring(
int index, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring value) {
if (monitoringBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMonitoringIsMutable();
monitoring_.set(index, value);
onChanged();
} else {
monitoringBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public Builder setMonitoring(
int index, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.Builder builderForValue) {
if (monitoringBuilder_ == null) {
ensureMonitoringIsMutable();
monitoring_.set(index, builderForValue.build());
onChanged();
} else {
monitoringBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public Builder addMonitoring(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring value) {
if (monitoringBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMonitoringIsMutable();
monitoring_.add(value);
onChanged();
} else {
monitoringBuilder_.addMessage(value);
}
return this;
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public Builder addMonitoring(
int index, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring value) {
if (monitoringBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMonitoringIsMutable();
monitoring_.add(index, value);
onChanged();
} else {
monitoringBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public Builder addMonitoring(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.Builder builderForValue) {
if (monitoringBuilder_ == null) {
ensureMonitoringIsMutable();
monitoring_.add(builderForValue.build());
onChanged();
} else {
monitoringBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public Builder addMonitoring(
int index, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.Builder builderForValue) {
if (monitoringBuilder_ == null) {
ensureMonitoringIsMutable();
monitoring_.add(index, builderForValue.build());
onChanged();
} else {
monitoringBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public Builder addAllMonitoring(
java.lang.Iterable extends yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring> values) {
if (monitoringBuilder_ == null) {
ensureMonitoringIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, monitoring_);
onChanged();
} else {
monitoringBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public Builder clearMonitoring() {
if (monitoringBuilder_ == null) {
monitoring_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
monitoringBuilder_.clear();
}
return this;
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public Builder removeMonitoring(int index) {
if (monitoringBuilder_ == null) {
ensureMonitoringIsMutable();
monitoring_.remove(index);
onChanged();
} else {
monitoringBuilder_.remove(index);
}
return this;
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.Builder getMonitoringBuilder(
int index) {
return getMonitoringFieldBuilder().getBuilder(index);
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.MonitoringOrBuilder getMonitoringOrBuilder(
int index) {
if (monitoringBuilder_ == null) {
return monitoring_.get(index); } else {
return monitoringBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public java.util.List extends yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.MonitoringOrBuilder>
getMonitoringOrBuilderList() {
if (monitoringBuilder_ != null) {
return monitoringBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(monitoring_);
}
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.Builder addMonitoringBuilder() {
return getMonitoringFieldBuilder().addBuilder(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.getDefaultInstance());
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.Builder addMonitoringBuilder(
int index) {
return getMonitoringFieldBuilder().addBuilder(
index, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.getDefaultInstance());
}
/**
*
* Description of monitoring systems relevant to the Elasticsearch cluster.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Monitoring monitoring = 8;
*/
public java.util.List
getMonitoringBuilderList() {
return getMonitoringFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.MonitoringOrBuilder>
getMonitoringFieldBuilder() {
if (monitoringBuilder_ == null) {
monitoringBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.MonitoringOrBuilder>(
monitoring_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
monitoring_ = null;
}
return monitoringBuilder_;
}
private yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig config_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfigOrBuilder> configBuilder_;
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
* @return Whether the config field is set.
*/
public boolean hasConfig() {
return configBuilder_ != null || config_ != null;
}
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
* @return The config.
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig getConfig() {
if (configBuilder_ == null) {
return config_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance() : config_;
} else {
return configBuilder_.getMessage();
}
}
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
*/
public Builder setConfig(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig value) {
if (configBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
config_ = value;
onChanged();
} else {
configBuilder_.setMessage(value);
}
return this;
}
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
*/
public Builder setConfig(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.Builder builderForValue) {
if (configBuilder_ == null) {
config_ = builderForValue.build();
onChanged();
} else {
configBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
*/
public Builder mergeConfig(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig value) {
if (configBuilder_ == null) {
if (config_ != null) {
config_ =
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.newBuilder(config_).mergeFrom(value).buildPartial();
} else {
config_ = value;
}
onChanged();
} else {
configBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
*/
public Builder clearConfig() {
if (configBuilder_ == null) {
config_ = null;
onChanged();
} else {
config_ = null;
configBuilder_ = null;
}
return this;
}
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.Builder getConfigBuilder() {
onChanged();
return getConfigFieldBuilder().getBuilder();
}
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfigOrBuilder getConfigOrBuilder() {
if (configBuilder_ != null) {
return configBuilder_.getMessageOrBuilder();
} else {
return config_ == null ?
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance() : config_;
}
}
/**
*
* Configuration of the Elasticsearch cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.ClusterConfig config = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfigOrBuilder>
getConfigFieldBuilder() {
if (configBuilder_ == null) {
configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfigOrBuilder>(
getConfig(),
getParentForChildren(),
isClean());
config_ = null;
}
return configBuilder_;
}
private java.lang.Object networkId_ = "";
/**
*
* ID of the network that the cluster belongs to.
*
*
* string network_id = 10;
* @return The networkId.
*/
public java.lang.String getNetworkId() {
java.lang.Object ref = networkId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
networkId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the network that the cluster belongs to.
*
*
* string network_id = 10;
* @return The bytes for networkId.
*/
public com.google.protobuf.ByteString
getNetworkIdBytes() {
java.lang.Object ref = networkId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
networkId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the network that the cluster belongs to.
*
*
* string network_id = 10;
* @param value The networkId to set.
* @return This builder for chaining.
*/
public Builder setNetworkId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
networkId_ = value;
onChanged();
return this;
}
/**
*
* ID of the network that the cluster belongs to.
*
*
* string network_id = 10;
* @return This builder for chaining.
*/
public Builder clearNetworkId() {
networkId_ = getDefaultInstance().getNetworkId();
onChanged();
return this;
}
/**
*
* ID of the network that the cluster belongs to.
*
*
* string network_id = 10;
* @param value The bytes for networkId to set.
* @return This builder for chaining.
*/
public Builder setNetworkIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
networkId_ = value;
onChanged();
return this;
}
private int health_ = 0;
/**
*
* Aggregated cluster health.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Health health = 11;
* @return The enum numeric value on the wire for health.
*/
@java.lang.Override public int getHealthValue() {
return health_;
}
/**
*
* Aggregated cluster health.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Health health = 11;
* @param value The enum numeric value on the wire for health to set.
* @return This builder for chaining.
*/
public Builder setHealthValue(int value) {
health_ = value;
onChanged();
return this;
}
/**
*
* Aggregated cluster health.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Health health = 11;
* @return The health.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Health getHealth() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Health result = yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Health.valueOf(health_);
return result == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Health.UNRECOGNIZED : result;
}
/**
*
* Aggregated cluster health.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Health health = 11;
* @param value The health to set.
* @return This builder for chaining.
*/
public Builder setHealth(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Health value) {
if (value == null) {
throw new NullPointerException();
}
health_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Aggregated cluster health.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Health health = 11;
* @return This builder for chaining.
*/
public Builder clearHealth() {
health_ = 0;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* Current state of the cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Status status = 12;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Current state of the cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Status status = 12;
* @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;
}
/**
*
* Current state of the cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Status status = 12;
* @return The status.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Status result = yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Status.valueOf(status_);
return result == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Status.UNRECOGNIZED : result;
}
/**
*
* Current state of the cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Status status = 12;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Current state of the cluster.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Cluster.Status status = 12;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSecurityGroupIdsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_);
bitField0_ |= 0x00000004;
}
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_.getUnmodifiableView();
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
public java.lang.String getSecurityGroupIds(int index) {
return securityGroupIds_.get(index);
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index) {
return securityGroupIds_.getByteString(index);
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @param index The index to set the value at.
* @param value The securityGroupIds to set.
* @return This builder for chaining.
*/
public Builder setSecurityGroupIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.set(index, value);
onChanged();
return this;
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @param value The securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.add(value);
onChanged();
return this;
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @param values The securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addAllSecurityGroupIds(
java.lang.Iterable values) {
ensureSecurityGroupIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, securityGroupIds_);
onChanged();
return this;
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @return This builder for chaining.
*/
public Builder clearSecurityGroupIds() {
securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 13;
* @param value The bytes of the securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.add(value);
onChanged();
return this;
}
private java.lang.Object serviceAccountId_ = "";
/**
*
* ID of the service account used for access to Object Storage.
*
*
* string service_account_id = 14;
* @return The serviceAccountId.
*/
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the service account used for access to Object Storage.
*
*
* string service_account_id = 14;
* @return The bytes for serviceAccountId.
*/
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the service account used for access to Object Storage.
*
*
* string service_account_id = 14;
* @param value The serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceAccountId_ = value;
onChanged();
return this;
}
/**
*
* ID of the service account used for access to Object Storage.
*
*
* string service_account_id = 14;
* @return This builder for chaining.
*/
public Builder clearServiceAccountId() {
serviceAccountId_ = getDefaultInstance().getServiceAccountId();
onChanged();
return this;
}
/**
*
* ID of the service account used for access to Object Storage.
*
*
* string service_account_id = 14;
* @param value The bytes for serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceAccountId_ = value;
onChanged();
return this;
}
private boolean deletionProtection_ ;
/**
*
* Deletion Protection inhibits deletion of the cluster
*
*
* bool deletion_protection = 15;
* @return The deletionProtection.
*/
@java.lang.Override
public boolean getDeletionProtection() {
return deletionProtection_;
}
/**
*
* Deletion Protection inhibits deletion of the cluster
*
*
* bool deletion_protection = 15;
* @param value The deletionProtection to set.
* @return This builder for chaining.
*/
public Builder setDeletionProtection(boolean value) {
deletionProtection_ = value;
onChanged();
return this;
}
/**
*
* Deletion Protection inhibits deletion of the cluster
*
*
* bool deletion_protection = 15;
* @return This builder for chaining.
*/
public Builder clearDeletionProtection() {
deletionProtection_ = false;
onChanged();
return this;
}
private yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow maintenanceWindow_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow, yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow.Builder, yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindowOrBuilder> maintenanceWindowBuilder_;
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
* @return Whether the maintenanceWindow field is set.
*/
public boolean hasMaintenanceWindow() {
return maintenanceWindowBuilder_ != null || maintenanceWindow_ != null;
}
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
* @return The maintenanceWindow.
*/
public yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow getMaintenanceWindow() {
if (maintenanceWindowBuilder_ == null) {
return maintenanceWindow_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow.getDefaultInstance() : maintenanceWindow_;
} else {
return maintenanceWindowBuilder_.getMessage();
}
}
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
*/
public Builder setMaintenanceWindow(yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow value) {
if (maintenanceWindowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maintenanceWindow_ = value;
onChanged();
} else {
maintenanceWindowBuilder_.setMessage(value);
}
return this;
}
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
*/
public Builder setMaintenanceWindow(
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow.Builder builderForValue) {
if (maintenanceWindowBuilder_ == null) {
maintenanceWindow_ = builderForValue.build();
onChanged();
} else {
maintenanceWindowBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
*/
public Builder mergeMaintenanceWindow(yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow value) {
if (maintenanceWindowBuilder_ == null) {
if (maintenanceWindow_ != null) {
maintenanceWindow_ =
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow.newBuilder(maintenanceWindow_).mergeFrom(value).buildPartial();
} else {
maintenanceWindow_ = value;
}
onChanged();
} else {
maintenanceWindowBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
*/
public Builder clearMaintenanceWindow() {
if (maintenanceWindowBuilder_ == null) {
maintenanceWindow_ = null;
onChanged();
} else {
maintenanceWindow_ = null;
maintenanceWindowBuilder_ = null;
}
return this;
}
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow.Builder getMaintenanceWindowBuilder() {
onChanged();
return getMaintenanceWindowFieldBuilder().getBuilder();
}
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder() {
if (maintenanceWindowBuilder_ != null) {
return maintenanceWindowBuilder_.getMessageOrBuilder();
} else {
return maintenanceWindow_ == null ?
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow.getDefaultInstance() : maintenanceWindow_;
}
}
/**
*
* Window of maintenance operations.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceWindow maintenance_window = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow, yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow.Builder, yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindowOrBuilder>
getMaintenanceWindowFieldBuilder() {
if (maintenanceWindowBuilder_ == null) {
maintenanceWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow, yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindow.Builder, yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceWindowOrBuilder>(
getMaintenanceWindow(),
getParentForChildren(),
isClean());
maintenanceWindow_ = null;
}
return maintenanceWindowBuilder_;
}
private yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation plannedOperation_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation, yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation.Builder, yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperationOrBuilder> plannedOperationBuilder_;
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
* @return Whether the plannedOperation field is set.
*/
public boolean hasPlannedOperation() {
return plannedOperationBuilder_ != null || plannedOperation_ != null;
}
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
* @return The plannedOperation.
*/
public yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation getPlannedOperation() {
if (plannedOperationBuilder_ == null) {
return plannedOperation_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation.getDefaultInstance() : plannedOperation_;
} else {
return plannedOperationBuilder_.getMessage();
}
}
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
*/
public Builder setPlannedOperation(yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation value) {
if (plannedOperationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
plannedOperation_ = value;
onChanged();
} else {
plannedOperationBuilder_.setMessage(value);
}
return this;
}
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
*/
public Builder setPlannedOperation(
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation.Builder builderForValue) {
if (plannedOperationBuilder_ == null) {
plannedOperation_ = builderForValue.build();
onChanged();
} else {
plannedOperationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
*/
public Builder mergePlannedOperation(yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation value) {
if (plannedOperationBuilder_ == null) {
if (plannedOperation_ != null) {
plannedOperation_ =
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation.newBuilder(plannedOperation_).mergeFrom(value).buildPartial();
} else {
plannedOperation_ = value;
}
onChanged();
} else {
plannedOperationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
*/
public Builder clearPlannedOperation() {
if (plannedOperationBuilder_ == null) {
plannedOperation_ = null;
onChanged();
} else {
plannedOperation_ = null;
plannedOperationBuilder_ = null;
}
return this;
}
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation.Builder getPlannedOperationBuilder() {
onChanged();
return getPlannedOperationFieldBuilder().getBuilder();
}
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperationOrBuilder getPlannedOperationOrBuilder() {
if (plannedOperationBuilder_ != null) {
return plannedOperationBuilder_.getMessageOrBuilder();
} else {
return plannedOperation_ == null ?
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation.getDefaultInstance() : plannedOperation_;
}
}
/**
*
* Maintenance operation planned at nearest maintenance_window.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.MaintenanceOperation planned_operation = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation, yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation.Builder, yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperationOrBuilder>
getPlannedOperationFieldBuilder() {
if (plannedOperationBuilder_ == null) {
plannedOperationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation, yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperation.Builder, yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.MaintenanceOperationOrBuilder>(
getPlannedOperation(),
getParentForChildren(),
isClean());
plannedOperation_ = null;
}
return plannedOperationBuilder_;
}
@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.mdb.elasticsearch.v1.Cluster)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.elasticsearch.v1.Cluster)
private static final yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster();
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Cluster getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Cluster parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Cluster(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.mdb.elasticsearch.v1.ClusterOuterClass.Cluster getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MonitoringOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.elasticsearch.v1.Monitoring)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the monitoring system.
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the monitoring system.
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the monitoring system.
*
*
* string description = 2;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the monitoring system.
*
*
* string description = 2;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Link to the monitoring system charts for the Elasticsearch cluster.
*
*
* string link = 3;
* @return The link.
*/
java.lang.String getLink();
/**
*
* Link to the monitoring system charts for the Elasticsearch cluster.
*
*
* string link = 3;
* @return The bytes for link.
*/
com.google.protobuf.ByteString
getLinkBytes();
}
/**
*
* Metadata of monitoring system.
*
*
* Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.Monitoring}
*/
public static final class Monitoring extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.elasticsearch.v1.Monitoring)
MonitoringOrBuilder {
private static final long serialVersionUID = 0L;
// Use Monitoring.newBuilder() to construct.
private Monitoring(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Monitoring() {
name_ = "";
description_ = "";
link_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Monitoring();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Monitoring(
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();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
link_ = 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.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Monitoring_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Monitoring_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of the monitoring system.
*
*
* string name = 1;
* @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 monitoring system.
*
*
* string name = 1;
* @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 = 2;
private volatile java.lang.Object description_;
/**
*
* Description of the monitoring system.
*
*
* string description = 2;
* @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 monitoring system.
*
*
* string description = 2;
* @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 LINK_FIELD_NUMBER = 3;
private volatile java.lang.Object link_;
/**
*
* Link to the monitoring system charts for the Elasticsearch cluster.
*
*
* string link = 3;
* @return The link.
*/
@java.lang.Override
public java.lang.String getLink() {
java.lang.Object ref = link_;
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();
link_ = s;
return s;
}
}
/**
*
* Link to the monitoring system charts for the Elasticsearch cluster.
*
*
* string link = 3;
* @return The bytes for link.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLinkBytes() {
java.lang.Object ref = link_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
link_ = 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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(link_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, link_);
}
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(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(link_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, link_);
}
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.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring other = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!getLink()
.equals(other.getLink())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + LINK_FIELD_NUMBER;
hash = (53 * hash) + getLink().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring 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.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring 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.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring 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.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring 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.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring 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.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring 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;
}
/**
*
* Metadata of monitoring system.
*
*
* Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.Monitoring}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.elasticsearch.v1.Monitoring)
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.MonitoringOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Monitoring_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Monitoring_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.Builder.class);
}
// Construct using yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.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();
name_ = "";
description_ = "";
link_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Monitoring_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring getDefaultInstanceForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring build() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring buildPartial() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring result = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring(this);
result.name_ = name_;
result.description_ = description_;
result.link_ = link_;
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.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring) {
return mergeFrom((yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring other) {
if (other == yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (!other.getLink().isEmpty()) {
link_ = other.link_;
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.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the monitoring system.
*
*
* string name = 1;
* @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 monitoring system.
*
*
* string name = 1;
* @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 monitoring system.
*
*
* string name = 1;
* @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 monitoring system.
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the monitoring system.
*
*
* string name = 1;
* @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 monitoring system.
*
*
* string description = 2;
* @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 monitoring system.
*
*
* string description = 2;
* @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 monitoring system.
*
*
* string description = 2;
* @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 monitoring system.
*
*
* string description = 2;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the monitoring system.
*
*
* string description = 2;
* @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 java.lang.Object link_ = "";
/**
*
* Link to the monitoring system charts for the Elasticsearch cluster.
*
*
* string link = 3;
* @return The link.
*/
public java.lang.String getLink() {
java.lang.Object ref = link_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
link_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Link to the monitoring system charts for the Elasticsearch cluster.
*
*
* string link = 3;
* @return The bytes for link.
*/
public com.google.protobuf.ByteString
getLinkBytes() {
java.lang.Object ref = link_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
link_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Link to the monitoring system charts for the Elasticsearch cluster.
*
*
* string link = 3;
* @param value The link to set.
* @return This builder for chaining.
*/
public Builder setLink(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
link_ = value;
onChanged();
return this;
}
/**
*
* Link to the monitoring system charts for the Elasticsearch cluster.
*
*
* string link = 3;
* @return This builder for chaining.
*/
public Builder clearLink() {
link_ = getDefaultInstance().getLink();
onChanged();
return this;
}
/**
*
* Link to the monitoring system charts for the Elasticsearch cluster.
*
*
* string link = 3;
* @param value The bytes for link to set.
* @return This builder for chaining.
*/
public Builder setLinkBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
link_ = 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.mdb.elasticsearch.v1.Monitoring)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.elasticsearch.v1.Monitoring)
private static final yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring();
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Monitoring parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Monitoring(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.mdb.elasticsearch.v1.ClusterOuterClass.Monitoring getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClusterConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.elasticsearch.v1.ClusterConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* Elasticsearch version.
*
*
* string version = 1;
* @return The version.
*/
java.lang.String getVersion();
/**
*
* Elasticsearch version.
*
*
* string version = 1;
* @return The bytes for version.
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
* @return Whether the elasticsearch field is set.
*/
boolean hasElasticsearch();
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
* @return The elasticsearch.
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch getElasticsearch();
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ElasticsearchOrBuilder getElasticsearchOrBuilder();
/**
*
* ElasticSearch edition.
*
*
* string edition = 3;
* @return The edition.
*/
java.lang.String getEdition();
/**
*
* ElasticSearch edition.
*
*
* string edition = 3;
* @return The bytes for edition.
*/
com.google.protobuf.ByteString
getEditionBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.ClusterConfig}
*/
public static final class ClusterConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.elasticsearch.v1.ClusterConfig)
ClusterConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClusterConfig.newBuilder() to construct.
private ClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClusterConfig() {
version_ = "";
edition_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClusterConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClusterConfig(
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();
version_ = s;
break;
}
case 18: {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.Builder subBuilder = null;
if (elasticsearch_ != null) {
subBuilder = elasticsearch_.toBuilder();
}
elasticsearch_ = input.readMessage(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(elasticsearch_);
elasticsearch_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
edition_ = 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.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ClusterConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ClusterConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
private volatile java.lang.Object version_;
/**
*
* Elasticsearch version.
*
*
* string version = 1;
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
*
* Elasticsearch version.
*
*
* string version = 1;
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ELASTICSEARCH_FIELD_NUMBER = 2;
private yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch elasticsearch_;
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
* @return Whether the elasticsearch field is set.
*/
@java.lang.Override
public boolean hasElasticsearch() {
return elasticsearch_ != null;
}
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
* @return The elasticsearch.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch getElasticsearch() {
return elasticsearch_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.getDefaultInstance() : elasticsearch_;
}
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ElasticsearchOrBuilder getElasticsearchOrBuilder() {
return getElasticsearch();
}
public static final int EDITION_FIELD_NUMBER = 3;
private volatile java.lang.Object edition_;
/**
*
* ElasticSearch edition.
*
*
* string edition = 3;
* @return The edition.
*/
@java.lang.Override
public java.lang.String getEdition() {
java.lang.Object ref = edition_;
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();
edition_ = s;
return s;
}
}
/**
*
* ElasticSearch edition.
*
*
* string edition = 3;
* @return The bytes for edition.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEditionBytes() {
java.lang.Object ref = edition_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
edition_ = 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(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
}
if (elasticsearch_ != null) {
output.writeMessage(2, getElasticsearch());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(edition_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, edition_);
}
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(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
}
if (elasticsearch_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getElasticsearch());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(edition_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, edition_);
}
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.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig other = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig) obj;
if (!getVersion()
.equals(other.getVersion())) return false;
if (hasElasticsearch() != other.hasElasticsearch()) return false;
if (hasElasticsearch()) {
if (!getElasticsearch()
.equals(other.getElasticsearch())) return false;
}
if (!getEdition()
.equals(other.getEdition())) 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) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
if (hasElasticsearch()) {
hash = (37 * hash) + ELASTICSEARCH_FIELD_NUMBER;
hash = (53 * hash) + getElasticsearch().hashCode();
}
hash = (37 * hash) + EDITION_FIELD_NUMBER;
hash = (53 * hash) + getEdition().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig 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.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig 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.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig 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.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig 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.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig 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.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig 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.mdb.elasticsearch.v1.ClusterConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.elasticsearch.v1.ClusterConfig)
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ClusterConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ClusterConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.Builder.class);
}
// Construct using yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.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();
version_ = "";
if (elasticsearchBuilder_ == null) {
elasticsearch_ = null;
} else {
elasticsearch_ = null;
elasticsearchBuilder_ = null;
}
edition_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ClusterConfig_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig getDefaultInstanceForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig build() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig buildPartial() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig result = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig(this);
result.version_ = version_;
if (elasticsearchBuilder_ == null) {
result.elasticsearch_ = elasticsearch_;
} else {
result.elasticsearch_ = elasticsearchBuilder_.build();
}
result.edition_ = edition_;
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.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig) {
return mergeFrom((yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig other) {
if (other == yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance()) return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
onChanged();
}
if (other.hasElasticsearch()) {
mergeElasticsearch(other.getElasticsearch());
}
if (!other.getEdition().isEmpty()) {
edition_ = other.edition_;
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.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object version_ = "";
/**
*
* Elasticsearch version.
*
*
* string version = 1;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Elasticsearch version.
*
*
* string version = 1;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Elasticsearch version.
*
*
* string version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
*
* Elasticsearch version.
*
*
* string version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
*
* Elasticsearch version.
*
*
* string version = 1;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = value;
onChanged();
return this;
}
private yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch elasticsearch_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ElasticsearchOrBuilder> elasticsearchBuilder_;
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
* @return Whether the elasticsearch field is set.
*/
public boolean hasElasticsearch() {
return elasticsearchBuilder_ != null || elasticsearch_ != null;
}
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
* @return The elasticsearch.
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch getElasticsearch() {
if (elasticsearchBuilder_ == null) {
return elasticsearch_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.getDefaultInstance() : elasticsearch_;
} else {
return elasticsearchBuilder_.getMessage();
}
}
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
*/
public Builder setElasticsearch(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch value) {
if (elasticsearchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
elasticsearch_ = value;
onChanged();
} else {
elasticsearchBuilder_.setMessage(value);
}
return this;
}
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
*/
public Builder setElasticsearch(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.Builder builderForValue) {
if (elasticsearchBuilder_ == null) {
elasticsearch_ = builderForValue.build();
onChanged();
} else {
elasticsearchBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
*/
public Builder mergeElasticsearch(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch value) {
if (elasticsearchBuilder_ == null) {
if (elasticsearch_ != null) {
elasticsearch_ =
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.newBuilder(elasticsearch_).mergeFrom(value).buildPartial();
} else {
elasticsearch_ = value;
}
onChanged();
} else {
elasticsearchBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
*/
public Builder clearElasticsearch() {
if (elasticsearchBuilder_ == null) {
elasticsearch_ = null;
onChanged();
} else {
elasticsearch_ = null;
elasticsearchBuilder_ = null;
}
return this;
}
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.Builder getElasticsearchBuilder() {
onChanged();
return getElasticsearchFieldBuilder().getBuilder();
}
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ElasticsearchOrBuilder getElasticsearchOrBuilder() {
if (elasticsearchBuilder_ != null) {
return elasticsearchBuilder_.getMessageOrBuilder();
} else {
return elasticsearch_ == null ?
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.getDefaultInstance() : elasticsearch_;
}
}
/**
*
* Configuration and resource allocation for Elasticsearch nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch elasticsearch = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ElasticsearchOrBuilder>
getElasticsearchFieldBuilder() {
if (elasticsearchBuilder_ == null) {
elasticsearchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ElasticsearchOrBuilder>(
getElasticsearch(),
getParentForChildren(),
isClean());
elasticsearch_ = null;
}
return elasticsearchBuilder_;
}
private java.lang.Object edition_ = "";
/**
*
* ElasticSearch edition.
*
*
* string edition = 3;
* @return The edition.
*/
public java.lang.String getEdition() {
java.lang.Object ref = edition_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
edition_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ElasticSearch edition.
*
*
* string edition = 3;
* @return The bytes for edition.
*/
public com.google.protobuf.ByteString
getEditionBytes() {
java.lang.Object ref = edition_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
edition_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ElasticSearch edition.
*
*
* string edition = 3;
* @param value The edition to set.
* @return This builder for chaining.
*/
public Builder setEdition(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
edition_ = value;
onChanged();
return this;
}
/**
*
* ElasticSearch edition.
*
*
* string edition = 3;
* @return This builder for chaining.
*/
public Builder clearEdition() {
edition_ = getDefaultInstance().getEdition();
onChanged();
return this;
}
/**
*
* ElasticSearch edition.
*
*
* string edition = 3;
* @param value The bytes for edition to set.
* @return This builder for chaining.
*/
public Builder setEditionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
edition_ = 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.mdb.elasticsearch.v1.ClusterConfig)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.elasticsearch.v1.ClusterConfig)
private static final yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig();
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClusterConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClusterConfig(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.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ElasticsearchOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.elasticsearch.v1.Elasticsearch)
com.google.protobuf.MessageOrBuilder {
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
* @return Whether the dataNode field is set.
*/
boolean hasDataNode();
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
* @return The dataNode.
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode getDataNode();
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNodeOrBuilder getDataNodeOrBuilder();
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
* @return Whether the masterNode field is set.
*/
boolean hasMasterNode();
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
* @return The masterNode.
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode getMasterNode();
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNodeOrBuilder getMasterNodeOrBuilder();
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @return A list containing the plugins.
*/
java.util.List
getPluginsList();
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @return The count of plugins.
*/
int getPluginsCount();
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @param index The index of the element to return.
* @return The plugins at the given index.
*/
java.lang.String getPlugins(int index);
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @param index The index of the value to return.
* @return The bytes of the plugins at the given index.
*/
com.google.protobuf.ByteString
getPluginsBytes(int index);
}
/**
* Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.Elasticsearch}
*/
public static final class Elasticsearch extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.elasticsearch.v1.Elasticsearch)
ElasticsearchOrBuilder {
private static final long serialVersionUID = 0L;
// Use Elasticsearch.newBuilder() to construct.
private Elasticsearch(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Elasticsearch() {
plugins_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Elasticsearch();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Elasticsearch(
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: {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.Builder subBuilder = null;
if (dataNode_ != null) {
subBuilder = dataNode_.toBuilder();
}
dataNode_ = input.readMessage(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dataNode_);
dataNode_ = subBuilder.buildPartial();
}
break;
}
case 18: {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.Builder subBuilder = null;
if (masterNode_ != null) {
subBuilder = masterNode_.toBuilder();
}
masterNode_ = input.readMessage(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(masterNode_);
masterNode_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
plugins_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
plugins_.add(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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
plugins_ = plugins_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.Builder.class);
}
public interface DataNodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode)
com.google.protobuf.MessageOrBuilder {
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
* @return Whether the elasticsearchConfigSet7 field is set.
*/
boolean hasElasticsearchConfigSet7();
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
* @return The elasticsearchConfigSet7.
*/
yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7 getElasticsearchConfigSet7();
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
*/
yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7OrBuilder getElasticsearchConfigSet7OrBuilder();
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
* @return Whether the resources field is set.
*/
boolean hasResources();
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
* @return The resources.
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources getResources();
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.ConfigCase getConfigCase();
}
/**
* Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode}
*/
public static final class DataNode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode)
DataNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataNode.newBuilder() to construct.
private DataNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataNode() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DataNode();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DataNode(
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.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.Builder subBuilder = null;
if (configCase_ == 1) {
subBuilder = ((yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7) config_).toBuilder();
}
config_ =
input.readMessage(yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7) config_);
config_ = subBuilder.buildPartial();
}
configCase_ = 1;
break;
}
case 18: {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder subBuilder = null;
if (resources_ != null) {
subBuilder = resources_.toBuilder();
}
resources_ = input.readMessage(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resources_);
resources_ = 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.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_DataNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_DataNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.Builder.class);
}
private int configCase_ = 0;
private java.lang.Object config_;
public enum ConfigCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ELASTICSEARCH_CONFIG_SET_7(1),
CONFIG_NOT_SET(0);
private final int value;
private ConfigCase(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 ConfigCase valueOf(int value) {
return forNumber(value);
}
public static ConfigCase forNumber(int value) {
switch (value) {
case 1: return ELASTICSEARCH_CONFIG_SET_7;
case 0: return CONFIG_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ConfigCase
getConfigCase() {
return ConfigCase.forNumber(
configCase_);
}
public static final int ELASTICSEARCH_CONFIG_SET_7_FIELD_NUMBER = 1;
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
* @return Whether the elasticsearchConfigSet7 field is set.
*/
@java.lang.Override
public boolean hasElasticsearchConfigSet7() {
return configCase_ == 1;
}
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
* @return The elasticsearchConfigSet7.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7 getElasticsearchConfigSet7() {
if (configCase_ == 1) {
return (yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7) config_;
}
return yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.getDefaultInstance();
}
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7OrBuilder getElasticsearchConfigSet7OrBuilder() {
if (configCase_ == 1) {
return (yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7) config_;
}
return yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.getDefaultInstance();
}
public static final int RESOURCES_FIELD_NUMBER = 2;
private yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources resources_;
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
* @return Whether the resources field is set.
*/
@java.lang.Override
public boolean hasResources() {
return resources_ != null;
}
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
* @return The resources.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources getResources() {
return resources_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;
}
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() {
return getResources();
}
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 (configCase_ == 1) {
output.writeMessage(1, (yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7) config_);
}
if (resources_ != null) {
output.writeMessage(2, getResources());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (configCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7) config_);
}
if (resources_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResources());
}
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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode other = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode) obj;
if (hasResources() != other.hasResources()) return false;
if (hasResources()) {
if (!getResources()
.equals(other.getResources())) return false;
}
if (!getConfigCase().equals(other.getConfigCase())) return false;
switch (configCase_) {
case 1:
if (!getElasticsearchConfigSet7()
.equals(other.getElasticsearchConfigSet7())) 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();
if (hasResources()) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResources().hashCode();
}
switch (configCase_) {
case 1:
hash = (37 * hash) + ELASTICSEARCH_CONFIG_SET_7_FIELD_NUMBER;
hash = (53 * hash) + getElasticsearchConfigSet7().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode 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.mdb.elasticsearch.v1.Elasticsearch.DataNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode)
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_DataNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_DataNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.Builder.class);
}
// Construct using yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.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();
if (resourcesBuilder_ == null) {
resources_ = null;
} else {
resources_ = null;
resourcesBuilder_ = null;
}
configCase_ = 0;
config_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_DataNode_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode getDefaultInstanceForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode build() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode buildPartial() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode result = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode(this);
if (configCase_ == 1) {
if (elasticsearchConfigSet7Builder_ == null) {
result.config_ = config_;
} else {
result.config_ = elasticsearchConfigSet7Builder_.build();
}
}
if (resourcesBuilder_ == null) {
result.resources_ = resources_;
} else {
result.resources_ = resourcesBuilder_.build();
}
result.configCase_ = configCase_;
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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode) {
return mergeFrom((yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode other) {
if (other == yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.getDefaultInstance()) return this;
if (other.hasResources()) {
mergeResources(other.getResources());
}
switch (other.getConfigCase()) {
case ELASTICSEARCH_CONFIG_SET_7: {
mergeElasticsearchConfigSet7(other.getElasticsearchConfigSet7());
break;
}
case CONFIG_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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int configCase_ = 0;
private java.lang.Object config_;
public ConfigCase
getConfigCase() {
return ConfigCase.forNumber(
configCase_);
}
public Builder clearConfig() {
configCase_ = 0;
config_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7, yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.Builder, yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7OrBuilder> elasticsearchConfigSet7Builder_;
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
* @return Whether the elasticsearchConfigSet7 field is set.
*/
@java.lang.Override
public boolean hasElasticsearchConfigSet7() {
return configCase_ == 1;
}
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
* @return The elasticsearchConfigSet7.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7 getElasticsearchConfigSet7() {
if (elasticsearchConfigSet7Builder_ == null) {
if (configCase_ == 1) {
return (yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7) config_;
}
return yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.getDefaultInstance();
} else {
if (configCase_ == 1) {
return elasticsearchConfigSet7Builder_.getMessage();
}
return yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.getDefaultInstance();
}
}
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
*/
public Builder setElasticsearchConfigSet7(yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7 value) {
if (elasticsearchConfigSet7Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
config_ = value;
onChanged();
} else {
elasticsearchConfigSet7Builder_.setMessage(value);
}
configCase_ = 1;
return this;
}
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
*/
public Builder setElasticsearchConfigSet7(
yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.Builder builderForValue) {
if (elasticsearchConfigSet7Builder_ == null) {
config_ = builderForValue.build();
onChanged();
} else {
elasticsearchConfigSet7Builder_.setMessage(builderForValue.build());
}
configCase_ = 1;
return this;
}
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
*/
public Builder mergeElasticsearchConfigSet7(yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7 value) {
if (elasticsearchConfigSet7Builder_ == null) {
if (configCase_ == 1 &&
config_ != yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.getDefaultInstance()) {
config_ = yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.newBuilder((yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7) config_)
.mergeFrom(value).buildPartial();
} else {
config_ = value;
}
onChanged();
} else {
if (configCase_ == 1) {
elasticsearchConfigSet7Builder_.mergeFrom(value);
}
elasticsearchConfigSet7Builder_.setMessage(value);
}
configCase_ = 1;
return this;
}
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
*/
public Builder clearElasticsearchConfigSet7() {
if (elasticsearchConfigSet7Builder_ == null) {
if (configCase_ == 1) {
configCase_ = 0;
config_ = null;
onChanged();
}
} else {
if (configCase_ == 1) {
configCase_ = 0;
config_ = null;
}
elasticsearchConfigSet7Builder_.clear();
}
return this;
}
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
*/
public yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.Builder getElasticsearchConfigSet7Builder() {
return getElasticsearchConfigSet7FieldBuilder().getBuilder();
}
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7OrBuilder getElasticsearchConfigSet7OrBuilder() {
if ((configCase_ == 1) && (elasticsearchConfigSet7Builder_ != null)) {
return elasticsearchConfigSet7Builder_.getMessageOrBuilder();
} else {
if (configCase_ == 1) {
return (yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7) config_;
}
return yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.getDefaultInstance();
}
}
/**
*
* Elasticsearch 7.x data node configuration.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.config.ElasticsearchConfigSet7 elasticsearch_config_set_7 = 1 [json_name = "elasticsearchConfigSet_7"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7, yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.Builder, yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7OrBuilder>
getElasticsearchConfigSet7FieldBuilder() {
if (elasticsearchConfigSet7Builder_ == null) {
if (!(configCase_ == 1)) {
config_ = yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.getDefaultInstance();
}
elasticsearchConfigSet7Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7, yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7.Builder, yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7OrBuilder>(
(yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.ElasticsearchConfigSet7) config_,
getParentForChildren(),
isClean());
config_ = null;
}
configCase_ = 1;
onChanged();;
return elasticsearchConfigSet7Builder_;
}
private yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources resources_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder> resourcesBuilder_;
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
* @return Whether the resources field is set.
*/
public boolean hasResources() {
return resourcesBuilder_ != null || resources_ != null;
}
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
* @return The resources.
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources getResources() {
if (resourcesBuilder_ == null) {
return resources_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;
} else {
return resourcesBuilder_.getMessage();
}
}
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
*/
public Builder setResources(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resources_ = value;
onChanged();
} else {
resourcesBuilder_.setMessage(value);
}
return this;
}
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
*/
public Builder setResources(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder builderForValue) {
if (resourcesBuilder_ == null) {
resources_ = builderForValue.build();
onChanged();
} else {
resourcesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
*/
public Builder mergeResources(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources value) {
if (resourcesBuilder_ == null) {
if (resources_ != null) {
resources_ =
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.newBuilder(resources_).mergeFrom(value).buildPartial();
} else {
resources_ = value;
}
onChanged();
} else {
resourcesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
*/
public Builder clearResources() {
if (resourcesBuilder_ == null) {
resources_ = null;
onChanged();
} else {
resources_ = null;
resourcesBuilder_ = null;
}
return this;
}
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder getResourcesBuilder() {
onChanged();
return getResourcesFieldBuilder().getBuilder();
}
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() {
if (resourcesBuilder_ != null) {
return resourcesBuilder_.getMessageOrBuilder();
} else {
return resources_ == null ?
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;
}
}
/**
*
* Resources allocated to Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder>(
getResources(),
getParentForChildren(),
isClean());
resources_ = null;
}
return resourcesBuilder_;
}
@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.mdb.elasticsearch.v1.Elasticsearch.DataNode)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode)
private static final yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode();
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DataNode(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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MasterNodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode)
com.google.protobuf.MessageOrBuilder {
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
* @return Whether the resources field is set.
*/
boolean hasResources();
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
* @return The resources.
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources getResources();
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode}
*/
public static final class MasterNode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode)
MasterNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use MasterNode.newBuilder() to construct.
private MasterNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MasterNode() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MasterNode();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MasterNode(
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.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder subBuilder = null;
if (resources_ != null) {
subBuilder = resources_.toBuilder();
}
resources_ = input.readMessage(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resources_);
resources_ = 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.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_MasterNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_MasterNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.Builder.class);
}
public static final int RESOURCES_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources resources_;
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
* @return Whether the resources field is set.
*/
@java.lang.Override
public boolean hasResources() {
return resources_ != null;
}
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
* @return The resources.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources getResources() {
return resources_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;
}
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() {
return getResources();
}
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 (resources_ != null) {
output.writeMessage(1, getResources());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (resources_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getResources());
}
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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode other = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode) obj;
if (hasResources() != other.hasResources()) return false;
if (hasResources()) {
if (!getResources()
.equals(other.getResources())) 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 (hasResources()) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResources().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode 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.mdb.elasticsearch.v1.Elasticsearch.MasterNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode)
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_MasterNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_MasterNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.Builder.class);
}
// Construct using yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.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();
if (resourcesBuilder_ == null) {
resources_ = null;
} else {
resources_ = null;
resourcesBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_MasterNode_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode getDefaultInstanceForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode build() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode buildPartial() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode result = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode(this);
if (resourcesBuilder_ == null) {
result.resources_ = resources_;
} else {
result.resources_ = resourcesBuilder_.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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode) {
return mergeFrom((yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode other) {
if (other == yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.getDefaultInstance()) return this;
if (other.hasResources()) {
mergeResources(other.getResources());
}
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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources resources_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder> resourcesBuilder_;
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
* @return Whether the resources field is set.
*/
public boolean hasResources() {
return resourcesBuilder_ != null || resources_ != null;
}
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
* @return The resources.
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources getResources() {
if (resourcesBuilder_ == null) {
return resources_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;
} else {
return resourcesBuilder_.getMessage();
}
}
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
*/
public Builder setResources(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resources_ = value;
onChanged();
} else {
resourcesBuilder_.setMessage(value);
}
return this;
}
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
*/
public Builder setResources(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder builderForValue) {
if (resourcesBuilder_ == null) {
resources_ = builderForValue.build();
onChanged();
} else {
resourcesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
*/
public Builder mergeResources(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources value) {
if (resourcesBuilder_ == null) {
if (resources_ != null) {
resources_ =
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.newBuilder(resources_).mergeFrom(value).buildPartial();
} else {
resources_ = value;
}
onChanged();
} else {
resourcesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
*/
public Builder clearResources() {
if (resourcesBuilder_ == null) {
resources_ = null;
onChanged();
} else {
resources_ = null;
resourcesBuilder_ = null;
}
return this;
}
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder getResourcesBuilder() {
onChanged();
return getResourcesFieldBuilder().getBuilder();
}
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() {
if (resourcesBuilder_ != null) {
return resourcesBuilder_.getMessageOrBuilder();
} else {
return resources_ == null ?
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;
}
}
/**
*
* Resources allocated to Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder>(
getResources(),
getParentForChildren(),
isClean());
resources_ = null;
}
return resourcesBuilder_;
}
@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.mdb.elasticsearch.v1.Elasticsearch.MasterNode)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode)
private static final yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode();
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MasterNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MasterNode(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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int DATA_NODE_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode dataNode_;
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
* @return Whether the dataNode field is set.
*/
@java.lang.Override
public boolean hasDataNode() {
return dataNode_ != null;
}
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
* @return The dataNode.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode getDataNode() {
return dataNode_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.getDefaultInstance() : dataNode_;
}
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNodeOrBuilder getDataNodeOrBuilder() {
return getDataNode();
}
public static final int MASTER_NODE_FIELD_NUMBER = 2;
private yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode masterNode_;
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
* @return Whether the masterNode field is set.
*/
@java.lang.Override
public boolean hasMasterNode() {
return masterNode_ != null;
}
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
* @return The masterNode.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode getMasterNode() {
return masterNode_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.getDefaultInstance() : masterNode_;
}
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNodeOrBuilder getMasterNodeOrBuilder() {
return getMasterNode();
}
public static final int PLUGINS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList plugins_;
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @return A list containing the plugins.
*/
public com.google.protobuf.ProtocolStringList
getPluginsList() {
return plugins_;
}
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @return The count of plugins.
*/
public int getPluginsCount() {
return plugins_.size();
}
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @param index The index of the element to return.
* @return The plugins at the given index.
*/
public java.lang.String getPlugins(int index) {
return plugins_.get(index);
}
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @param index The index of the value to return.
* @return The bytes of the plugins at the given index.
*/
public com.google.protobuf.ByteString
getPluginsBytes(int index) {
return plugins_.getByteString(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 {
if (dataNode_ != null) {
output.writeMessage(1, getDataNode());
}
if (masterNode_ != null) {
output.writeMessage(2, getMasterNode());
}
for (int i = 0; i < plugins_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, plugins_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (dataNode_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getDataNode());
}
if (masterNode_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMasterNode());
}
{
int dataSize = 0;
for (int i = 0; i < plugins_.size(); i++) {
dataSize += computeStringSizeNoTag(plugins_.getRaw(i));
}
size += dataSize;
size += 1 * getPluginsList().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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch other = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch) obj;
if (hasDataNode() != other.hasDataNode()) return false;
if (hasDataNode()) {
if (!getDataNode()
.equals(other.getDataNode())) return false;
}
if (hasMasterNode() != other.hasMasterNode()) return false;
if (hasMasterNode()) {
if (!getMasterNode()
.equals(other.getMasterNode())) return false;
}
if (!getPluginsList()
.equals(other.getPluginsList())) 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 (hasDataNode()) {
hash = (37 * hash) + DATA_NODE_FIELD_NUMBER;
hash = (53 * hash) + getDataNode().hashCode();
}
if (hasMasterNode()) {
hash = (37 * hash) + MASTER_NODE_FIELD_NUMBER;
hash = (53 * hash) + getMasterNode().hashCode();
}
if (getPluginsCount() > 0) {
hash = (37 * hash) + PLUGINS_FIELD_NUMBER;
hash = (53 * hash) + getPluginsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch 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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch 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.mdb.elasticsearch.v1.Elasticsearch}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.elasticsearch.v1.Elasticsearch)
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ElasticsearchOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.Builder.class);
}
// Construct using yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.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();
if (dataNodeBuilder_ == null) {
dataNode_ = null;
} else {
dataNode_ = null;
dataNodeBuilder_ = null;
}
if (masterNodeBuilder_ == null) {
masterNode_ = null;
} else {
masterNode_ = null;
masterNodeBuilder_ = null;
}
plugins_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch getDefaultInstanceForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch build() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch buildPartial() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch result = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch(this);
int from_bitField0_ = bitField0_;
if (dataNodeBuilder_ == null) {
result.dataNode_ = dataNode_;
} else {
result.dataNode_ = dataNodeBuilder_.build();
}
if (masterNodeBuilder_ == null) {
result.masterNode_ = masterNode_;
} else {
result.masterNode_ = masterNodeBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
plugins_ = plugins_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.plugins_ = plugins_;
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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch) {
return mergeFrom((yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch other) {
if (other == yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.getDefaultInstance()) return this;
if (other.hasDataNode()) {
mergeDataNode(other.getDataNode());
}
if (other.hasMasterNode()) {
mergeMasterNode(other.getMasterNode());
}
if (!other.plugins_.isEmpty()) {
if (plugins_.isEmpty()) {
plugins_ = other.plugins_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePluginsIsMutable();
plugins_.addAll(other.plugins_);
}
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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode dataNode_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNodeOrBuilder> dataNodeBuilder_;
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
* @return Whether the dataNode field is set.
*/
public boolean hasDataNode() {
return dataNodeBuilder_ != null || dataNode_ != null;
}
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
* @return The dataNode.
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode getDataNode() {
if (dataNodeBuilder_ == null) {
return dataNode_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.getDefaultInstance() : dataNode_;
} else {
return dataNodeBuilder_.getMessage();
}
}
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
*/
public Builder setDataNode(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode value) {
if (dataNodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataNode_ = value;
onChanged();
} else {
dataNodeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
*/
public Builder setDataNode(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.Builder builderForValue) {
if (dataNodeBuilder_ == null) {
dataNode_ = builderForValue.build();
onChanged();
} else {
dataNodeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
*/
public Builder mergeDataNode(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode value) {
if (dataNodeBuilder_ == null) {
if (dataNode_ != null) {
dataNode_ =
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.newBuilder(dataNode_).mergeFrom(value).buildPartial();
} else {
dataNode_ = value;
}
onChanged();
} else {
dataNodeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
*/
public Builder clearDataNode() {
if (dataNodeBuilder_ == null) {
dataNode_ = null;
onChanged();
} else {
dataNode_ = null;
dataNodeBuilder_ = null;
}
return this;
}
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.Builder getDataNodeBuilder() {
onChanged();
return getDataNodeFieldBuilder().getBuilder();
}
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNodeOrBuilder getDataNodeOrBuilder() {
if (dataNodeBuilder_ != null) {
return dataNodeBuilder_.getMessageOrBuilder();
} else {
return dataNode_ == null ?
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.getDefaultInstance() : dataNode_;
}
}
/**
*
* Configuration and resource allocation for Elasticsearch data nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.DataNode data_node = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNodeOrBuilder>
getDataNodeFieldBuilder() {
if (dataNodeBuilder_ == null) {
dataNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNode.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.DataNodeOrBuilder>(
getDataNode(),
getParentForChildren(),
isClean());
dataNode_ = null;
}
return dataNodeBuilder_;
}
private yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode masterNode_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNodeOrBuilder> masterNodeBuilder_;
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
* @return Whether the masterNode field is set.
*/
public boolean hasMasterNode() {
return masterNodeBuilder_ != null || masterNode_ != null;
}
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
* @return The masterNode.
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode getMasterNode() {
if (masterNodeBuilder_ == null) {
return masterNode_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.getDefaultInstance() : masterNode_;
} else {
return masterNodeBuilder_.getMessage();
}
}
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
*/
public Builder setMasterNode(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode value) {
if (masterNodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
masterNode_ = value;
onChanged();
} else {
masterNodeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
*/
public Builder setMasterNode(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.Builder builderForValue) {
if (masterNodeBuilder_ == null) {
masterNode_ = builderForValue.build();
onChanged();
} else {
masterNodeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
*/
public Builder mergeMasterNode(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode value) {
if (masterNodeBuilder_ == null) {
if (masterNode_ != null) {
masterNode_ =
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.newBuilder(masterNode_).mergeFrom(value).buildPartial();
} else {
masterNode_ = value;
}
onChanged();
} else {
masterNodeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
*/
public Builder clearMasterNode() {
if (masterNodeBuilder_ == null) {
masterNode_ = null;
onChanged();
} else {
masterNode_ = null;
masterNodeBuilder_ = null;
}
return this;
}
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.Builder getMasterNodeBuilder() {
onChanged();
return getMasterNodeFieldBuilder().getBuilder();
}
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNodeOrBuilder getMasterNodeOrBuilder() {
if (masterNodeBuilder_ != null) {
return masterNodeBuilder_.getMessageOrBuilder();
} else {
return masterNode_ == null ?
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.getDefaultInstance() : masterNode_;
}
}
/**
*
* Configuration and resource allocation for Elasticsearch master nodes.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Elasticsearch.MasterNode master_node = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNodeOrBuilder>
getMasterNodeFieldBuilder() {
if (masterNodeBuilder_ == null) {
masterNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNode.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch.MasterNodeOrBuilder>(
getMasterNode(),
getParentForChildren(),
isClean());
masterNode_ = null;
}
return masterNodeBuilder_;
}
private com.google.protobuf.LazyStringList plugins_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePluginsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
plugins_ = new com.google.protobuf.LazyStringArrayList(plugins_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @return A list containing the plugins.
*/
public com.google.protobuf.ProtocolStringList
getPluginsList() {
return plugins_.getUnmodifiableView();
}
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @return The count of plugins.
*/
public int getPluginsCount() {
return plugins_.size();
}
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @param index The index of the element to return.
* @return The plugins at the given index.
*/
public java.lang.String getPlugins(int index) {
return plugins_.get(index);
}
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @param index The index of the value to return.
* @return The bytes of the plugins at the given index.
*/
public com.google.protobuf.ByteString
getPluginsBytes(int index) {
return plugins_.getByteString(index);
}
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @param index The index to set the value at.
* @param value The plugins to set.
* @return This builder for chaining.
*/
public Builder setPlugins(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePluginsIsMutable();
plugins_.set(index, value);
onChanged();
return this;
}
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @param value The plugins to add.
* @return This builder for chaining.
*/
public Builder addPlugins(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePluginsIsMutable();
plugins_.add(value);
onChanged();
return this;
}
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @param values The plugins to add.
* @return This builder for chaining.
*/
public Builder addAllPlugins(
java.lang.Iterable values) {
ensurePluginsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, plugins_);
onChanged();
return this;
}
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @return This builder for chaining.
*/
public Builder clearPlugins() {
plugins_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Cluster wide plugins
*
*
* repeated string plugins = 3;
* @param value The bytes of the plugins to add.
* @return This builder for chaining.
*/
public Builder addPluginsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePluginsIsMutable();
plugins_.add(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.mdb.elasticsearch.v1.Elasticsearch)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.elasticsearch.v1.Elasticsearch)
private static final yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch();
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Elasticsearch parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Elasticsearch(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.mdb.elasticsearch.v1.ClusterOuterClass.Elasticsearch getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourcesOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.elasticsearch.v1.Resources)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the preset for computational resources available to a host (CPU, memory etc.).
* All available presets are listed in the [documentation](/docs/managed-elasticsearch/concepts/instance-types).
*
*
* string resource_preset_id = 1;
* @return The resourcePresetId.
*/
java.lang.String getResourcePresetId();
/**
*
* ID of the preset for computational resources available to a host (CPU, memory etc.).
* All available presets are listed in the [documentation](/docs/managed-elasticsearch/concepts/instance-types).
*
*
* string resource_preset_id = 1;
* @return The bytes for resourcePresetId.
*/
com.google.protobuf.ByteString
getResourcePresetIdBytes();
/**
*
* Volume of the storage available to a host, in bytes.
*
*
* int64 disk_size = 2;
* @return The diskSize.
*/
long getDiskSize();
/**
*
* Type of the storage environment for the host.
* All available types are listed in the [documentation](/docs/managed-elasticsearch/concepts/storage).
*
*
* string disk_type_id = 3;
* @return The diskTypeId.
*/
java.lang.String getDiskTypeId();
/**
*
* Type of the storage environment for the host.
* All available types are listed in the [documentation](/docs/managed-elasticsearch/concepts/storage).
*
*
* string disk_type_id = 3;
* @return The bytes for diskTypeId.
*/
com.google.protobuf.ByteString
getDiskTypeIdBytes();
}
/**
*
* Computational resources.
*
*
* Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.Resources}
*/
public static final class Resources extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.elasticsearch.v1.Resources)
ResourcesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Resources.newBuilder() to construct.
private Resources(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Resources() {
resourcePresetId_ = "";
diskTypeId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Resources();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Resources(
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();
resourcePresetId_ = s;
break;
}
case 16: {
diskSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
diskTypeId_ = 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.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Resources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Resources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder.class);
}
public static final int RESOURCE_PRESET_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object resourcePresetId_;
/**
*
* ID of the preset for computational resources available to a host (CPU, memory etc.).
* All available presets are listed in the [documentation](/docs/managed-elasticsearch/concepts/instance-types).
*
*
* string resource_preset_id = 1;
* @return The resourcePresetId.
*/
@java.lang.Override
public java.lang.String getResourcePresetId() {
java.lang.Object ref = resourcePresetId_;
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();
resourcePresetId_ = s;
return s;
}
}
/**
*
* ID of the preset for computational resources available to a host (CPU, memory etc.).
* All available presets are listed in the [documentation](/docs/managed-elasticsearch/concepts/instance-types).
*
*
* string resource_preset_id = 1;
* @return The bytes for resourcePresetId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourcePresetIdBytes() {
java.lang.Object ref = resourcePresetId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourcePresetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISK_SIZE_FIELD_NUMBER = 2;
private long diskSize_;
/**
*
* Volume of the storage available to a host, in bytes.
*
*
* int64 disk_size = 2;
* @return The diskSize.
*/
@java.lang.Override
public long getDiskSize() {
return diskSize_;
}
public static final int DISK_TYPE_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object diskTypeId_;
/**
*
* Type of the storage environment for the host.
* All available types are listed in the [documentation](/docs/managed-elasticsearch/concepts/storage).
*
*
* string disk_type_id = 3;
* @return The diskTypeId.
*/
@java.lang.Override
public java.lang.String getDiskTypeId() {
java.lang.Object ref = diskTypeId_;
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();
diskTypeId_ = s;
return s;
}
}
/**
*
* Type of the storage environment for the host.
* All available types are listed in the [documentation](/docs/managed-elasticsearch/concepts/storage).
*
*
* string disk_type_id = 3;
* @return The bytes for diskTypeId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDiskTypeIdBytes() {
java.lang.Object ref = diskTypeId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diskTypeId_ = 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(resourcePresetId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourcePresetId_);
}
if (diskSize_ != 0L) {
output.writeInt64(2, diskSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskTypeId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, diskTypeId_);
}
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(resourcePresetId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourcePresetId_);
}
if (diskSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, diskSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskTypeId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, diskTypeId_);
}
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.mdb.elasticsearch.v1.ClusterOuterClass.Resources)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources other = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources) obj;
if (!getResourcePresetId()
.equals(other.getResourcePresetId())) return false;
if (getDiskSize()
!= other.getDiskSize()) return false;
if (!getDiskTypeId()
.equals(other.getDiskTypeId())) 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) + RESOURCE_PRESET_ID_FIELD_NUMBER;
hash = (53 * hash) + getResourcePresetId().hashCode();
hash = (37 * hash) + DISK_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDiskSize());
hash = (37 * hash) + DISK_TYPE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDiskTypeId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources 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.mdb.elasticsearch.v1.ClusterOuterClass.Resources parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources 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.mdb.elasticsearch.v1.ClusterOuterClass.Resources parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources 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.mdb.elasticsearch.v1.ClusterOuterClass.Resources parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources 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.mdb.elasticsearch.v1.ClusterOuterClass.Resources parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources 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.mdb.elasticsearch.v1.ClusterOuterClass.Resources 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;
}
/**
*
* Computational resources.
*
*
* Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.Resources}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.elasticsearch.v1.Resources)
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Resources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Resources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder.class);
}
// Construct using yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.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();
resourcePresetId_ = "";
diskSize_ = 0L;
diskTypeId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Resources_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources getDefaultInstanceForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources build() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources buildPartial() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources result = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources(this);
result.resourcePresetId_ = resourcePresetId_;
result.diskSize_ = diskSize_;
result.diskTypeId_ = diskTypeId_;
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.mdb.elasticsearch.v1.ClusterOuterClass.Resources) {
return mergeFrom((yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources other) {
if (other == yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.getDefaultInstance()) return this;
if (!other.getResourcePresetId().isEmpty()) {
resourcePresetId_ = other.resourcePresetId_;
onChanged();
}
if (other.getDiskSize() != 0L) {
setDiskSize(other.getDiskSize());
}
if (!other.getDiskTypeId().isEmpty()) {
diskTypeId_ = other.diskTypeId_;
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.mdb.elasticsearch.v1.ClusterOuterClass.Resources parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object resourcePresetId_ = "";
/**
*
* ID of the preset for computational resources available to a host (CPU, memory etc.).
* All available presets are listed in the [documentation](/docs/managed-elasticsearch/concepts/instance-types).
*
*
* string resource_preset_id = 1;
* @return The resourcePresetId.
*/
public java.lang.String getResourcePresetId() {
java.lang.Object ref = resourcePresetId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourcePresetId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the preset for computational resources available to a host (CPU, memory etc.).
* All available presets are listed in the [documentation](/docs/managed-elasticsearch/concepts/instance-types).
*
*
* string resource_preset_id = 1;
* @return The bytes for resourcePresetId.
*/
public com.google.protobuf.ByteString
getResourcePresetIdBytes() {
java.lang.Object ref = resourcePresetId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourcePresetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the preset for computational resources available to a host (CPU, memory etc.).
* All available presets are listed in the [documentation](/docs/managed-elasticsearch/concepts/instance-types).
*
*
* string resource_preset_id = 1;
* @param value The resourcePresetId to set.
* @return This builder for chaining.
*/
public Builder setResourcePresetId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourcePresetId_ = value;
onChanged();
return this;
}
/**
*
* ID of the preset for computational resources available to a host (CPU, memory etc.).
* All available presets are listed in the [documentation](/docs/managed-elasticsearch/concepts/instance-types).
*
*
* string resource_preset_id = 1;
* @return This builder for chaining.
*/
public Builder clearResourcePresetId() {
resourcePresetId_ = getDefaultInstance().getResourcePresetId();
onChanged();
return this;
}
/**
*
* ID of the preset for computational resources available to a host (CPU, memory etc.).
* All available presets are listed in the [documentation](/docs/managed-elasticsearch/concepts/instance-types).
*
*
* string resource_preset_id = 1;
* @param value The bytes for resourcePresetId to set.
* @return This builder for chaining.
*/
public Builder setResourcePresetIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourcePresetId_ = value;
onChanged();
return this;
}
private long diskSize_ ;
/**
*
* Volume of the storage available to a host, in bytes.
*
*
* int64 disk_size = 2;
* @return The diskSize.
*/
@java.lang.Override
public long getDiskSize() {
return diskSize_;
}
/**
*
* Volume of the storage available to a host, in bytes.
*
*
* int64 disk_size = 2;
* @param value The diskSize to set.
* @return This builder for chaining.
*/
public Builder setDiskSize(long value) {
diskSize_ = value;
onChanged();
return this;
}
/**
*
* Volume of the storage available to a host, in bytes.
*
*
* int64 disk_size = 2;
* @return This builder for chaining.
*/
public Builder clearDiskSize() {
diskSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object diskTypeId_ = "";
/**
*
* Type of the storage environment for the host.
* All available types are listed in the [documentation](/docs/managed-elasticsearch/concepts/storage).
*
*
* string disk_type_id = 3;
* @return The diskTypeId.
*/
public java.lang.String getDiskTypeId() {
java.lang.Object ref = diskTypeId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
diskTypeId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Type of the storage environment for the host.
* All available types are listed in the [documentation](/docs/managed-elasticsearch/concepts/storage).
*
*
* string disk_type_id = 3;
* @return The bytes for diskTypeId.
*/
public com.google.protobuf.ByteString
getDiskTypeIdBytes() {
java.lang.Object ref = diskTypeId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diskTypeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Type of the storage environment for the host.
* All available types are listed in the [documentation](/docs/managed-elasticsearch/concepts/storage).
*
*
* string disk_type_id = 3;
* @param value The diskTypeId to set.
* @return This builder for chaining.
*/
public Builder setDiskTypeId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
diskTypeId_ = value;
onChanged();
return this;
}
/**
*
* Type of the storage environment for the host.
* All available types are listed in the [documentation](/docs/managed-elasticsearch/concepts/storage).
*
*
* string disk_type_id = 3;
* @return This builder for chaining.
*/
public Builder clearDiskTypeId() {
diskTypeId_ = getDefaultInstance().getDiskTypeId();
onChanged();
return this;
}
/**
*
* Type of the storage environment for the host.
* All available types are listed in the [documentation](/docs/managed-elasticsearch/concepts/storage).
*
*
* string disk_type_id = 3;
* @param value The bytes for diskTypeId to set.
* @return This builder for chaining.
*/
public Builder setDiskTypeIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
diskTypeId_ = 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.mdb.elasticsearch.v1.Resources)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.elasticsearch.v1.Resources)
private static final yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources();
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Resources parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Resources(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.mdb.elasticsearch.v1.ClusterOuterClass.Resources getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HostOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.elasticsearch.v1.Host)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the host.
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the host.
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* ID of the Elasticsearch cluster.
*
*
* string cluster_id = 2;
* @return The clusterId.
*/
java.lang.String getClusterId();
/**
*
* ID of the Elasticsearch cluster.
*
*
* string cluster_id = 2;
* @return The bytes for clusterId.
*/
com.google.protobuf.ByteString
getClusterIdBytes();
/**
*
* ID of the availability zone where the host resides.
*
*
* string zone_id = 3;
* @return The zoneId.
*/
java.lang.String getZoneId();
/**
*
* ID of the availability zone where the host resides.
*
*
* string zone_id = 3;
* @return The bytes for zoneId.
*/
com.google.protobuf.ByteString
getZoneIdBytes();
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Type type = 4;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Type type = 4;
* @return The type.
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Type getType();
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
* @return Whether the resources field is set.
*/
boolean hasResources();
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
* @return The resources.
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources getResources();
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();
/**
*
* Aggregated host health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Health health = 6;
* @return The enum numeric value on the wire for health.
*/
int getHealthValue();
/**
*
* Aggregated host health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Health health = 6;
* @return The health.
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Health getHealth();
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
java.util.List
getServicesList();
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service getServices(int index);
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
int getServicesCount();
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
java.util.List extends yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ServiceOrBuilder>
getServicesOrBuilderList();
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ServiceOrBuilder getServicesOrBuilder(
int index);
/**
*
* ID of the subnet the host resides in.
*
*
* string subnet_id = 8;
* @return The subnetId.
*/
java.lang.String getSubnetId();
/**
*
* ID of the subnet the host resides in.
*
*
* string subnet_id = 8;
* @return The bytes for subnetId.
*/
com.google.protobuf.ByteString
getSubnetIdBytes();
/**
*
* The flag that defines whether a public IP address is assigned to the host.
* If the value is `true`, then this host is available on the Internet via it's public IP address.
*
*
* bool assign_public_ip = 9;
* @return The assignPublicIp.
*/
boolean getAssignPublicIp();
}
/**
*
* Cluster host metadata.
*
*
* Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.Host}
*/
public static final class Host extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.elasticsearch.v1.Host)
HostOrBuilder {
private static final long serialVersionUID = 0L;
// Use Host.newBuilder() to construct.
private Host(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Host() {
name_ = "";
clusterId_ = "";
zoneId_ = "";
type_ = 0;
health_ = 0;
services_ = java.util.Collections.emptyList();
subnetId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Host();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Host(
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();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
clusterId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
zoneId_ = s;
break;
}
case 32: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 42: {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder subBuilder = null;
if (resources_ != null) {
subBuilder = resources_.toBuilder();
}
resources_ = input.readMessage(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resources_);
resources_ = subBuilder.buildPartial();
}
break;
}
case 48: {
int rawValue = input.readEnum();
health_ = rawValue;
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
services_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
services_.add(
input.readMessage(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.parser(), extensionRegistry));
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
subnetId_ = s;
break;
}
case 72: {
assignPublicIp_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
services_ = java.util.Collections.unmodifiableList(services_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Host_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Host_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.elasticsearch.v1.Host.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TYPE_UNSPECIFIED = 0;
*/
TYPE_UNSPECIFIED(0),
/**
*
* the host is an Elasticsearch data node.
*
*
* DATA_NODE = 1;
*/
DATA_NODE(1),
/**
*
* the host is an Elasticsearch master node.
*
*
* MASTER_NODE = 2;
*/
MASTER_NODE(2),
UNRECOGNIZED(-1),
;
/**
* TYPE_UNSPECIFIED = 0;
*/
public static final int TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* the host is an Elasticsearch data node.
*
*
* DATA_NODE = 1;
*/
public static final int DATA_NODE_VALUE = 1;
/**
*
* the host is an Elasticsearch master node.
*
*
* MASTER_NODE = 2;
*/
public static final int MASTER_NODE_VALUE = 2;
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 Type 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 Type forNumber(int value) {
switch (value) {
case 0: return TYPE_UNSPECIFIED;
case 1: return DATA_NODE;
case 2: return MASTER_NODE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.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.mdb.elasticsearch.v1.ClusterOuterClass.Host.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type 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 Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.elasticsearch.v1.Host.Type)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.elasticsearch.v1.Host.Health}
*/
public enum Health
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* health of the host is unknown.
*
*
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
*
* the host is performing all its functions normally.
*
*
* ALIVE = 1;
*/
ALIVE(1),
/**
*
* the host is inoperable and cannot perform any of its essential functions.
*
*
* DEAD = 2;
*/
DEAD(2),
/**
*
* the host is degraded and can perform only some of its essential functions.
*
*
* DEGRADED = 3;
*/
DEGRADED(3),
UNRECOGNIZED(-1),
;
/**
*
* health of the host is unknown.
*
*
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
*
* the host is performing all its functions normally.
*
*
* ALIVE = 1;
*/
public static final int ALIVE_VALUE = 1;
/**
*
* the host is inoperable and cannot perform any of its essential functions.
*
*
* DEAD = 2;
*/
public static final int DEAD_VALUE = 2;
/**
*
* the host is degraded and can perform only some of its essential functions.
*
*
* DEGRADED = 3;
*/
public static final int DEGRADED_VALUE = 3;
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 Health 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 Health forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return ALIVE;
case 2: return DEAD;
case 3: return DEGRADED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Health> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Health findValueByNumber(int number) {
return Health.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.mdb.elasticsearch.v1.ClusterOuterClass.Host.getDescriptor().getEnumTypes().get(1);
}
private static final Health[] VALUES = values();
public static Health 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 Health(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.elasticsearch.v1.Host.Health)
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of the host.
*
*
* string name = 1;
* @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 host.
*
*
* string name = 1;
* @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 CLUSTER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object clusterId_;
/**
*
* ID of the Elasticsearch cluster.
*
*
* 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 Elasticsearch cluster.
*
*
* 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 ZONE_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object zoneId_;
/**
*
* ID of the availability zone where the host resides.
*
*
* string zone_id = 3;
* @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 host resides.
*
*
* string zone_id = 3;
* @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 TYPE_FIELD_NUMBER = 4;
private int type_;
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Type type = 4;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Type type = 4;
* @return The type.
*/
@java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Type getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Type result = yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Type.valueOf(type_);
return result == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Type.UNRECOGNIZED : result;
}
public static final int RESOURCES_FIELD_NUMBER = 5;
private yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources resources_;
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
* @return Whether the resources field is set.
*/
@java.lang.Override
public boolean hasResources() {
return resources_ != null;
}
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
* @return The resources.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources getResources() {
return resources_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;
}
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() {
return getResources();
}
public static final int HEALTH_FIELD_NUMBER = 6;
private int health_;
/**
*
* Aggregated host health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Health health = 6;
* @return The enum numeric value on the wire for health.
*/
@java.lang.Override public int getHealthValue() {
return health_;
}
/**
*
* Aggregated host health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Health health = 6;
* @return The health.
*/
@java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Health getHealth() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Health result = yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Health.valueOf(health_);
return result == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Health.UNRECOGNIZED : result;
}
public static final int SERVICES_FIELD_NUMBER = 7;
private java.util.List services_;
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
@java.lang.Override
public java.util.List getServicesList() {
return services_;
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ServiceOrBuilder>
getServicesOrBuilderList() {
return services_;
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
@java.lang.Override
public int getServicesCount() {
return services_.size();
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service getServices(int index) {
return services_.get(index);
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ServiceOrBuilder getServicesOrBuilder(
int index) {
return services_.get(index);
}
public static final int SUBNET_ID_FIELD_NUMBER = 8;
private volatile java.lang.Object subnetId_;
/**
*
* ID of the subnet the host resides in.
*
*
* string subnet_id = 8;
* @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 the host resides in.
*
*
* string subnet_id = 8;
* @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;
}
}
public static final int ASSIGN_PUBLIC_IP_FIELD_NUMBER = 9;
private boolean assignPublicIp_;
/**
*
* The flag that defines whether a public IP address is assigned to the host.
* If the value is `true`, then this host is available on the Internet via it's public IP address.
*
*
* bool assign_public_ip = 9;
* @return The assignPublicIp.
*/
@java.lang.Override
public boolean getAssignPublicIp() {
return assignPublicIp_;
}
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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, zoneId_);
}
if (type_ != yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Type.TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(4, type_);
}
if (resources_ != null) {
output.writeMessage(5, getResources());
}
if (health_ != yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Health.UNKNOWN.getNumber()) {
output.writeEnum(6, health_);
}
for (int i = 0; i < services_.size(); i++) {
output.writeMessage(7, services_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, subnetId_);
}
if (assignPublicIp_ != false) {
output.writeBool(9, assignPublicIp_);
}
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(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, zoneId_);
}
if (type_ != yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Type.TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, type_);
}
if (resources_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getResources());
}
if (health_ != yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Health.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, health_);
}
for (int i = 0; i < services_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, services_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, subnetId_);
}
if (assignPublicIp_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, assignPublicIp_);
}
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.mdb.elasticsearch.v1.ClusterOuterClass.Host)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host other = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (!getZoneId()
.equals(other.getZoneId())) return false;
if (type_ != other.type_) return false;
if (hasResources() != other.hasResources()) return false;
if (hasResources()) {
if (!getResources()
.equals(other.getResources())) return false;
}
if (health_ != other.health_) return false;
if (!getServicesList()
.equals(other.getServicesList())) return false;
if (!getSubnetId()
.equals(other.getSubnetId())) return false;
if (getAssignPublicIp()
!= other.getAssignPublicIp()) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
hash = (37 * hash) + ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getZoneId().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (hasResources()) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResources().hashCode();
}
hash = (37 * hash) + HEALTH_FIELD_NUMBER;
hash = (53 * hash) + health_;
if (getServicesCount() > 0) {
hash = (37 * hash) + SERVICES_FIELD_NUMBER;
hash = (53 * hash) + getServicesList().hashCode();
}
hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER;
hash = (53 * hash) + getSubnetId().hashCode();
hash = (37 * hash) + ASSIGN_PUBLIC_IP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAssignPublicIp());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host 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.mdb.elasticsearch.v1.ClusterOuterClass.Host parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host 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.mdb.elasticsearch.v1.ClusterOuterClass.Host parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host 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.mdb.elasticsearch.v1.ClusterOuterClass.Host parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host 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.mdb.elasticsearch.v1.ClusterOuterClass.Host parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host 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.mdb.elasticsearch.v1.ClusterOuterClass.Host 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;
}
/**
*
* Cluster host metadata.
*
*
* Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.Host}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.elasticsearch.v1.Host)
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.HostOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Host_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Host_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Builder.class);
}
// Construct using yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getServicesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
clusterId_ = "";
zoneId_ = "";
type_ = 0;
if (resourcesBuilder_ == null) {
resources_ = null;
} else {
resources_ = null;
resourcesBuilder_ = null;
}
health_ = 0;
if (servicesBuilder_ == null) {
services_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
servicesBuilder_.clear();
}
subnetId_ = "";
assignPublicIp_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Host_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host getDefaultInstanceForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host build() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host buildPartial() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host result = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
result.clusterId_ = clusterId_;
result.zoneId_ = zoneId_;
result.type_ = type_;
if (resourcesBuilder_ == null) {
result.resources_ = resources_;
} else {
result.resources_ = resourcesBuilder_.build();
}
result.health_ = health_;
if (servicesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
services_ = java.util.Collections.unmodifiableList(services_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.services_ = services_;
} else {
result.services_ = servicesBuilder_.build();
}
result.subnetId_ = subnetId_;
result.assignPublicIp_ = assignPublicIp_;
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.mdb.elasticsearch.v1.ClusterOuterClass.Host) {
return mergeFrom((yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host other) {
if (other == yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (!other.getZoneId().isEmpty()) {
zoneId_ = other.zoneId_;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.hasResources()) {
mergeResources(other.getResources());
}
if (other.health_ != 0) {
setHealthValue(other.getHealthValue());
}
if (servicesBuilder_ == null) {
if (!other.services_.isEmpty()) {
if (services_.isEmpty()) {
services_ = other.services_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureServicesIsMutable();
services_.addAll(other.services_);
}
onChanged();
}
} else {
if (!other.services_.isEmpty()) {
if (servicesBuilder_.isEmpty()) {
servicesBuilder_.dispose();
servicesBuilder_ = null;
services_ = other.services_;
bitField0_ = (bitField0_ & ~0x00000001);
servicesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getServicesFieldBuilder() : null;
} else {
servicesBuilder_.addAllMessages(other.services_);
}
}
}
if (!other.getSubnetId().isEmpty()) {
subnetId_ = other.subnetId_;
onChanged();
}
if (other.getAssignPublicIp() != false) {
setAssignPublicIp(other.getAssignPublicIp());
}
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.mdb.elasticsearch.v1.ClusterOuterClass.Host parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of the host.
*
*
* string name = 1;
* @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 host.
*
*
* string name = 1;
* @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 host.
*
*
* string name = 1;
* @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 host.
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the host.
*
*
* string name = 1;
* @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 clusterId_ = "";
/**
*
* ID of the Elasticsearch cluster.
*
*
* 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 Elasticsearch cluster.
*
*
* 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 Elasticsearch cluster.
*
*
* 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 Elasticsearch cluster.
*
*
* string cluster_id = 2;
* @return This builder for chaining.
*/
public Builder clearClusterId() {
clusterId_ = getDefaultInstance().getClusterId();
onChanged();
return this;
}
/**
*
* ID of the Elasticsearch cluster.
*
*
* 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 java.lang.Object zoneId_ = "";
/**
*
* ID of the availability zone where the host resides.
*
*
* string zone_id = 3;
* @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 host resides.
*
*
* string zone_id = 3;
* @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 host resides.
*
*
* string zone_id = 3;
* @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 host resides.
*
*
* string zone_id = 3;
* @return This builder for chaining.
*/
public Builder clearZoneId() {
zoneId_ = getDefaultInstance().getZoneId();
onChanged();
return this;
}
/**
*
* ID of the availability zone where the host resides.
*
*
* string zone_id = 3;
* @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 int type_ = 0;
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Type type = 4;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Type type = 4;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Type type = 4;
* @return The type.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Type getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Type result = yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Type.valueOf(type_);
return result == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Type.UNRECOGNIZED : result;
}
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Type type = 4;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Type value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Type type = 4;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources resources_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder> resourcesBuilder_;
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
* @return Whether the resources field is set.
*/
public boolean hasResources() {
return resourcesBuilder_ != null || resources_ != null;
}
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
* @return The resources.
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources getResources() {
if (resourcesBuilder_ == null) {
return resources_ == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;
} else {
return resourcesBuilder_.getMessage();
}
}
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
*/
public Builder setResources(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resources_ = value;
onChanged();
} else {
resourcesBuilder_.setMessage(value);
}
return this;
}
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
*/
public Builder setResources(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder builderForValue) {
if (resourcesBuilder_ == null) {
resources_ = builderForValue.build();
onChanged();
} else {
resourcesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
*/
public Builder mergeResources(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources value) {
if (resourcesBuilder_ == null) {
if (resources_ != null) {
resources_ =
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.newBuilder(resources_).mergeFrom(value).buildPartial();
} else {
resources_ = value;
}
onChanged();
} else {
resourcesBuilder_.mergeFrom(value);
}
return this;
}
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
*/
public Builder clearResources() {
if (resourcesBuilder_ == null) {
resources_ = null;
onChanged();
} else {
resources_ = null;
resourcesBuilder_ = null;
}
return this;
}
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder getResourcesBuilder() {
onChanged();
return getResourcesFieldBuilder().getBuilder();
}
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() {
if (resourcesBuilder_ != null) {
return resourcesBuilder_.getMessageOrBuilder();
} else {
return resources_ == null ?
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;
}
}
/**
* .yandex.cloud.mdb.elasticsearch.v1.Resources resources = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ResourcesOrBuilder>(
getResources(),
getParentForChildren(),
isClean());
resources_ = null;
}
return resourcesBuilder_;
}
private int health_ = 0;
/**
*
* Aggregated host health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Health health = 6;
* @return The enum numeric value on the wire for health.
*/
@java.lang.Override public int getHealthValue() {
return health_;
}
/**
*
* Aggregated host health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Health health = 6;
* @param value The enum numeric value on the wire for health to set.
* @return This builder for chaining.
*/
public Builder setHealthValue(int value) {
health_ = value;
onChanged();
return this;
}
/**
*
* Aggregated host health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Health health = 6;
* @return The health.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Health getHealth() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Health result = yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Health.valueOf(health_);
return result == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Health.UNRECOGNIZED : result;
}
/**
*
* Aggregated host health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Health health = 6;
* @param value The health to set.
* @return This builder for chaining.
*/
public Builder setHealth(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host.Health value) {
if (value == null) {
throw new NullPointerException();
}
health_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Aggregated host health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Host.Health health = 6;
* @return This builder for chaining.
*/
public Builder clearHealth() {
health_ = 0;
onChanged();
return this;
}
private java.util.List services_ =
java.util.Collections.emptyList();
private void ensureServicesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
services_ = new java.util.ArrayList(services_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ServiceOrBuilder> servicesBuilder_;
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public java.util.List getServicesList() {
if (servicesBuilder_ == null) {
return java.util.Collections.unmodifiableList(services_);
} else {
return servicesBuilder_.getMessageList();
}
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public int getServicesCount() {
if (servicesBuilder_ == null) {
return services_.size();
} else {
return servicesBuilder_.getCount();
}
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service getServices(int index) {
if (servicesBuilder_ == null) {
return services_.get(index);
} else {
return servicesBuilder_.getMessage(index);
}
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public Builder setServices(
int index, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service value) {
if (servicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesIsMutable();
services_.set(index, value);
onChanged();
} else {
servicesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public Builder setServices(
int index, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Builder builderForValue) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.set(index, builderForValue.build());
onChanged();
} else {
servicesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public Builder addServices(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service value) {
if (servicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesIsMutable();
services_.add(value);
onChanged();
} else {
servicesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public Builder addServices(
int index, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service value) {
if (servicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesIsMutable();
services_.add(index, value);
onChanged();
} else {
servicesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public Builder addServices(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Builder builderForValue) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.add(builderForValue.build());
onChanged();
} else {
servicesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public Builder addServices(
int index, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Builder builderForValue) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.add(index, builderForValue.build());
onChanged();
} else {
servicesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public Builder addAllServices(
java.lang.Iterable extends yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service> values) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, services_);
onChanged();
} else {
servicesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public Builder clearServices() {
if (servicesBuilder_ == null) {
services_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
servicesBuilder_.clear();
}
return this;
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public Builder removeServices(int index) {
if (servicesBuilder_ == null) {
ensureServicesIsMutable();
services_.remove(index);
onChanged();
} else {
servicesBuilder_.remove(index);
}
return this;
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Builder getServicesBuilder(
int index) {
return getServicesFieldBuilder().getBuilder(index);
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ServiceOrBuilder getServicesOrBuilder(
int index) {
if (servicesBuilder_ == null) {
return services_.get(index); } else {
return servicesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public java.util.List extends yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ServiceOrBuilder>
getServicesOrBuilderList() {
if (servicesBuilder_ != null) {
return servicesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(services_);
}
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Builder addServicesBuilder() {
return getServicesFieldBuilder().addBuilder(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.getDefaultInstance());
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Builder addServicesBuilder(
int index) {
return getServicesFieldBuilder().addBuilder(
index, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.getDefaultInstance());
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.elasticsearch.v1.Service services = 7;
*/
public java.util.List
getServicesBuilderList() {
return getServicesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ServiceOrBuilder>
getServicesFieldBuilder() {
if (servicesBuilder_ == null) {
servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ServiceOrBuilder>(
services_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
services_ = null;
}
return servicesBuilder_;
}
private java.lang.Object subnetId_ = "";
/**
*
* ID of the subnet the host resides in.
*
*
* string subnet_id = 8;
* @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 the host resides in.
*
*
* string subnet_id = 8;
* @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 the host resides in.
*
*
* string subnet_id = 8;
* @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 the host resides in.
*
*
* string subnet_id = 8;
* @return This builder for chaining.
*/
public Builder clearSubnetId() {
subnetId_ = getDefaultInstance().getSubnetId();
onChanged();
return this;
}
/**
*
* ID of the subnet the host resides in.
*
*
* string subnet_id = 8;
* @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;
}
private boolean assignPublicIp_ ;
/**
*
* The flag that defines whether a public IP address is assigned to the host.
* If the value is `true`, then this host is available on the Internet via it's public IP address.
*
*
* bool assign_public_ip = 9;
* @return The assignPublicIp.
*/
@java.lang.Override
public boolean getAssignPublicIp() {
return assignPublicIp_;
}
/**
*
* The flag that defines whether a public IP address is assigned to the host.
* If the value is `true`, then this host is available on the Internet via it's public IP address.
*
*
* bool assign_public_ip = 9;
* @param value The assignPublicIp to set.
* @return This builder for chaining.
*/
public Builder setAssignPublicIp(boolean value) {
assignPublicIp_ = value;
onChanged();
return this;
}
/**
*
* The flag that defines whether a public IP address is assigned to the host.
* If the value is `true`, then this host is available on the Internet via it's public IP address.
*
*
* bool assign_public_ip = 9;
* @return This builder for chaining.
*/
public Builder clearAssignPublicIp() {
assignPublicIp_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.elasticsearch.v1.Host)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.elasticsearch.v1.Host)
private static final yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host();
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Host getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Host parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Host(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.mdb.elasticsearch.v1.ClusterOuterClass.Host getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ServiceOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.elasticsearch.v1.Service)
com.google.protobuf.MessageOrBuilder {
/**
*
* Type of the service provided by the host.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Type type = 1;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
*
* Type of the service provided by the host.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Type type = 1;
* @return The type.
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Type getType();
/**
*
* Service health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Health health = 2;
* @return The enum numeric value on the wire for health.
*/
int getHealthValue();
/**
*
* Service health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Health health = 2;
* @return The health.
*/
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Health getHealth();
}
/**
*
* Cluster service metadata.
*
*
* Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.Service}
*/
public static final class Service extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.elasticsearch.v1.Service)
ServiceOrBuilder {
private static final long serialVersionUID = 0L;
// Use Service.newBuilder() to construct.
private Service(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Service() {
type_ = 0;
health_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Service();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Service(
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: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 16: {
int rawValue = input.readEnum();
health_ = rawValue;
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.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Service_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Service_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.elasticsearch.v1.Service.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TYPE_UNSPECIFIED = 0;
*/
TYPE_UNSPECIFIED(0),
/**
*
* the Elasticsearch service.
*
*
* ELASTICSEARCH = 1;
*/
ELASTICSEARCH(1),
UNRECOGNIZED(-1),
;
/**
* TYPE_UNSPECIFIED = 0;
*/
public static final int TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* the Elasticsearch service.
*
*
* ELASTICSEARCH = 1;
*/
public static final int ELASTICSEARCH_VALUE = 1;
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 Type 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 Type forNumber(int value) {
switch (value) {
case 0: return TYPE_UNSPECIFIED;
case 1: return ELASTICSEARCH;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.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.mdb.elasticsearch.v1.ClusterOuterClass.Service.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type 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 Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.elasticsearch.v1.Service.Type)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.elasticsearch.v1.Service.Health}
*/
public enum Health
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* health of the service is unknown.
*
*
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
*
* the service is working normally.
*
*
* ALIVE = 1;
*/
ALIVE(1),
/**
*
* the service is dead or unresponsive.
*
*
* DEAD = 2;
*/
DEAD(2),
UNRECOGNIZED(-1),
;
/**
*
* health of the service is unknown.
*
*
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
*
* the service is working normally.
*
*
* ALIVE = 1;
*/
public static final int ALIVE_VALUE = 1;
/**
*
* the service is dead or unresponsive.
*
*
* DEAD = 2;
*/
public static final int DEAD_VALUE = 2;
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 Health 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 Health forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return ALIVE;
case 2: return DEAD;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Health> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Health findValueByNumber(int number) {
return Health.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.mdb.elasticsearch.v1.ClusterOuterClass.Service.getDescriptor().getEnumTypes().get(1);
}
private static final Health[] VALUES = values();
public static Health 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 Health(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.elasticsearch.v1.Service.Health)
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
*
* Type of the service provided by the host.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Type type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Type of the service provided by the host.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Type type = 1;
* @return The type.
*/
@java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Type getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Type result = yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Type.valueOf(type_);
return result == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Type.UNRECOGNIZED : result;
}
public static final int HEALTH_FIELD_NUMBER = 2;
private int health_;
/**
*
* Service health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Health health = 2;
* @return The enum numeric value on the wire for health.
*/
@java.lang.Override public int getHealthValue() {
return health_;
}
/**
*
* Service health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Health health = 2;
* @return The health.
*/
@java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Health getHealth() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Health result = yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Health.valueOf(health_);
return result == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Health.UNRECOGNIZED : result;
}
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 (type_ != yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Type.TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(1, type_);
}
if (health_ != yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Health.UNKNOWN.getNumber()) {
output.writeEnum(2, health_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Type.TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (health_ != yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Health.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, health_);
}
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.mdb.elasticsearch.v1.ClusterOuterClass.Service)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service other = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service) obj;
if (type_ != other.type_) return false;
if (health_ != other.health_) 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) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + HEALTH_FIELD_NUMBER;
hash = (53 * hash) + health_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service 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.mdb.elasticsearch.v1.ClusterOuterClass.Service parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service 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.mdb.elasticsearch.v1.ClusterOuterClass.Service parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service 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.mdb.elasticsearch.v1.ClusterOuterClass.Service parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service 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.mdb.elasticsearch.v1.ClusterOuterClass.Service parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service 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.mdb.elasticsearch.v1.ClusterOuterClass.Service 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;
}
/**
*
* Cluster service metadata.
*
*
* Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.Service}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.elasticsearch.v1.Service)
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ServiceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Service_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Service_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.class, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Builder.class);
}
// Construct using yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.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();
type_ = 0;
health_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Service_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service getDefaultInstanceForType() {
return yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service build() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service buildPartial() {
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service result = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service(this);
result.type_ = type_;
result.health_ = health_;
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.mdb.elasticsearch.v1.ClusterOuterClass.Service) {
return mergeFrom((yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service other) {
if (other == yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.health_ != 0) {
setHealthValue(other.getHealthValue());
}
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.mdb.elasticsearch.v1.ClusterOuterClass.Service parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int type_ = 0;
/**
*
* Type of the service provided by the host.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Type type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Type of the service provided by the host.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Type type = 1;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* Type of the service provided by the host.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Type type = 1;
* @return The type.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Type getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Type result = yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Type.valueOf(type_);
return result == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Type.UNRECOGNIZED : result;
}
/**
*
* Type of the service provided by the host.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Type type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Type value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Type of the service provided by the host.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Type type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private int health_ = 0;
/**
*
* Service health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Health health = 2;
* @return The enum numeric value on the wire for health.
*/
@java.lang.Override public int getHealthValue() {
return health_;
}
/**
*
* Service health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Health health = 2;
* @param value The enum numeric value on the wire for health to set.
* @return This builder for chaining.
*/
public Builder setHealthValue(int value) {
health_ = value;
onChanged();
return this;
}
/**
*
* Service health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Health health = 2;
* @return The health.
*/
@java.lang.Override
public yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Health getHealth() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Health result = yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Health.valueOf(health_);
return result == null ? yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Health.UNRECOGNIZED : result;
}
/**
*
* Service health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Health health = 2;
* @param value The health to set.
* @return This builder for chaining.
*/
public Builder setHealth(yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service.Health value) {
if (value == null) {
throw new NullPointerException();
}
health_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Service health data.
*
*
* .yandex.cloud.mdb.elasticsearch.v1.Service.Health health = 2;
* @return This builder for chaining.
*/
public Builder clearHealth() {
health_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.elasticsearch.v1.Service)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.elasticsearch.v1.Service)
private static final yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service();
}
public static yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.Service getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Service parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Service(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.mdb.elasticsearch.v1.ClusterOuterClass.Service getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_LabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_elasticsearch_v1_Monitoring_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_elasticsearch_v1_Monitoring_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_elasticsearch_v1_ClusterConfig_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_elasticsearch_v1_ClusterConfig_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_DataNode_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_DataNode_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_MasterNode_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_MasterNode_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_elasticsearch_v1_Resources_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_elasticsearch_v1_Resources_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_elasticsearch_v1_Host_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_elasticsearch_v1_Host_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_elasticsearch_v1_Service_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_elasticsearch_v1_Service_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/mdb/elasticsearch/v1/clus" +
"ter.proto\022!yandex.cloud.mdb.elasticsearc" +
"h.v1\032\037google/protobuf/timestamp.proto\032\n\006health\030\006 \001(\0162" +
"..yandex.cloud.mdb.elasticsearch.v1.Host" +
".Health\022<\n\010services\030\007 \003(\0132*.yandex.cloud" +
".mdb.elasticsearch.v1.Service\022\021\n\tsubnet_" +
"id\030\010 \001(\t\022\030\n\020assign_public_ip\030\t \001(\010\"<\n\004Ty" +
"pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\tDATA_NODE\020\001\022" +
"\017\n\013MASTER_NODE\020\002\"8\n\006Health\022\013\n\007UNKNOWN\020\000\022" +
"\t\n\005ALIVE\020\001\022\010\n\004DEAD\020\002\022\014\n\010DEGRADED\020\003\"\350\001\n\007S" +
"ervice\022=\n\004type\030\001 \001(\0162/.yandex.cloud.mdb." +
"elasticsearch.v1.Service.Type\022A\n\006health\030" +
"\002 \001(\01621.yandex.cloud.mdb.elasticsearch.v" +
"1.Service.Health\"/\n\004Type\022\024\n\020TYPE_UNSPECI" +
"FIED\020\000\022\021\n\rELASTICSEARCH\020\001\"*\n\006Health\022\013\n\007U" +
"NKNOWN\020\000\022\t\n\005ALIVE\020\001\022\010\n\004DEAD\020\002B|\n%yandex." +
"cloud.api.mdb.elasticsearch.v1ZSgithub.c" +
"om/yandex-cloud/go-genproto/yandex/cloud" +
"/mdb/elasticsearch/v1;elasticsearchb\006pro" +
"to3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.getDescriptor(),
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.getDescriptor(),
});
internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_descriptor,
new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "Environment", "Monitoring", "Config", "NetworkId", "Health", "Status", "SecurityGroupIds", "ServiceAccountId", "DeletionProtection", "MaintenanceWindow", "PlannedOperation", });
internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_LabelsEntry_descriptor =
internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_elasticsearch_v1_Cluster_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_mdb_elasticsearch_v1_Monitoring_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_mdb_elasticsearch_v1_Monitoring_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_elasticsearch_v1_Monitoring_descriptor,
new java.lang.String[] { "Name", "Description", "Link", });
internal_static_yandex_cloud_mdb_elasticsearch_v1_ClusterConfig_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_mdb_elasticsearch_v1_ClusterConfig_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_elasticsearch_v1_ClusterConfig_descriptor,
new java.lang.String[] { "Version", "Elasticsearch", "Edition", });
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_descriptor,
new java.lang.String[] { "DataNode", "MasterNode", "Plugins", });
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_DataNode_descriptor =
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_DataNode_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_DataNode_descriptor,
new java.lang.String[] { "ElasticsearchConfigSet7", "Resources", "Config", });
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_MasterNode_descriptor =
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_descriptor.getNestedTypes().get(1);
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_MasterNode_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_elasticsearch_v1_Elasticsearch_MasterNode_descriptor,
new java.lang.String[] { "Resources", });
internal_static_yandex_cloud_mdb_elasticsearch_v1_Resources_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_mdb_elasticsearch_v1_Resources_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_elasticsearch_v1_Resources_descriptor,
new java.lang.String[] { "ResourcePresetId", "DiskSize", "DiskTypeId", });
internal_static_yandex_cloud_mdb_elasticsearch_v1_Host_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_mdb_elasticsearch_v1_Host_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_elasticsearch_v1_Host_descriptor,
new java.lang.String[] { "Name", "ClusterId", "ZoneId", "Type", "Resources", "Health", "Services", "SubnetId", "AssignPublicIp", });
internal_static_yandex_cloud_mdb_elasticsearch_v1_Service_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_yandex_cloud_mdb_elasticsearch_v1_Service_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_elasticsearch_v1_Service_descriptor,
new java.lang.String[] { "Type", "Health", });
com.google.protobuf.TimestampProto.getDescriptor();
yandex.cloud.api.mdb.elasticsearch.v1.config.Elasticsearch.getDescriptor();
yandex.cloud.api.mdb.elasticsearch.v1.Maintenance.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy