yandex.cloud.api.mdb.greenplum.v1.HostOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/mdb/greenplum/v1/host.proto
package yandex.cloud.api.mdb.greenplum.v1;
public final class HostOuterClass {
private HostOuterClass() {}
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 HostOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.greenplum.v1.Host)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the Greenplum® host.
* The host name is assigned by the platform at creation time and cannot be changed.
* The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=63"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the Greenplum® host.
* The host name is assigned by the platform at creation time and cannot be changed.
* The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=63"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* ID of the Greenplum® cluster. The ID is assigned by the platform at creation time.
*
*
* string cluster_id = 2;
* @return The clusterId.
*/
java.lang.String getClusterId();
/**
*
* ID of the Greenplum® cluster. The ID is assigned by the platform at creation time.
*
*
* string cluster_id = 2;
* @return The bytes for clusterId.
*/
com.google.protobuf.ByteString
getClusterIdBytes();
/**
*
* ID of the availability zone the Greenplum® host belongs to.
*
*
* string zone_id = 3;
* @return The zoneId.
*/
java.lang.String getZoneId();
/**
*
* ID of the availability zone the Greenplum® host belongs to.
*
*
* string zone_id = 3;
* @return The bytes for zoneId.
*/
com.google.protobuf.ByteString
getZoneIdBytes();
/**
*
* Type of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Type type = 4;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
*
* Type of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Type type = 4;
* @return The type.
*/
yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Type getType();
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
* @return Whether the resources field is set.
*/
boolean hasResources();
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
* @return The resources.
*/
yandex.cloud.api.mdb.greenplum.v1.Config.Resources getResources();
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
*/
yandex.cloud.api.mdb.greenplum.v1.Config.ResourcesOrBuilder getResourcesOrBuilder();
/**
*
* Status code of the aggregated health of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Health health = 6;
* @return The enum numeric value on the wire for health.
*/
int getHealthValue();
/**
*
* Status code of the aggregated health of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Health health = 6;
* @return The health.
*/
yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Health getHealth();
/**
*
* ID of the subnet that the host belongs to.
*
*
* string subnet_id = 7;
* @return The subnetId.
*/
java.lang.String getSubnetId();
/**
*
* ID of the subnet that the host belongs to.
*
*
* string subnet_id = 7;
* @return The bytes for subnetId.
*/
com.google.protobuf.ByteString
getSubnetIdBytes();
/**
*
* Determines whether a public IP is assigned to the host.
*
*
* bool assign_public_ip = 8;
* @return The assignPublicIp.
*/
boolean getAssignPublicIp();
}
/**
*
* A Greenplum® cluster host resource.
*
*
* Protobuf type {@code yandex.cloud.mdb.greenplum.v1.Host}
*/
public static final class Host extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.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;
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();
}
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.greenplum.v1.Config.Resources.Builder subBuilder = null;
if (resources_ != null) {
subBuilder = resources_.toBuilder();
}
resources_ = input.readMessage(yandex.cloud.api.mdb.greenplum.v1.Config.Resources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resources_);
resources_ = subBuilder.buildPartial();
}
break;
}
case 48: {
int rawValue = input.readEnum();
health_ = rawValue;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
subnetId_ = s;
break;
}
case 64: {
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_Host_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_Host_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.class, yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.greenplum.v1.Host.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* The type is not specified.
*
*
* TYPE_UNSPECIFIED = 0;
*/
TYPE_UNSPECIFIED(0),
/**
*
* A Greenplum® master host.
*
*
* MASTER = 1;
*/
MASTER(1),
/**
*
* A Greenplum® master replica host.
*
*
* REPLICA = 2;
*/
REPLICA(2),
/**
*
* A Greenplum® segment host.
*
*
* SEGMENT = 3;
*/
SEGMENT(3),
UNRECOGNIZED(-1),
;
/**
*
* The type is not specified.
*
*
* TYPE_UNSPECIFIED = 0;
*/
public static final int TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* A Greenplum® master host.
*
*
* MASTER = 1;
*/
public static final int MASTER_VALUE = 1;
/**
*
* A Greenplum® master replica host.
*
*
* REPLICA = 2;
*/
public static final int REPLICA_VALUE = 2;
/**
*
* A Greenplum® segment host.
*
*
* SEGMENT = 3;
*/
public static final int SEGMENT_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 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 MASTER;
case 2: return REPLICA;
case 3: return SEGMENT;
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.greenplum.v1.HostOuterClass.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.greenplum.v1.Host.Type)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.greenplum.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 working below capacity or not fully functional.
*
*
* DEGRADED = 3;
*/
DEGRADED(3),
/**
*
* One or more segments are not in the preferred role.
*
*
* UNBALANCED = 4;
*/
UNBALANCED(4),
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 working below capacity or not fully functional.
*
*
* DEGRADED = 3;
*/
public static final int DEGRADED_VALUE = 3;
/**
*
* One or more segments are not in the preferred role.
*
*
* UNBALANCED = 4;
*/
public static final int UNBALANCED_VALUE = 4;
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;
case 4: return UNBALANCED;
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.greenplum.v1.HostOuterClass.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.greenplum.v1.Host.Health)
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of the Greenplum® host.
* The host name is assigned by the platform at creation time and cannot be changed.
* The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=63"];
* @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 Greenplum® host.
* The host name is assigned by the platform at creation time and cannot be changed.
* The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=63"];
* @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 Greenplum® cluster. The ID is assigned by the platform at creation time.
*
*
* 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 Greenplum® cluster. The ID is assigned by the platform at creation time.
*
*
* 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 the Greenplum® host belongs to.
*
*
* 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 the Greenplum® host belongs to.
*
*
* 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_;
/**
*
* Type of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Type type = 4;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Type of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Type type = 4;
* @return The type.
*/
@java.lang.Override public yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Type getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Type result = yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Type.valueOf(type_);
return result == null ? yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Type.UNRECOGNIZED : result;
}
public static final int RESOURCES_FIELD_NUMBER = 5;
private yandex.cloud.api.mdb.greenplum.v1.Config.Resources resources_;
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
* @return Whether the resources field is set.
*/
@java.lang.Override
public boolean hasResources() {
return resources_ != null;
}
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
* @return The resources.
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.Config.Resources getResources() {
return resources_ == null ? yandex.cloud.api.mdb.greenplum.v1.Config.Resources.getDefaultInstance() : resources_;
}
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.Config.ResourcesOrBuilder getResourcesOrBuilder() {
return getResources();
}
public static final int HEALTH_FIELD_NUMBER = 6;
private int health_;
/**
*
* Status code of the aggregated health of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Health health = 6;
* @return The enum numeric value on the wire for health.
*/
@java.lang.Override public int getHealthValue() {
return health_;
}
/**
*
* Status code of the aggregated health of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Health health = 6;
* @return The health.
*/
@java.lang.Override public yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Health getHealth() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Health result = yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Health.valueOf(health_);
return result == null ? yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Health.UNRECOGNIZED : result;
}
public static final int SUBNET_ID_FIELD_NUMBER = 7;
private volatile java.lang.Object subnetId_;
/**
*
* ID of the subnet that the host belongs to.
*
*
* string subnet_id = 7;
* @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 that the host belongs to.
*
*
* string subnet_id = 7;
* @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 = 8;
private boolean assignPublicIp_;
/**
*
* Determines whether a public IP is assigned to the host.
*
*
* bool assign_public_ip = 8;
* @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.greenplum.v1.HostOuterClass.Host.Type.TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(4, type_);
}
if (resources_ != null) {
output.writeMessage(5, getResources());
}
if (health_ != yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Health.UNKNOWN.getNumber()) {
output.writeEnum(6, health_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, subnetId_);
}
if (assignPublicIp_ != false) {
output.writeBool(8, 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.greenplum.v1.HostOuterClass.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.greenplum.v1.HostOuterClass.Host.Health.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, health_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, subnetId_);
}
if (assignPublicIp_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, 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.greenplum.v1.HostOuterClass.Host)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host other = (yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.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 (!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_;
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.greenplum.v1.HostOuterClass.Host parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.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.greenplum.v1.HostOuterClass.Host parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.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.greenplum.v1.HostOuterClass.Host parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.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.greenplum.v1.HostOuterClass.Host parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.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.greenplum.v1.HostOuterClass.Host parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.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.greenplum.v1.HostOuterClass.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.greenplum.v1.HostOuterClass.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.greenplum.v1.HostOuterClass.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;
}
/**
*
* A Greenplum® cluster host resource.
*
*
* Protobuf type {@code yandex.cloud.mdb.greenplum.v1.Host}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.greenplum.v1.Host)
yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.HostOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_Host_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_Host_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.class, yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Builder.class);
}
// Construct using yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.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) {
}
}
@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;
subnetId_ = "";
assignPublicIp_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_Host_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host getDefaultInstanceForType() {
return yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host build() {
yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host buildPartial() {
yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host result = new yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host(this);
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_;
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.greenplum.v1.HostOuterClass.Host) {
return mergeFrom((yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host other) {
if (other == yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.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 (!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.greenplum.v1.HostOuterClass.Host parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the Greenplum® host.
* The host name is assigned by the platform at creation time and cannot be changed.
* The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=63"];
* @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 Greenplum® host.
* The host name is assigned by the platform at creation time and cannot be changed.
* The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=63"];
* @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 Greenplum® host.
* The host name is assigned by the platform at creation time and cannot be changed.
* The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=63"];
* @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 Greenplum® host.
* The host name is assigned by the platform at creation time and cannot be changed.
* The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=63"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the Greenplum® host.
* The host name is assigned by the platform at creation time and cannot be changed.
* The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
*
*
* string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=63"];
* @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 Greenplum® cluster. The ID is assigned by the platform at creation time.
*
*
* 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 Greenplum® cluster. The ID is assigned by the platform at creation time.
*
*
* 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 Greenplum® cluster. The ID is assigned by the platform at creation time.
*
*
* 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 Greenplum® cluster. The ID is assigned by the platform at creation time.
*
*
* string cluster_id = 2;
* @return This builder for chaining.
*/
public Builder clearClusterId() {
clusterId_ = getDefaultInstance().getClusterId();
onChanged();
return this;
}
/**
*
* ID of the Greenplum® cluster. The ID is assigned by the platform at creation time.
*
*
* 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 the Greenplum® host belongs to.
*
*
* 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 the Greenplum® host belongs to.
*
*
* 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 the Greenplum® host belongs to.
*
*
* 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 the Greenplum® host belongs to.
*
*
* string zone_id = 3;
* @return This builder for chaining.
*/
public Builder clearZoneId() {
zoneId_ = getDefaultInstance().getZoneId();
onChanged();
return this;
}
/**
*
* ID of the availability zone the Greenplum® host belongs to.
*
*
* 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;
/**
*
* Type of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Type type = 4;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Type of the host.
*
*
* .yandex.cloud.mdb.greenplum.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;
}
/**
*
* Type of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Type type = 4;
* @return The type.
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Type getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Type result = yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Type.valueOf(type_);
return result == null ? yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Type.UNRECOGNIZED : result;
}
/**
*
* Type of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Type type = 4;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Type value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Type of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Type type = 4;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private yandex.cloud.api.mdb.greenplum.v1.Config.Resources resources_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.greenplum.v1.Config.Resources, yandex.cloud.api.mdb.greenplum.v1.Config.Resources.Builder, yandex.cloud.api.mdb.greenplum.v1.Config.ResourcesOrBuilder> resourcesBuilder_;
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
* @return Whether the resources field is set.
*/
public boolean hasResources() {
return resourcesBuilder_ != null || resources_ != null;
}
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
* @return The resources.
*/
public yandex.cloud.api.mdb.greenplum.v1.Config.Resources getResources() {
if (resourcesBuilder_ == null) {
return resources_ == null ? yandex.cloud.api.mdb.greenplum.v1.Config.Resources.getDefaultInstance() : resources_;
} else {
return resourcesBuilder_.getMessage();
}
}
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
*/
public Builder setResources(yandex.cloud.api.mdb.greenplum.v1.Config.Resources value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resources_ = value;
onChanged();
} else {
resourcesBuilder_.setMessage(value);
}
return this;
}
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
*/
public Builder setResources(
yandex.cloud.api.mdb.greenplum.v1.Config.Resources.Builder builderForValue) {
if (resourcesBuilder_ == null) {
resources_ = builderForValue.build();
onChanged();
} else {
resourcesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
*/
public Builder mergeResources(yandex.cloud.api.mdb.greenplum.v1.Config.Resources value) {
if (resourcesBuilder_ == null) {
if (resources_ != null) {
resources_ =
yandex.cloud.api.mdb.greenplum.v1.Config.Resources.newBuilder(resources_).mergeFrom(value).buildPartial();
} else {
resources_ = value;
}
onChanged();
} else {
resourcesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
*/
public Builder clearResources() {
if (resourcesBuilder_ == null) {
resources_ = null;
onChanged();
} else {
resources_ = null;
resourcesBuilder_ = null;
}
return this;
}
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
*/
public yandex.cloud.api.mdb.greenplum.v1.Config.Resources.Builder getResourcesBuilder() {
onChanged();
return getResourcesFieldBuilder().getBuilder();
}
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
*/
public yandex.cloud.api.mdb.greenplum.v1.Config.ResourcesOrBuilder getResourcesOrBuilder() {
if (resourcesBuilder_ != null) {
return resourcesBuilder_.getMessageOrBuilder();
} else {
return resources_ == null ?
yandex.cloud.api.mdb.greenplum.v1.Config.Resources.getDefaultInstance() : resources_;
}
}
/**
*
* Resources allocated to the Greenplum® host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.greenplum.v1.Config.Resources, yandex.cloud.api.mdb.greenplum.v1.Config.Resources.Builder, yandex.cloud.api.mdb.greenplum.v1.Config.ResourcesOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.greenplum.v1.Config.Resources, yandex.cloud.api.mdb.greenplum.v1.Config.Resources.Builder, yandex.cloud.api.mdb.greenplum.v1.Config.ResourcesOrBuilder>(
getResources(),
getParentForChildren(),
isClean());
resources_ = null;
}
return resourcesBuilder_;
}
private int health_ = 0;
/**
*
* Status code of the aggregated health of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Health health = 6;
* @return The enum numeric value on the wire for health.
*/
@java.lang.Override public int getHealthValue() {
return health_;
}
/**
*
* Status code of the aggregated health of the host.
*
*
* .yandex.cloud.mdb.greenplum.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;
}
/**
*
* Status code of the aggregated health of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Health health = 6;
* @return The health.
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Health getHealth() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Health result = yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Health.valueOf(health_);
return result == null ? yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Health.UNRECOGNIZED : result;
}
/**
*
* Status code of the aggregated health of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Health health = 6;
* @param value The health to set.
* @return This builder for chaining.
*/
public Builder setHealth(yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Health value) {
if (value == null) {
throw new NullPointerException();
}
health_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Status code of the aggregated health of the host.
*
*
* .yandex.cloud.mdb.greenplum.v1.Host.Health health = 6;
* @return This builder for chaining.
*/
public Builder clearHealth() {
health_ = 0;
onChanged();
return this;
}
private java.lang.Object subnetId_ = "";
/**
*
* ID of the subnet that the host belongs to.
*
*
* string subnet_id = 7;
* @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 that the host belongs to.
*
*
* string subnet_id = 7;
* @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 that the host belongs to.
*
*
* string subnet_id = 7;
* @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 that the host belongs to.
*
*
* string subnet_id = 7;
* @return This builder for chaining.
*/
public Builder clearSubnetId() {
subnetId_ = getDefaultInstance().getSubnetId();
onChanged();
return this;
}
/**
*
* ID of the subnet that the host belongs to.
*
*
* string subnet_id = 7;
* @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_ ;
/**
*
* Determines whether a public IP is assigned to the host.
*
*
* bool assign_public_ip = 8;
* @return The assignPublicIp.
*/
@java.lang.Override
public boolean getAssignPublicIp() {
return assignPublicIp_;
}
/**
*
* Determines whether a public IP is assigned to the host.
*
*
* bool assign_public_ip = 8;
* @param value The assignPublicIp to set.
* @return This builder for chaining.
*/
public Builder setAssignPublicIp(boolean value) {
assignPublicIp_ = value;
onChanged();
return this;
}
/**
*
* Determines whether a public IP is assigned to the host.
*
*
* bool assign_public_ip = 8;
* @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.greenplum.v1.Host)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.greenplum.v1.Host)
private static final yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host();
}
public static yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.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.greenplum.v1.HostOuterClass.Host getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_greenplum_v1_Host_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_greenplum_v1_Host_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/greenplum/v1/host.pro" +
"to\022\035yandex.cloud.mdb.greenplum.v1\032*yande" +
"x/cloud/mdb/greenplum/v1/config.proto\032\035y" +
"andex/cloud/validation.proto\"\263\003\n\004Host\022\032\n" +
"\004name\030\001 \001(\tB\014\350\3071\001\212\3101\004<=63\022\022\n\ncluster_id\030" +
"\002 \001(\t\022\017\n\007zone_id\030\003 \001(\t\0226\n\004type\030\004 \001(\0162(.y" +
"andex.cloud.mdb.greenplum.v1.Host.Type\022;" +
"\n\tresources\030\005 \001(\0132(.yandex.cloud.mdb.gre" +
"enplum.v1.Resources\022:\n\006health\030\006 \001(\0162*.ya" +
"ndex.cloud.mdb.greenplum.v1.Host.Health\022" +
"\021\n\tsubnet_id\030\007 \001(\t\022\030\n\020assign_public_ip\030\010" +
" \001(\010\"B\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006MA" +
"STER\020\001\022\013\n\007REPLICA\020\002\022\013\n\007SEGMENT\020\003\"H\n\006Heal" +
"th\022\013\n\007UNKNOWN\020\000\022\t\n\005ALIVE\020\001\022\010\n\004DEAD\020\002\022\014\n\010" +
"DEGRADED\020\003\022\016\n\nUNBALANCED\020\004Bp\n!yandex.clo" +
"ud.api.mdb.greenplum.v1ZKgithub.com/yand" +
"ex-cloud/go-genproto/yandex/cloud/mdb/gr" +
"eenplum/v1;greenplumb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
yandex.cloud.api.mdb.greenplum.v1.Config.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_mdb_greenplum_v1_Host_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_mdb_greenplum_v1_Host_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_greenplum_v1_Host_descriptor,
new java.lang.String[] { "Name", "ClusterId", "ZoneId", "Type", "Resources", "Health", "SubnetId", "AssignPublicIp", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(yandex.cloud.api.Validation.length);
registry.add(yandex.cloud.api.Validation.required);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
yandex.cloud.api.mdb.greenplum.v1.Config.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy