com.yandex.ydb.monitoring.MonitoringProtos Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
JDBC client implementation over Table client, single jar
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ydb/public/api/protos/ydb_monitoring.proto
package com.yandex.ydb.monitoring;
public final class MonitoringProtos {
private MonitoringProtos() {}
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 StatusFlagOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.StatusFlag)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code Ydb.Monitoring.StatusFlag}
*/
public static final class StatusFlag extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.StatusFlag)
StatusFlagOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatusFlag.newBuilder() to construct.
private StatusFlag(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatusFlag() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StatusFlag();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StatusFlag(
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;
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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StatusFlag_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StatusFlag_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.class, com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Builder.class);
}
/**
*
* Describes the general state of a component.
* From GREEN to RED, where GREEN is good, and RED is bad.
* GREY means that the corresponding status is unknown.
*
*
* Protobuf enum {@code Ydb.Monitoring.StatusFlag.Status}
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNSPECIFIED = 0;
*/
UNSPECIFIED(0),
/**
* GREY = 1;
*/
GREY(1),
/**
* GREEN = 2;
*/
GREEN(2),
/**
* BLUE = 3;
*/
BLUE(3),
/**
* YELLOW = 4;
*/
YELLOW(4),
/**
* ORANGE = 5;
*/
ORANGE(5),
/**
* RED = 6;
*/
RED(6),
UNRECOGNIZED(-1),
;
/**
* UNSPECIFIED = 0;
*/
public static final int UNSPECIFIED_VALUE = 0;
/**
* GREY = 1;
*/
public static final int GREY_VALUE = 1;
/**
* GREEN = 2;
*/
public static final int GREEN_VALUE = 2;
/**
* BLUE = 3;
*/
public static final int BLUE_VALUE = 3;
/**
* YELLOW = 4;
*/
public static final int YELLOW_VALUE = 4;
/**
* ORANGE = 5;
*/
public static final int ORANGE_VALUE = 5;
/**
* RED = 6;
*/
public static final int RED_VALUE = 6;
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 UNSPECIFIED;
case 1: return GREY;
case 2: return GREEN;
case 3: return BLUE;
case 4: return YELLOW;
case 5: return ORANGE;
case 6: return RED;
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 com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.getDescriptor().getEnumTypes().get(0);
}
private static final Status[] VALUES = values();
public static Status valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Status(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Monitoring.StatusFlag.Status)
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag other = (com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag 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 com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag 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 com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag 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(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag 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 Ydb.Monitoring.StatusFlag}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.StatusFlag)
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlagOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StatusFlag_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StatusFlag_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.class, com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StatusFlag_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag build() {
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag result = new com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag(this);
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 com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.getDefaultInstance()) return this;
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 {
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:Ydb.Monitoring.StatusFlag)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.StatusFlag)
private static final com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StatusFlag parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StatusFlag(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 com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SelfCheckRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.SelfCheckRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
boolean hasOperationParams();
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
/**
*
* return detailed info about components checked with their statuses
*
*
* bool return_verbose_status = 2;
* @return The returnVerboseStatus.
*/
boolean getReturnVerboseStatus();
/**
*
* minimum status of issues to return
*
*
* .Ydb.Monitoring.StatusFlag.Status minimum_status = 3;
* @return The enum numeric value on the wire for minimumStatus.
*/
int getMinimumStatusValue();
/**
*
* minimum status of issues to return
*
*
* .Ydb.Monitoring.StatusFlag.Status minimum_status = 3;
* @return The minimumStatus.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getMinimumStatus();
/**
*
* maximum level of issues to return
*
*
* uint32 maximum_level = 4;
* @return The maximumLevel.
*/
int getMaximumLevel();
}
/**
* Protobuf type {@code Ydb.Monitoring.SelfCheckRequest}
*/
public static final class SelfCheckRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.SelfCheckRequest)
SelfCheckRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SelfCheckRequest.newBuilder() to construct.
private SelfCheckRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SelfCheckRequest() {
minimumStatus_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SelfCheckRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SelfCheckRequest(
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: {
com.yandex.ydb.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = subBuilder.buildPartial();
}
break;
}
case 16: {
returnVerboseStatus_ = input.readBool();
break;
}
case 24: {
int rawValue = input.readEnum();
minimumStatus_ = rawValue;
break;
}
case 32: {
maximumLevel_ = input.readUInt32();
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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest.class, com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest.Builder.class);
}
public static final int OPERATION_PARAMS_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
public static final int RETURN_VERBOSE_STATUS_FIELD_NUMBER = 2;
private boolean returnVerboseStatus_;
/**
*
* return detailed info about components checked with their statuses
*
*
* bool return_verbose_status = 2;
* @return The returnVerboseStatus.
*/
@java.lang.Override
public boolean getReturnVerboseStatus() {
return returnVerboseStatus_;
}
public static final int MINIMUM_STATUS_FIELD_NUMBER = 3;
private int minimumStatus_;
/**
*
* minimum status of issues to return
*
*
* .Ydb.Monitoring.StatusFlag.Status minimum_status = 3;
* @return The enum numeric value on the wire for minimumStatus.
*/
@java.lang.Override public int getMinimumStatusValue() {
return minimumStatus_;
}
/**
*
* minimum status of issues to return
*
*
* .Ydb.Monitoring.StatusFlag.Status minimum_status = 3;
* @return The minimumStatus.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getMinimumStatus() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(minimumStatus_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
public static final int MAXIMUM_LEVEL_FIELD_NUMBER = 4;
private int maximumLevel_;
/**
*
* maximum level of issues to return
*
*
* uint32 maximum_level = 4;
* @return The maximumLevel.
*/
@java.lang.Override
public int getMaximumLevel() {
return maximumLevel_;
}
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 (operationParams_ != null) {
output.writeMessage(1, getOperationParams());
}
if (returnVerboseStatus_ != false) {
output.writeBool(2, returnVerboseStatus_);
}
if (minimumStatus_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
output.writeEnum(3, minimumStatus_);
}
if (maximumLevel_ != 0) {
output.writeUInt32(4, maximumLevel_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperationParams());
}
if (returnVerboseStatus_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, returnVerboseStatus_);
}
if (minimumStatus_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, minimumStatus_);
}
if (maximumLevel_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, maximumLevel_);
}
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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest other = (com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest) obj;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (getReturnVerboseStatus()
!= other.getReturnVerboseStatus()) return false;
if (minimumStatus_ != other.minimumStatus_) return false;
if (getMaximumLevel()
!= other.getMaximumLevel()) 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 (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (37 * hash) + RETURN_VERBOSE_STATUS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReturnVerboseStatus());
hash = (37 * hash) + MINIMUM_STATUS_FIELD_NUMBER;
hash = (53 * hash) + minimumStatus_;
hash = (37 * hash) + MAXIMUM_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getMaximumLevel();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest 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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest 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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest 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(com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest 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 Ydb.Monitoring.SelfCheckRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.SelfCheckRequest)
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest.class, com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest.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 (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
returnVerboseStatus_ = false;
minimumStatus_ = 0;
maximumLevel_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest build() {
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest result = new com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest(this);
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.build();
}
result.returnVerboseStatus_ = returnVerboseStatus_;
result.minimumStatus_ = minimumStatus_;
result.maximumLevel_ = maximumLevel_;
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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest.getDefaultInstance()) return this;
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
if (other.getReturnVerboseStatus() != false) {
setReturnVerboseStatus(other.getReturnVerboseStatus());
}
if (other.minimumStatus_ != 0) {
setMinimumStatusValue(other.getMinimumStatusValue());
}
if (other.getMaximumLevel() != 0) {
setMaximumLevel(other.getMaximumLevel());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return operationParamsBuilder_ != null || operationParams_ != null;
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
onChanged();
} else {
operationParamsBuilder_.setMessage(value);
}
return this;
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(
com.yandex.ydb.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
onChanged();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder mergeOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (operationParams_ != null) {
operationParams_ =
com.yandex.ydb.OperationProtos.OperationParams.newBuilder(operationParams_).mergeFrom(value).buildPartial();
} else {
operationParams_ = value;
}
onChanged();
} else {
operationParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder clearOperationParams() {
if (operationParamsBuilder_ == null) {
operationParams_ = null;
onChanged();
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>(
getOperationParams(),
getParentForChildren(),
isClean());
operationParams_ = null;
}
return operationParamsBuilder_;
}
private boolean returnVerboseStatus_ ;
/**
*
* return detailed info about components checked with their statuses
*
*
* bool return_verbose_status = 2;
* @return The returnVerboseStatus.
*/
@java.lang.Override
public boolean getReturnVerboseStatus() {
return returnVerboseStatus_;
}
/**
*
* return detailed info about components checked with their statuses
*
*
* bool return_verbose_status = 2;
* @param value The returnVerboseStatus to set.
* @return This builder for chaining.
*/
public Builder setReturnVerboseStatus(boolean value) {
returnVerboseStatus_ = value;
onChanged();
return this;
}
/**
*
* return detailed info about components checked with their statuses
*
*
* bool return_verbose_status = 2;
* @return This builder for chaining.
*/
public Builder clearReturnVerboseStatus() {
returnVerboseStatus_ = false;
onChanged();
return this;
}
private int minimumStatus_ = 0;
/**
*
* minimum status of issues to return
*
*
* .Ydb.Monitoring.StatusFlag.Status minimum_status = 3;
* @return The enum numeric value on the wire for minimumStatus.
*/
@java.lang.Override public int getMinimumStatusValue() {
return minimumStatus_;
}
/**
*
* minimum status of issues to return
*
*
* .Ydb.Monitoring.StatusFlag.Status minimum_status = 3;
* @param value The enum numeric value on the wire for minimumStatus to set.
* @return This builder for chaining.
*/
public Builder setMinimumStatusValue(int value) {
minimumStatus_ = value;
onChanged();
return this;
}
/**
*
* minimum status of issues to return
*
*
* .Ydb.Monitoring.StatusFlag.Status minimum_status = 3;
* @return The minimumStatus.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getMinimumStatus() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(minimumStatus_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
/**
*
* minimum status of issues to return
*
*
* .Ydb.Monitoring.StatusFlag.Status minimum_status = 3;
* @param value The minimumStatus to set.
* @return This builder for chaining.
*/
public Builder setMinimumStatus(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
minimumStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* minimum status of issues to return
*
*
* .Ydb.Monitoring.StatusFlag.Status minimum_status = 3;
* @return This builder for chaining.
*/
public Builder clearMinimumStatus() {
minimumStatus_ = 0;
onChanged();
return this;
}
private int maximumLevel_ ;
/**
*
* maximum level of issues to return
*
*
* uint32 maximum_level = 4;
* @return The maximumLevel.
*/
@java.lang.Override
public int getMaximumLevel() {
return maximumLevel_;
}
/**
*
* maximum level of issues to return
*
*
* uint32 maximum_level = 4;
* @param value The maximumLevel to set.
* @return This builder for chaining.
*/
public Builder setMaximumLevel(int value) {
maximumLevel_ = value;
onChanged();
return this;
}
/**
*
* maximum level of issues to return
*
*
* uint32 maximum_level = 4;
* @return This builder for chaining.
*/
public Builder clearMaximumLevel() {
maximumLevel_ = 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:Ydb.Monitoring.SelfCheckRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.SelfCheckRequest)
private static final com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SelfCheckRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SelfCheckRequest(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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SelfCheckResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.SelfCheckResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
com.yandex.ydb.OperationProtos.Operation getOperation();
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
* Protobuf type {@code Ydb.Monitoring.SelfCheckResponse}
*/
public static final class SelfCheckResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.SelfCheckResponse)
SelfCheckResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SelfCheckResponse.newBuilder() to construct.
private SelfCheckResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SelfCheckResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SelfCheckResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SelfCheckResponse(
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: {
com.yandex.ydb.OperationProtos.Operation.Builder subBuilder = null;
if (operation_ != null) {
subBuilder = operation_.toBuilder();
}
operation_ = input.readMessage(com.yandex.ydb.OperationProtos.Operation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operation_);
operation_ = 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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse.class, com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse.Builder.class);
}
public static final int OPERATION_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.Operation operation_;
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return operation_ != null;
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.Operation getOperation() {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
return getOperation();
}
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 (operation_ != null) {
output.writeMessage(1, getOperation());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperation());
}
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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse other = (com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse) obj;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) 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 (hasOperation()) {
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse 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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse 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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse 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(com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse 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 Ydb.Monitoring.SelfCheckResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.SelfCheckResponse)
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse.class, com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse.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 (operationBuilder_ == null) {
operation_ = null;
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse build() {
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse result = new com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse(this);
if (operationBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = operationBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse.getDefaultInstance()) return this;
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.Operation operation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> operationBuilder_;
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return operationBuilder_ != null || operation_ != null;
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
public com.yandex.ydb.OperationProtos.Operation getOperation() {
if (operationBuilder_ == null) {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
} else {
return operationBuilder_.getMessage();
}
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
operationBuilder_.setMessage(value);
}
return this;
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(
com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder mergeOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (operation_ != null) {
operation_ =
com.yandex.ydb.OperationProtos.Operation.newBuilder(operation_).mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
operationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
if (operationBuilder_ == null) {
operation_ = null;
onChanged();
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.Operation.Builder getOperationBuilder() {
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
if (operationBuilder_ != null) {
return operationBuilder_.getMessageOrBuilder();
} else {
return operation_ == null ?
com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>(
getOperation(),
getParentForChildren(),
isClean());
operation_ = null;
}
return operationBuilder_;
}
@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:Ydb.Monitoring.SelfCheckResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.SelfCheckResponse)
private static final com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SelfCheckResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SelfCheckResponse(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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeCheckRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.NodeCheckRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
boolean hasOperationParams();
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
}
/**
* Protobuf type {@code Ydb.Monitoring.NodeCheckRequest}
*/
public static final class NodeCheckRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.NodeCheckRequest)
NodeCheckRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeCheckRequest.newBuilder() to construct.
private NodeCheckRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeCheckRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeCheckRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeCheckRequest(
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: {
com.yandex.ydb.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = 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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_NodeCheckRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_NodeCheckRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest.class, com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest.Builder.class);
}
public static final int OPERATION_PARAMS_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
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 (operationParams_ != null) {
output.writeMessage(1, getOperationParams());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperationParams());
}
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 com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest other = (com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest) obj;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) 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 (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest 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 com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest 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 com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest 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(com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest 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 Ydb.Monitoring.NodeCheckRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.NodeCheckRequest)
com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_NodeCheckRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_NodeCheckRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest.class, com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest.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 (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_NodeCheckRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest build() {
com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest result = new com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest(this);
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest.getDefaultInstance()) return this;
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return operationParamsBuilder_ != null || operationParams_ != null;
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
onChanged();
} else {
operationParamsBuilder_.setMessage(value);
}
return this;
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(
com.yandex.ydb.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
onChanged();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder mergeOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (operationParams_ != null) {
operationParams_ =
com.yandex.ydb.OperationProtos.OperationParams.newBuilder(operationParams_).mergeFrom(value).buildPartial();
} else {
operationParams_ = value;
}
onChanged();
} else {
operationParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder clearOperationParams() {
if (operationParamsBuilder_ == null) {
operationParams_ = null;
onChanged();
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
*
* basic operation params, including timeout
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>(
getOperationParams(),
getParentForChildren(),
isClean());
operationParams_ = null;
}
return operationParamsBuilder_;
}
@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:Ydb.Monitoring.NodeCheckRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.NodeCheckRequest)
private static final com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeCheckRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeCheckRequest(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 com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeCheckResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.NodeCheckResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
com.yandex.ydb.OperationProtos.Operation getOperation();
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
* Protobuf type {@code Ydb.Monitoring.NodeCheckResponse}
*/
public static final class NodeCheckResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.NodeCheckResponse)
NodeCheckResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeCheckResponse.newBuilder() to construct.
private NodeCheckResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeCheckResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeCheckResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeCheckResponse(
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: {
com.yandex.ydb.OperationProtos.Operation.Builder subBuilder = null;
if (operation_ != null) {
subBuilder = operation_.toBuilder();
}
operation_ = input.readMessage(com.yandex.ydb.OperationProtos.Operation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operation_);
operation_ = 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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_NodeCheckResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_NodeCheckResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse.class, com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse.Builder.class);
}
public static final int OPERATION_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.Operation operation_;
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return operation_ != null;
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.Operation getOperation() {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
return getOperation();
}
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 (operation_ != null) {
output.writeMessage(1, getOperation());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperation());
}
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 com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse other = (com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse) obj;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) 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 (hasOperation()) {
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse 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 com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse 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 com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse 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(com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse 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 Ydb.Monitoring.NodeCheckResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.NodeCheckResponse)
com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_NodeCheckResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_NodeCheckResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse.class, com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse.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 (operationBuilder_ == null) {
operation_ = null;
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_NodeCheckResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse build() {
com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse result = new com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse(this);
if (operationBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = operationBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse.getDefaultInstance()) return this;
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.Operation operation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> operationBuilder_;
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return operationBuilder_ != null || operation_ != null;
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
public com.yandex.ydb.OperationProtos.Operation getOperation() {
if (operationBuilder_ == null) {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
} else {
return operationBuilder_.getMessage();
}
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
operationBuilder_.setMessage(value);
}
return this;
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(
com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder mergeOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (operation_ != null) {
operation_ =
com.yandex.ydb.OperationProtos.Operation.newBuilder(operation_).mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
operationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
if (operationBuilder_ == null) {
operation_ = null;
onChanged();
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.Operation.Builder getOperationBuilder() {
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
if (operationBuilder_ != null) {
return operationBuilder_.getMessageOrBuilder();
} else {
return operation_ == null ?
com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
}
/**
*
* After successfull completion must contain SelfCheckResult.
*
*
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>(
getOperation(),
getParentForChildren(),
isClean());
operation_ = null;
}
return operationBuilder_;
}
@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:Ydb.Monitoring.NodeCheckResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.NodeCheckResponse)
private static final com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeCheckResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeCheckResponse(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 com.yandex.ydb.monitoring.MonitoringProtos.NodeCheckResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SelfCheckOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.SelfCheck)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code Ydb.Monitoring.SelfCheck}
*/
public static final class SelfCheck extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.SelfCheck)
SelfCheckOrBuilder {
private static final long serialVersionUID = 0L;
// Use SelfCheck.newBuilder() to construct.
private SelfCheck(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SelfCheck() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SelfCheck();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SelfCheck(
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;
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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheck_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheck_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.class, com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.Builder.class);
}
/**
*
* Describes the result of self-check performed.
*
*
* Protobuf enum {@code Ydb.Monitoring.SelfCheck.Result}
*/
public enum Result
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNSPECIFIED = 0;
*/
UNSPECIFIED(0),
/**
* GOOD = 1;
*/
GOOD(1),
/**
* DEGRADED = 2;
*/
DEGRADED(2),
/**
* MAINTENANCE_REQUIRED = 3;
*/
MAINTENANCE_REQUIRED(3),
/**
* EMERGENCY = 4;
*/
EMERGENCY(4),
UNRECOGNIZED(-1),
;
/**
* UNSPECIFIED = 0;
*/
public static final int UNSPECIFIED_VALUE = 0;
/**
* GOOD = 1;
*/
public static final int GOOD_VALUE = 1;
/**
* DEGRADED = 2;
*/
public static final int DEGRADED_VALUE = 2;
/**
* MAINTENANCE_REQUIRED = 3;
*/
public static final int MAINTENANCE_REQUIRED_VALUE = 3;
/**
* EMERGENCY = 4;
*/
public static final int EMERGENCY_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 Result 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 Result forNumber(int value) {
switch (value) {
case 0: return UNSPECIFIED;
case 1: return GOOD;
case 2: return DEGRADED;
case 3: return MAINTENANCE_REQUIRED;
case 4: return EMERGENCY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Result> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Result findValueByNumber(int number) {
return Result.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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.getDescriptor().getEnumTypes().get(0);
}
private static final Result[] VALUES = values();
public static Result 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 Result(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Monitoring.SelfCheck.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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck other = (com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck 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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck 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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck 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(com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck 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 Ydb.Monitoring.SelfCheck}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.SelfCheck)
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheck_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheck_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.class, com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheck_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck build() {
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck result = new com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck(this);
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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.getDefaultInstance()) return this;
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 {
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:Ydb.Monitoring.SelfCheck)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.SelfCheck)
private static final com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SelfCheck parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SelfCheck(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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StoragePDiskStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.StoragePDiskStatus)
com.google.protobuf.MessageOrBuilder {
/**
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
int getOverallValue();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall();
}
/**
* Protobuf type {@code Ydb.Monitoring.StoragePDiskStatus}
*/
public static final class StoragePDiskStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.StoragePDiskStatus)
StoragePDiskStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use StoragePDiskStatus.newBuilder() to construct.
private StoragePDiskStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StoragePDiskStatus() {
id_ = "";
overall_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StoragePDiskStatus();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StoragePDiskStatus(
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();
id_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
overall_ = 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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StoragePDiskStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StoragePDiskStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* 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;
}
}
/**
* 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 OVERALL_FIELD_NUMBER = 2;
private int overall_;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
output.writeEnum(2, overall_);
}
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 (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, overall_);
}
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 com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus other = (com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus) obj;
if (!getId()
.equals(other.getId())) return false;
if (overall_ != other.overall_) 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) + OVERALL_FIELD_NUMBER;
hash = (53 * hash) + overall_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus 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(com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus 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 Ydb.Monitoring.StoragePDiskStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.StoragePDiskStatus)
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StoragePDiskStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StoragePDiskStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.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();
id_ = "";
overall_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StoragePDiskStatus_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus build() {
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus result = new com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus(this);
result.id_ = id_;
result.overall_ = overall_;
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 com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.overall_ != 0) {
setOverallValue(other.getOverallValue());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* 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 int overall_ = 0;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @param value The enum numeric value on the wire for overall to set.
* @return This builder for chaining.
*/
public Builder setOverallValue(int value) {
overall_ = value;
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @param value The overall to set.
* @return This builder for chaining.
*/
public Builder setOverall(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
overall_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return This builder for chaining.
*/
public Builder clearOverall() {
overall_ = 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:Ydb.Monitoring.StoragePDiskStatus)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.StoragePDiskStatus)
private static final com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StoragePDiskStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StoragePDiskStatus(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 com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StorageVDiskStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.StorageVDiskStatus)
com.google.protobuf.MessageOrBuilder {
/**
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
int getOverallValue();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall();
/**
* .Ydb.Monitoring.StatusFlag.Status vdisk_status = 3;
* @return The enum numeric value on the wire for vdiskStatus.
*/
int getVdiskStatusValue();
/**
* .Ydb.Monitoring.StatusFlag.Status vdisk_status = 3;
* @return The vdiskStatus.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getVdiskStatus();
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
* @return Whether the pdisk field is set.
*/
boolean hasPdisk();
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
* @return The pdisk.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus getPdisk();
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
*/
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatusOrBuilder getPdiskOrBuilder();
}
/**
* Protobuf type {@code Ydb.Monitoring.StorageVDiskStatus}
*/
public static final class StorageVDiskStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.StorageVDiskStatus)
StorageVDiskStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use StorageVDiskStatus.newBuilder() to construct.
private StorageVDiskStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StorageVDiskStatus() {
id_ = "";
overall_ = 0;
vdiskStatus_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StorageVDiskStatus();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StorageVDiskStatus(
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();
id_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
overall_ = rawValue;
break;
}
case 24: {
int rawValue = input.readEnum();
vdiskStatus_ = rawValue;
break;
}
case 34: {
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.Builder subBuilder = null;
if (pdisk_ != null) {
subBuilder = pdisk_.toBuilder();
}
pdisk_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pdisk_);
pdisk_ = 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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageVDiskStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageVDiskStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* 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;
}
}
/**
* 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 OVERALL_FIELD_NUMBER = 2;
private int overall_;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
public static final int VDISK_STATUS_FIELD_NUMBER = 3;
private int vdiskStatus_;
/**
* .Ydb.Monitoring.StatusFlag.Status vdisk_status = 3;
* @return The enum numeric value on the wire for vdiskStatus.
*/
@java.lang.Override public int getVdiskStatusValue() {
return vdiskStatus_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status vdisk_status = 3;
* @return The vdiskStatus.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getVdiskStatus() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(vdiskStatus_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
public static final int PDISK_FIELD_NUMBER = 4;
private com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus pdisk_;
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
* @return Whether the pdisk field is set.
*/
@java.lang.Override
public boolean hasPdisk() {
return pdisk_ != null;
}
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
* @return The pdisk.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus getPdisk() {
return pdisk_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.getDefaultInstance() : pdisk_;
}
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatusOrBuilder getPdiskOrBuilder() {
return getPdisk();
}
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 (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
output.writeEnum(2, overall_);
}
if (vdiskStatus_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
output.writeEnum(3, vdiskStatus_);
}
if (pdisk_ != null) {
output.writeMessage(4, getPdisk());
}
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 (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, overall_);
}
if (vdiskStatus_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, vdiskStatus_);
}
if (pdisk_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getPdisk());
}
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 com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus other = (com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus) obj;
if (!getId()
.equals(other.getId())) return false;
if (overall_ != other.overall_) return false;
if (vdiskStatus_ != other.vdiskStatus_) return false;
if (hasPdisk() != other.hasPdisk()) return false;
if (hasPdisk()) {
if (!getPdisk()
.equals(other.getPdisk())) 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) + OVERALL_FIELD_NUMBER;
hash = (53 * hash) + overall_;
hash = (37 * hash) + VDISK_STATUS_FIELD_NUMBER;
hash = (53 * hash) + vdiskStatus_;
if (hasPdisk()) {
hash = (37 * hash) + PDISK_FIELD_NUMBER;
hash = (53 * hash) + getPdisk().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus 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(com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus 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 Ydb.Monitoring.StorageVDiskStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.StorageVDiskStatus)
com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageVDiskStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageVDiskStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.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();
id_ = "";
overall_ = 0;
vdiskStatus_ = 0;
if (pdiskBuilder_ == null) {
pdisk_ = null;
} else {
pdisk_ = null;
pdiskBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageVDiskStatus_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus build() {
com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus result = new com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus(this);
result.id_ = id_;
result.overall_ = overall_;
result.vdiskStatus_ = vdiskStatus_;
if (pdiskBuilder_ == null) {
result.pdisk_ = pdisk_;
} else {
result.pdisk_ = pdiskBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.overall_ != 0) {
setOverallValue(other.getOverallValue());
}
if (other.vdiskStatus_ != 0) {
setVdiskStatusValue(other.getVdiskStatusValue());
}
if (other.hasPdisk()) {
mergePdisk(other.getPdisk());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* 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 int overall_ = 0;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @param value The enum numeric value on the wire for overall to set.
* @return This builder for chaining.
*/
public Builder setOverallValue(int value) {
overall_ = value;
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @param value The overall to set.
* @return This builder for chaining.
*/
public Builder setOverall(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
overall_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return This builder for chaining.
*/
public Builder clearOverall() {
overall_ = 0;
onChanged();
return this;
}
private int vdiskStatus_ = 0;
/**
* .Ydb.Monitoring.StatusFlag.Status vdisk_status = 3;
* @return The enum numeric value on the wire for vdiskStatus.
*/
@java.lang.Override public int getVdiskStatusValue() {
return vdiskStatus_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status vdisk_status = 3;
* @param value The enum numeric value on the wire for vdiskStatus to set.
* @return This builder for chaining.
*/
public Builder setVdiskStatusValue(int value) {
vdiskStatus_ = value;
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status vdisk_status = 3;
* @return The vdiskStatus.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getVdiskStatus() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(vdiskStatus_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.Monitoring.StatusFlag.Status vdisk_status = 3;
* @param value The vdiskStatus to set.
* @return This builder for chaining.
*/
public Builder setVdiskStatus(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
vdiskStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status vdisk_status = 3;
* @return This builder for chaining.
*/
public Builder clearVdiskStatus() {
vdiskStatus_ = 0;
onChanged();
return this;
}
private com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus pdisk_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus, com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatusOrBuilder> pdiskBuilder_;
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
* @return Whether the pdisk field is set.
*/
public boolean hasPdisk() {
return pdiskBuilder_ != null || pdisk_ != null;
}
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
* @return The pdisk.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus getPdisk() {
if (pdiskBuilder_ == null) {
return pdisk_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.getDefaultInstance() : pdisk_;
} else {
return pdiskBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
*/
public Builder setPdisk(com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus value) {
if (pdiskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pdisk_ = value;
onChanged();
} else {
pdiskBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
*/
public Builder setPdisk(
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.Builder builderForValue) {
if (pdiskBuilder_ == null) {
pdisk_ = builderForValue.build();
onChanged();
} else {
pdiskBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
*/
public Builder mergePdisk(com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus value) {
if (pdiskBuilder_ == null) {
if (pdisk_ != null) {
pdisk_ =
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.newBuilder(pdisk_).mergeFrom(value).buildPartial();
} else {
pdisk_ = value;
}
onChanged();
} else {
pdiskBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
*/
public Builder clearPdisk() {
if (pdiskBuilder_ == null) {
pdisk_ = null;
onChanged();
} else {
pdisk_ = null;
pdiskBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.Builder getPdiskBuilder() {
onChanged();
return getPdiskFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatusOrBuilder getPdiskOrBuilder() {
if (pdiskBuilder_ != null) {
return pdiskBuilder_.getMessageOrBuilder();
} else {
return pdisk_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.getDefaultInstance() : pdisk_;
}
}
/**
* .Ydb.Monitoring.StoragePDiskStatus pdisk = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus, com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatusOrBuilder>
getPdiskFieldBuilder() {
if (pdiskBuilder_ == null) {
pdiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus, com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StoragePDiskStatusOrBuilder>(
getPdisk(),
getParentForChildren(),
isClean());
pdisk_ = null;
}
return pdiskBuilder_;
}
@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:Ydb.Monitoring.StorageVDiskStatus)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.StorageVDiskStatus)
private static final com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StorageVDiskStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StorageVDiskStatus(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 com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StorageGroupStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.StorageGroupStatus)
com.google.protobuf.MessageOrBuilder {
/**
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
int getOverallValue();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall();
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
java.util.List
getVdisksList();
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus getVdisks(int index);
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
int getVdisksCount();
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatusOrBuilder>
getVdisksOrBuilderList();
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatusOrBuilder getVdisksOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Monitoring.StorageGroupStatus}
*/
public static final class StorageGroupStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.StorageGroupStatus)
StorageGroupStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use StorageGroupStatus.newBuilder() to construct.
private StorageGroupStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StorageGroupStatus() {
id_ = "";
overall_ = 0;
vdisks_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StorageGroupStatus();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StorageGroupStatus(
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 16: {
int rawValue = input.readEnum();
overall_ = rawValue;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
vdisks_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
vdisks_.add(
input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
vdisks_ = java.util.Collections.unmodifiableList(vdisks_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageGroupStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageGroupStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* 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;
}
}
/**
* 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 OVERALL_FIELD_NUMBER = 2;
private int overall_;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
public static final int VDISKS_FIELD_NUMBER = 3;
private java.util.List vdisks_;
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
@java.lang.Override
public java.util.List getVdisksList() {
return vdisks_;
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatusOrBuilder>
getVdisksOrBuilderList() {
return vdisks_;
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
@java.lang.Override
public int getVdisksCount() {
return vdisks_.size();
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus getVdisks(int index) {
return vdisks_.get(index);
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatusOrBuilder getVdisksOrBuilder(
int index) {
return vdisks_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
output.writeEnum(2, overall_);
}
for (int i = 0; i < vdisks_.size(); i++) {
output.writeMessage(3, vdisks_.get(i));
}
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 (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, overall_);
}
for (int i = 0; i < vdisks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, vdisks_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus other = (com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus) obj;
if (!getId()
.equals(other.getId())) return false;
if (overall_ != other.overall_) return false;
if (!getVdisksList()
.equals(other.getVdisksList())) 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) + OVERALL_FIELD_NUMBER;
hash = (53 * hash) + overall_;
if (getVdisksCount() > 0) {
hash = (37 * hash) + VDISKS_FIELD_NUMBER;
hash = (53 * hash) + getVdisksList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus 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(com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus 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 Ydb.Monitoring.StorageGroupStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.StorageGroupStatus)
com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageGroupStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageGroupStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getVdisksFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
overall_ = 0;
if (vdisksBuilder_ == null) {
vdisks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
vdisksBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageGroupStatus_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus build() {
com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus result = new com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.overall_ = overall_;
if (vdisksBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
vdisks_ = java.util.Collections.unmodifiableList(vdisks_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.vdisks_ = vdisks_;
} else {
result.vdisks_ = vdisksBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.overall_ != 0) {
setOverallValue(other.getOverallValue());
}
if (vdisksBuilder_ == null) {
if (!other.vdisks_.isEmpty()) {
if (vdisks_.isEmpty()) {
vdisks_ = other.vdisks_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureVdisksIsMutable();
vdisks_.addAll(other.vdisks_);
}
onChanged();
}
} else {
if (!other.vdisks_.isEmpty()) {
if (vdisksBuilder_.isEmpty()) {
vdisksBuilder_.dispose();
vdisksBuilder_ = null;
vdisks_ = other.vdisks_;
bitField0_ = (bitField0_ & ~0x00000001);
vdisksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVdisksFieldBuilder() : null;
} else {
vdisksBuilder_.addAllMessages(other.vdisks_);
}
}
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* 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 int overall_ = 0;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @param value The enum numeric value on the wire for overall to set.
* @return This builder for chaining.
*/
public Builder setOverallValue(int value) {
overall_ = value;
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @param value The overall to set.
* @return This builder for chaining.
*/
public Builder setOverall(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
overall_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return This builder for chaining.
*/
public Builder clearOverall() {
overall_ = 0;
onChanged();
return this;
}
private java.util.List vdisks_ =
java.util.Collections.emptyList();
private void ensureVdisksIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
vdisks_ = new java.util.ArrayList(vdisks_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus, com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatusOrBuilder> vdisksBuilder_;
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public java.util.List getVdisksList() {
if (vdisksBuilder_ == null) {
return java.util.Collections.unmodifiableList(vdisks_);
} else {
return vdisksBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public int getVdisksCount() {
if (vdisksBuilder_ == null) {
return vdisks_.size();
} else {
return vdisksBuilder_.getCount();
}
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus getVdisks(int index) {
if (vdisksBuilder_ == null) {
return vdisks_.get(index);
} else {
return vdisksBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public Builder setVdisks(
int index, com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus value) {
if (vdisksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVdisksIsMutable();
vdisks_.set(index, value);
onChanged();
} else {
vdisksBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public Builder setVdisks(
int index, com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.Builder builderForValue) {
if (vdisksBuilder_ == null) {
ensureVdisksIsMutable();
vdisks_.set(index, builderForValue.build());
onChanged();
} else {
vdisksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public Builder addVdisks(com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus value) {
if (vdisksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVdisksIsMutable();
vdisks_.add(value);
onChanged();
} else {
vdisksBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public Builder addVdisks(
int index, com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus value) {
if (vdisksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVdisksIsMutable();
vdisks_.add(index, value);
onChanged();
} else {
vdisksBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public Builder addVdisks(
com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.Builder builderForValue) {
if (vdisksBuilder_ == null) {
ensureVdisksIsMutable();
vdisks_.add(builderForValue.build());
onChanged();
} else {
vdisksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public Builder addVdisks(
int index, com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.Builder builderForValue) {
if (vdisksBuilder_ == null) {
ensureVdisksIsMutable();
vdisks_.add(index, builderForValue.build());
onChanged();
} else {
vdisksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public Builder addAllVdisks(
java.lang.Iterable extends com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus> values) {
if (vdisksBuilder_ == null) {
ensureVdisksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, vdisks_);
onChanged();
} else {
vdisksBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public Builder clearVdisks() {
if (vdisksBuilder_ == null) {
vdisks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
vdisksBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public Builder removeVdisks(int index) {
if (vdisksBuilder_ == null) {
ensureVdisksIsMutable();
vdisks_.remove(index);
onChanged();
} else {
vdisksBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.Builder getVdisksBuilder(
int index) {
return getVdisksFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatusOrBuilder getVdisksOrBuilder(
int index) {
if (vdisksBuilder_ == null) {
return vdisks_.get(index); } else {
return vdisksBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatusOrBuilder>
getVdisksOrBuilderList() {
if (vdisksBuilder_ != null) {
return vdisksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(vdisks_);
}
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.Builder addVdisksBuilder() {
return getVdisksFieldBuilder().addBuilder(
com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.Builder addVdisksBuilder(
int index) {
return getVdisksFieldBuilder().addBuilder(
index, com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.StorageVDiskStatus vdisks = 3;
*/
public java.util.List
getVdisksBuilderList() {
return getVdisksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus, com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatusOrBuilder>
getVdisksFieldBuilder() {
if (vdisksBuilder_ == null) {
vdisksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus, com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StorageVDiskStatusOrBuilder>(
vdisks_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
vdisks_ = null;
}
return vdisksBuilder_;
}
@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:Ydb.Monitoring.StorageGroupStatus)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.StorageGroupStatus)
private static final com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StorageGroupStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StorageGroupStatus(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 com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StoragePoolStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.StoragePoolStatus)
com.google.protobuf.MessageOrBuilder {
/**
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
int getOverallValue();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall();
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
java.util.List
getGroupsList();
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus getGroups(int index);
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
int getGroupsCount();
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatusOrBuilder>
getGroupsOrBuilderList();
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatusOrBuilder getGroupsOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Monitoring.StoragePoolStatus}
*/
public static final class StoragePoolStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.StoragePoolStatus)
StoragePoolStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use StoragePoolStatus.newBuilder() to construct.
private StoragePoolStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StoragePoolStatus() {
id_ = "";
overall_ = 0;
groups_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StoragePoolStatus();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StoragePoolStatus(
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 16: {
int rawValue = input.readEnum();
overall_ = rawValue;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
groups_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
groups_.add(
input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
groups_ = java.util.Collections.unmodifiableList(groups_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StoragePoolStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StoragePoolStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* 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;
}
}
/**
* 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 OVERALL_FIELD_NUMBER = 2;
private int overall_;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
public static final int GROUPS_FIELD_NUMBER = 3;
private java.util.List groups_;
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
@java.lang.Override
public java.util.List getGroupsList() {
return groups_;
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatusOrBuilder>
getGroupsOrBuilderList() {
return groups_;
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
@java.lang.Override
public int getGroupsCount() {
return groups_.size();
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus getGroups(int index) {
return groups_.get(index);
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatusOrBuilder getGroupsOrBuilder(
int index) {
return groups_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
output.writeEnum(2, overall_);
}
for (int i = 0; i < groups_.size(); i++) {
output.writeMessage(3, groups_.get(i));
}
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 (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, overall_);
}
for (int i = 0; i < groups_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, groups_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus other = (com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus) obj;
if (!getId()
.equals(other.getId())) return false;
if (overall_ != other.overall_) return false;
if (!getGroupsList()
.equals(other.getGroupsList())) 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) + OVERALL_FIELD_NUMBER;
hash = (53 * hash) + overall_;
if (getGroupsCount() > 0) {
hash = (37 * hash) + GROUPS_FIELD_NUMBER;
hash = (53 * hash) + getGroupsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus 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(com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus 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 Ydb.Monitoring.StoragePoolStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.StoragePoolStatus)
com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StoragePoolStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StoragePoolStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getGroupsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
overall_ = 0;
if (groupsBuilder_ == null) {
groups_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
groupsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StoragePoolStatus_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus build() {
com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus result = new com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.overall_ = overall_;
if (groupsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
groups_ = java.util.Collections.unmodifiableList(groups_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.groups_ = groups_;
} else {
result.groups_ = groupsBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.overall_ != 0) {
setOverallValue(other.getOverallValue());
}
if (groupsBuilder_ == null) {
if (!other.groups_.isEmpty()) {
if (groups_.isEmpty()) {
groups_ = other.groups_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureGroupsIsMutable();
groups_.addAll(other.groups_);
}
onChanged();
}
} else {
if (!other.groups_.isEmpty()) {
if (groupsBuilder_.isEmpty()) {
groupsBuilder_.dispose();
groupsBuilder_ = null;
groups_ = other.groups_;
bitField0_ = (bitField0_ & ~0x00000001);
groupsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGroupsFieldBuilder() : null;
} else {
groupsBuilder_.addAllMessages(other.groups_);
}
}
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* 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 int overall_ = 0;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @param value The enum numeric value on the wire for overall to set.
* @return This builder for chaining.
*/
public Builder setOverallValue(int value) {
overall_ = value;
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @param value The overall to set.
* @return This builder for chaining.
*/
public Builder setOverall(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
overall_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return This builder for chaining.
*/
public Builder clearOverall() {
overall_ = 0;
onChanged();
return this;
}
private java.util.List groups_ =
java.util.Collections.emptyList();
private void ensureGroupsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
groups_ = new java.util.ArrayList(groups_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus, com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatusOrBuilder> groupsBuilder_;
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public java.util.List getGroupsList() {
if (groupsBuilder_ == null) {
return java.util.Collections.unmodifiableList(groups_);
} else {
return groupsBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public int getGroupsCount() {
if (groupsBuilder_ == null) {
return groups_.size();
} else {
return groupsBuilder_.getCount();
}
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus getGroups(int index) {
if (groupsBuilder_ == null) {
return groups_.get(index);
} else {
return groupsBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public Builder setGroups(
int index, com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus value) {
if (groupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupsIsMutable();
groups_.set(index, value);
onChanged();
} else {
groupsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public Builder setGroups(
int index, com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.Builder builderForValue) {
if (groupsBuilder_ == null) {
ensureGroupsIsMutable();
groups_.set(index, builderForValue.build());
onChanged();
} else {
groupsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public Builder addGroups(com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus value) {
if (groupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupsIsMutable();
groups_.add(value);
onChanged();
} else {
groupsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public Builder addGroups(
int index, com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus value) {
if (groupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupsIsMutable();
groups_.add(index, value);
onChanged();
} else {
groupsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public Builder addGroups(
com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.Builder builderForValue) {
if (groupsBuilder_ == null) {
ensureGroupsIsMutable();
groups_.add(builderForValue.build());
onChanged();
} else {
groupsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public Builder addGroups(
int index, com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.Builder builderForValue) {
if (groupsBuilder_ == null) {
ensureGroupsIsMutable();
groups_.add(index, builderForValue.build());
onChanged();
} else {
groupsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public Builder addAllGroups(
java.lang.Iterable extends com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus> values) {
if (groupsBuilder_ == null) {
ensureGroupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, groups_);
onChanged();
} else {
groupsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public Builder clearGroups() {
if (groupsBuilder_ == null) {
groups_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
groupsBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public Builder removeGroups(int index) {
if (groupsBuilder_ == null) {
ensureGroupsIsMutable();
groups_.remove(index);
onChanged();
} else {
groupsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.Builder getGroupsBuilder(
int index) {
return getGroupsFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatusOrBuilder getGroupsOrBuilder(
int index) {
if (groupsBuilder_ == null) {
return groups_.get(index); } else {
return groupsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatusOrBuilder>
getGroupsOrBuilderList() {
if (groupsBuilder_ != null) {
return groupsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(groups_);
}
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.Builder addGroupsBuilder() {
return getGroupsFieldBuilder().addBuilder(
com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.Builder addGroupsBuilder(
int index) {
return getGroupsFieldBuilder().addBuilder(
index, com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.StorageGroupStatus groups = 3;
*/
public java.util.List
getGroupsBuilderList() {
return getGroupsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus, com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatusOrBuilder>
getGroupsFieldBuilder() {
if (groupsBuilder_ == null) {
groupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus, com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StorageGroupStatusOrBuilder>(
groups_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
groups_ = null;
}
return groupsBuilder_;
}
@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:Ydb.Monitoring.StoragePoolStatus)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.StoragePoolStatus)
private static final com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StoragePoolStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StoragePoolStatus(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 com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StorageStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.StorageStatus)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
int getOverallValue();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall();
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
java.util.List
getPoolsList();
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus getPools(int index);
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
int getPoolsCount();
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatusOrBuilder>
getPoolsOrBuilderList();
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatusOrBuilder getPoolsOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Monitoring.StorageStatus}
*/
public static final class StorageStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.StorageStatus)
StorageStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use StorageStatus.newBuilder() to construct.
private StorageStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StorageStatus() {
overall_ = 0;
pools_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StorageStatus();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StorageStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
overall_ = rawValue;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
pools_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
pools_.add(
input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
pools_ = java.util.Collections.unmodifiableList(pools_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.Builder.class);
}
public static final int OVERALL_FIELD_NUMBER = 1;
private int overall_;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
public static final int POOLS_FIELD_NUMBER = 2;
private java.util.List pools_;
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
@java.lang.Override
public java.util.List getPoolsList() {
return pools_;
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatusOrBuilder>
getPoolsOrBuilderList() {
return pools_;
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
@java.lang.Override
public int getPoolsCount() {
return pools_.size();
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus getPools(int index) {
return pools_.get(index);
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatusOrBuilder getPoolsOrBuilder(
int index) {
return pools_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
output.writeEnum(1, overall_);
}
for (int i = 0; i < pools_.size(); i++) {
output.writeMessage(2, pools_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, overall_);
}
for (int i = 0; i < pools_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, pools_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus other = (com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus) obj;
if (overall_ != other.overall_) return false;
if (!getPoolsList()
.equals(other.getPoolsList())) 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) + OVERALL_FIELD_NUMBER;
hash = (53 * hash) + overall_;
if (getPoolsCount() > 0) {
hash = (37 * hash) + POOLS_FIELD_NUMBER;
hash = (53 * hash) + getPoolsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus 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(com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus 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 Ydb.Monitoring.StorageStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.StorageStatus)
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPoolsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
overall_ = 0;
if (poolsBuilder_ == null) {
pools_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
poolsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_StorageStatus_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus build() {
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus result = new com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus(this);
int from_bitField0_ = bitField0_;
result.overall_ = overall_;
if (poolsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
pools_ = java.util.Collections.unmodifiableList(pools_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.pools_ = pools_;
} else {
result.pools_ = poolsBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.getDefaultInstance()) return this;
if (other.overall_ != 0) {
setOverallValue(other.getOverallValue());
}
if (poolsBuilder_ == null) {
if (!other.pools_.isEmpty()) {
if (pools_.isEmpty()) {
pools_ = other.pools_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePoolsIsMutable();
pools_.addAll(other.pools_);
}
onChanged();
}
} else {
if (!other.pools_.isEmpty()) {
if (poolsBuilder_.isEmpty()) {
poolsBuilder_.dispose();
poolsBuilder_ = null;
pools_ = other.pools_;
bitField0_ = (bitField0_ & ~0x00000001);
poolsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPoolsFieldBuilder() : null;
} else {
poolsBuilder_.addAllMessages(other.pools_);
}
}
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int overall_ = 0;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @param value The enum numeric value on the wire for overall to set.
* @return This builder for chaining.
*/
public Builder setOverallValue(int value) {
overall_ = value;
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @param value The overall to set.
* @return This builder for chaining.
*/
public Builder setOverall(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
overall_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return This builder for chaining.
*/
public Builder clearOverall() {
overall_ = 0;
onChanged();
return this;
}
private java.util.List pools_ =
java.util.Collections.emptyList();
private void ensurePoolsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
pools_ = new java.util.ArrayList(pools_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus, com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatusOrBuilder> poolsBuilder_;
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public java.util.List getPoolsList() {
if (poolsBuilder_ == null) {
return java.util.Collections.unmodifiableList(pools_);
} else {
return poolsBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public int getPoolsCount() {
if (poolsBuilder_ == null) {
return pools_.size();
} else {
return poolsBuilder_.getCount();
}
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus getPools(int index) {
if (poolsBuilder_ == null) {
return pools_.get(index);
} else {
return poolsBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public Builder setPools(
int index, com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus value) {
if (poolsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePoolsIsMutable();
pools_.set(index, value);
onChanged();
} else {
poolsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public Builder setPools(
int index, com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.Builder builderForValue) {
if (poolsBuilder_ == null) {
ensurePoolsIsMutable();
pools_.set(index, builderForValue.build());
onChanged();
} else {
poolsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public Builder addPools(com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus value) {
if (poolsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePoolsIsMutable();
pools_.add(value);
onChanged();
} else {
poolsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public Builder addPools(
int index, com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus value) {
if (poolsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePoolsIsMutable();
pools_.add(index, value);
onChanged();
} else {
poolsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public Builder addPools(
com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.Builder builderForValue) {
if (poolsBuilder_ == null) {
ensurePoolsIsMutable();
pools_.add(builderForValue.build());
onChanged();
} else {
poolsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public Builder addPools(
int index, com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.Builder builderForValue) {
if (poolsBuilder_ == null) {
ensurePoolsIsMutable();
pools_.add(index, builderForValue.build());
onChanged();
} else {
poolsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public Builder addAllPools(
java.lang.Iterable extends com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus> values) {
if (poolsBuilder_ == null) {
ensurePoolsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, pools_);
onChanged();
} else {
poolsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public Builder clearPools() {
if (poolsBuilder_ == null) {
pools_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
poolsBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public Builder removePools(int index) {
if (poolsBuilder_ == null) {
ensurePoolsIsMutable();
pools_.remove(index);
onChanged();
} else {
poolsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.Builder getPoolsBuilder(
int index) {
return getPoolsFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatusOrBuilder getPoolsOrBuilder(
int index) {
if (poolsBuilder_ == null) {
return pools_.get(index); } else {
return poolsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatusOrBuilder>
getPoolsOrBuilderList() {
if (poolsBuilder_ != null) {
return poolsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(pools_);
}
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.Builder addPoolsBuilder() {
return getPoolsFieldBuilder().addBuilder(
com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.Builder addPoolsBuilder(
int index) {
return getPoolsFieldBuilder().addBuilder(
index, com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
public java.util.List
getPoolsBuilderList() {
return getPoolsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus, com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatusOrBuilder>
getPoolsFieldBuilder() {
if (poolsBuilder_ == null) {
poolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus, com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StoragePoolStatusOrBuilder>(
pools_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
pools_ = null;
}
return poolsBuilder_;
}
@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:Ydb.Monitoring.StorageStatus)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.StorageStatus)
private static final com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StorageStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StorageStatus(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 com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ComputeTabletStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.ComputeTabletStatus)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
int getOverallValue();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall();
/**
* string type = 2;
* @return The type.
*/
java.lang.String getType();
/**
* string type = 2;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* string state = 3;
* @return The state.
*/
java.lang.String getState();
/**
* string state = 3;
* @return The bytes for state.
*/
com.google.protobuf.ByteString
getStateBytes();
/**
* uint32 count = 4;
* @return The count.
*/
int getCount();
/**
* repeated string id = 5;
* @return A list containing the id.
*/
java.util.List
getIdList();
/**
* repeated string id = 5;
* @return The count of id.
*/
int getIdCount();
/**
* repeated string id = 5;
* @param index The index of the element to return.
* @return The id at the given index.
*/
java.lang.String getId(int index);
/**
* repeated string id = 5;
* @param index The index of the value to return.
* @return The bytes of the id at the given index.
*/
com.google.protobuf.ByteString
getIdBytes(int index);
}
/**
*
* Describes the state of a tablet group.
*
*
* Protobuf type {@code Ydb.Monitoring.ComputeTabletStatus}
*/
public static final class ComputeTabletStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.ComputeTabletStatus)
ComputeTabletStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComputeTabletStatus.newBuilder() to construct.
private ComputeTabletStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComputeTabletStatus() {
overall_ = 0;
type_ = "";
state_ = "";
id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ComputeTabletStatus();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComputeTabletStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
overall_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
type_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
state_ = s;
break;
}
case 32: {
count_ = input.readUInt32();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
id_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
id_.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)) {
id_ = id_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeTabletStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeTabletStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder.class);
}
public static final int OVERALL_FIELD_NUMBER = 1;
private int overall_;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
public static final int TYPE_FIELD_NUMBER = 2;
private volatile java.lang.Object type_;
/**
* string type = 2;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
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();
type_ = s;
return s;
}
}
/**
* string type = 2;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATE_FIELD_NUMBER = 3;
private volatile java.lang.Object state_;
/**
* string state = 3;
* @return The state.
*/
@java.lang.Override
public java.lang.String getState() {
java.lang.Object ref = state_;
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();
state_ = s;
return s;
}
}
/**
* string state = 3;
* @return The bytes for state.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNT_FIELD_NUMBER = 4;
private int count_;
/**
* uint32 count = 4;
* @return The count.
*/
@java.lang.Override
public int getCount() {
return count_;
}
public static final int ID_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList id_;
/**
* repeated string id = 5;
* @return A list containing the id.
*/
public com.google.protobuf.ProtocolStringList
getIdList() {
return id_;
}
/**
* repeated string id = 5;
* @return The count of id.
*/
public int getIdCount() {
return id_.size();
}
/**
* repeated string id = 5;
* @param index The index of the element to return.
* @return The id at the given index.
*/
public java.lang.String getId(int index) {
return id_.get(index);
}
/**
* repeated string id = 5;
* @param index The index of the value to return.
* @return The bytes of the id at the given index.
*/
public com.google.protobuf.ByteString
getIdBytes(int index) {
return id_.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 (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
output.writeEnum(1, overall_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, state_);
}
if (count_ != 0) {
output.writeUInt32(4, count_);
}
for (int i = 0; i < id_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, id_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, overall_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, state_);
}
if (count_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, count_);
}
{
int dataSize = 0;
for (int i = 0; i < id_.size(); i++) {
dataSize += computeStringSizeNoTag(id_.getRaw(i));
}
size += dataSize;
size += 1 * getIdList().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 com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus other = (com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus) obj;
if (overall_ != other.overall_) return false;
if (!getType()
.equals(other.getType())) return false;
if (!getState()
.equals(other.getState())) return false;
if (getCount()
!= other.getCount()) return false;
if (!getIdList()
.equals(other.getIdList())) 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) + OVERALL_FIELD_NUMBER;
hash = (53 * hash) + overall_;
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + getState().hashCode();
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCount();
if (getIdCount() > 0) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getIdList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus 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(com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus 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;
}
/**
*
* Describes the state of a tablet group.
*
*
* Protobuf type {@code Ydb.Monitoring.ComputeTabletStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.ComputeTabletStatus)
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeTabletStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeTabletStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.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();
overall_ = 0;
type_ = "";
state_ = "";
count_ = 0;
id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeTabletStatus_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus build() {
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus result = new com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus(this);
int from_bitField0_ = bitField0_;
result.overall_ = overall_;
result.type_ = type_;
result.state_ = state_;
result.count_ = count_;
if (((bitField0_ & 0x00000001) != 0)) {
id_ = id_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.id_ = id_;
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 com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.getDefaultInstance()) return this;
if (other.overall_ != 0) {
setOverallValue(other.getOverallValue());
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
onChanged();
}
if (!other.getState().isEmpty()) {
state_ = other.state_;
onChanged();
}
if (other.getCount() != 0) {
setCount(other.getCount());
}
if (!other.id_.isEmpty()) {
if (id_.isEmpty()) {
id_ = other.id_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIdIsMutable();
id_.addAll(other.id_);
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int overall_ = 0;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @param value The enum numeric value on the wire for overall to set.
* @return This builder for chaining.
*/
public Builder setOverallValue(int value) {
overall_ = value;
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @param value The overall to set.
* @return This builder for chaining.
*/
public Builder setOverall(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
overall_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return This builder for chaining.
*/
public Builder clearOverall() {
overall_ = 0;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
* string type = 2;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string type = 2;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string type = 2;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
* string type = 2;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
* string type = 2;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
private java.lang.Object state_ = "";
/**
* string state = 3;
* @return The state.
*/
public java.lang.String getState() {
java.lang.Object ref = state_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
state_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string state = 3;
* @return The bytes for state.
*/
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string state = 3;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value;
onChanged();
return this;
}
/**
* string state = 3;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = getDefaultInstance().getState();
onChanged();
return this;
}
/**
* string state = 3;
* @param value The bytes for state to set.
* @return This builder for chaining.
*/
public Builder setStateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
state_ = value;
onChanged();
return this;
}
private int count_ ;
/**
* uint32 count = 4;
* @return The count.
*/
@java.lang.Override
public int getCount() {
return count_;
}
/**
* uint32 count = 4;
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(int value) {
count_ = value;
onChanged();
return this;
}
/**
* uint32 count = 4;
* @return This builder for chaining.
*/
public Builder clearCount() {
count_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIdIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
id_ = new com.google.protobuf.LazyStringArrayList(id_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string id = 5;
* @return A list containing the id.
*/
public com.google.protobuf.ProtocolStringList
getIdList() {
return id_.getUnmodifiableView();
}
/**
* repeated string id = 5;
* @return The count of id.
*/
public int getIdCount() {
return id_.size();
}
/**
* repeated string id = 5;
* @param index The index of the element to return.
* @return The id at the given index.
*/
public java.lang.String getId(int index) {
return id_.get(index);
}
/**
* repeated string id = 5;
* @param index The index of the value to return.
* @return The bytes of the id at the given index.
*/
public com.google.protobuf.ByteString
getIdBytes(int index) {
return id_.getByteString(index);
}
/**
* repeated string id = 5;
* @param index The index to set the value at.
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.set(index, value);
onChanged();
return this;
}
/**
* repeated string id = 5;
* @param value The id to add.
* @return This builder for chaining.
*/
public Builder addId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.add(value);
onChanged();
return this;
}
/**
* repeated string id = 5;
* @param values The id to add.
* @return This builder for chaining.
*/
public Builder addAllId(
java.lang.Iterable values) {
ensureIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, id_);
onChanged();
return this;
}
/**
* repeated string id = 5;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string id = 5;
* @param value The bytes of the id to add.
* @return This builder for chaining.
*/
public Builder addIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIdIsMutable();
id_.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:Ydb.Monitoring.ComputeTabletStatus)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.ComputeTabletStatus)
private static final com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ComputeTabletStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ComputeTabletStatus(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 com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ThreadPoolStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.ThreadPoolStatus)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
int getOverallValue();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall();
/**
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* float usage = 3;
* @return The usage.
*/
float getUsage();
}
/**
* Protobuf type {@code Ydb.Monitoring.ThreadPoolStatus}
*/
public static final class ThreadPoolStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.ThreadPoolStatus)
ThreadPoolStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use ThreadPoolStatus.newBuilder() to construct.
private ThreadPoolStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ThreadPoolStatus() {
overall_ = 0;
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ThreadPoolStatus();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ThreadPoolStatus(
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();
overall_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 29: {
usage_ = input.readFloat();
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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ThreadPoolStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ThreadPoolStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.Builder.class);
}
public static final int OVERALL_FIELD_NUMBER = 1;
private int overall_;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
* @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;
}
}
/**
* string name = 2;
* @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 USAGE_FIELD_NUMBER = 3;
private float usage_;
/**
* float usage = 3;
* @return The usage.
*/
@java.lang.Override
public float getUsage() {
return usage_;
}
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 (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
output.writeEnum(1, overall_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (java.lang.Float.floatToRawIntBits(usage_) != 0) {
output.writeFloat(3, usage_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, overall_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (java.lang.Float.floatToRawIntBits(usage_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, usage_);
}
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 com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus other = (com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus) obj;
if (overall_ != other.overall_) return false;
if (!getName()
.equals(other.getName())) return false;
if (java.lang.Float.floatToIntBits(getUsage())
!= java.lang.Float.floatToIntBits(
other.getUsage())) 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) + OVERALL_FIELD_NUMBER;
hash = (53 * hash) + overall_;
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + USAGE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getUsage());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus 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(com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus 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 Ydb.Monitoring.ThreadPoolStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.ThreadPoolStatus)
com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ThreadPoolStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ThreadPoolStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.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();
overall_ = 0;
name_ = "";
usage_ = 0F;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ThreadPoolStatus_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus build() {
com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus result = new com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus(this);
result.overall_ = overall_;
result.name_ = name_;
result.usage_ = usage_;
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 com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.getDefaultInstance()) return this;
if (other.overall_ != 0) {
setOverallValue(other.getOverallValue());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getUsage() != 0F) {
setUsage(other.getUsage());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int overall_ = 0;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @param value The enum numeric value on the wire for overall to set.
* @return This builder for chaining.
*/
public Builder setOverallValue(int value) {
overall_ = value;
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @param value The overall to set.
* @return This builder for chaining.
*/
public Builder setOverall(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
overall_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return This builder for chaining.
*/
public Builder clearOverall() {
overall_ = 0;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 2;
* @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;
}
}
/**
* string name = 2;
* @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;
}
}
/**
* string name = 2;
* @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;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
* @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 float usage_ ;
/**
* float usage = 3;
* @return The usage.
*/
@java.lang.Override
public float getUsage() {
return usage_;
}
/**
* float usage = 3;
* @param value The usage to set.
* @return This builder for chaining.
*/
public Builder setUsage(float value) {
usage_ = value;
onChanged();
return this;
}
/**
* float usage = 3;
* @return This builder for chaining.
*/
public Builder clearUsage() {
usage_ = 0F;
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:Ydb.Monitoring.ThreadPoolStatus)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.ThreadPoolStatus)
private static final com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ThreadPoolStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ThreadPoolStatus(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 com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LoadAverageStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.LoadAverageStatus)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
int getOverallValue();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall();
/**
* float load = 2;
* @return The load.
*/
float getLoad();
/**
* uint32 cores = 3;
* @return The cores.
*/
int getCores();
}
/**
* Protobuf type {@code Ydb.Monitoring.LoadAverageStatus}
*/
public static final class LoadAverageStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.LoadAverageStatus)
LoadAverageStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use LoadAverageStatus.newBuilder() to construct.
private LoadAverageStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LoadAverageStatus() {
overall_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LoadAverageStatus();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LoadAverageStatus(
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();
overall_ = rawValue;
break;
}
case 21: {
load_ = input.readFloat();
break;
}
case 24: {
cores_ = input.readUInt32();
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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LoadAverageStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LoadAverageStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.Builder.class);
}
public static final int OVERALL_FIELD_NUMBER = 1;
private int overall_;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
public static final int LOAD_FIELD_NUMBER = 2;
private float load_;
/**
* float load = 2;
* @return The load.
*/
@java.lang.Override
public float getLoad() {
return load_;
}
public static final int CORES_FIELD_NUMBER = 3;
private int cores_;
/**
* uint32 cores = 3;
* @return The cores.
*/
@java.lang.Override
public int getCores() {
return cores_;
}
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 (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
output.writeEnum(1, overall_);
}
if (java.lang.Float.floatToRawIntBits(load_) != 0) {
output.writeFloat(2, load_);
}
if (cores_ != 0) {
output.writeUInt32(3, cores_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, overall_);
}
if (java.lang.Float.floatToRawIntBits(load_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, load_);
}
if (cores_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, cores_);
}
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 com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus other = (com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus) obj;
if (overall_ != other.overall_) return false;
if (java.lang.Float.floatToIntBits(getLoad())
!= java.lang.Float.floatToIntBits(
other.getLoad())) return false;
if (getCores()
!= other.getCores()) 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) + OVERALL_FIELD_NUMBER;
hash = (53 * hash) + overall_;
hash = (37 * hash) + LOAD_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getLoad());
hash = (37 * hash) + CORES_FIELD_NUMBER;
hash = (53 * hash) + getCores();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus 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(com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus 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 Ydb.Monitoring.LoadAverageStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.LoadAverageStatus)
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LoadAverageStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LoadAverageStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.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();
overall_ = 0;
load_ = 0F;
cores_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LoadAverageStatus_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus build() {
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus result = new com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus(this);
result.overall_ = overall_;
result.load_ = load_;
result.cores_ = cores_;
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 com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.getDefaultInstance()) return this;
if (other.overall_ != 0) {
setOverallValue(other.getOverallValue());
}
if (other.getLoad() != 0F) {
setLoad(other.getLoad());
}
if (other.getCores() != 0) {
setCores(other.getCores());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int overall_ = 0;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @param value The enum numeric value on the wire for overall to set.
* @return This builder for chaining.
*/
public Builder setOverallValue(int value) {
overall_ = value;
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @param value The overall to set.
* @return This builder for chaining.
*/
public Builder setOverall(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
overall_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return This builder for chaining.
*/
public Builder clearOverall() {
overall_ = 0;
onChanged();
return this;
}
private float load_ ;
/**
* float load = 2;
* @return The load.
*/
@java.lang.Override
public float getLoad() {
return load_;
}
/**
* float load = 2;
* @param value The load to set.
* @return This builder for chaining.
*/
public Builder setLoad(float value) {
load_ = value;
onChanged();
return this;
}
/**
* float load = 2;
* @return This builder for chaining.
*/
public Builder clearLoad() {
load_ = 0F;
onChanged();
return this;
}
private int cores_ ;
/**
* uint32 cores = 3;
* @return The cores.
*/
@java.lang.Override
public int getCores() {
return cores_;
}
/**
* uint32 cores = 3;
* @param value The cores to set.
* @return This builder for chaining.
*/
public Builder setCores(int value) {
cores_ = value;
onChanged();
return this;
}
/**
* uint32 cores = 3;
* @return This builder for chaining.
*/
public Builder clearCores() {
cores_ = 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:Ydb.Monitoring.LoadAverageStatus)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.LoadAverageStatus)
private static final com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LoadAverageStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LoadAverageStatus(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 com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ComputeNodeStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.ComputeNodeStatus)
com.google.protobuf.MessageOrBuilder {
/**
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
int getOverallValue();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall();
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
java.util.List
getTabletsList();
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus getTablets(int index);
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
int getTabletsCount();
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder>
getTabletsOrBuilderList();
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder getTabletsOrBuilder(
int index);
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
java.util.List
getPoolsList();
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus getPools(int index);
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
int getPoolsCount();
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatusOrBuilder>
getPoolsOrBuilderList();
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatusOrBuilder getPoolsOrBuilder(
int index);
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
* @return Whether the load field is set.
*/
boolean hasLoad();
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
* @return The load.
*/
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus getLoad();
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
*/
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatusOrBuilder getLoadOrBuilder();
}
/**
* Protobuf type {@code Ydb.Monitoring.ComputeNodeStatus}
*/
public static final class ComputeNodeStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.ComputeNodeStatus)
ComputeNodeStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComputeNodeStatus.newBuilder() to construct.
private ComputeNodeStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComputeNodeStatus() {
id_ = "";
overall_ = 0;
tablets_ = java.util.Collections.emptyList();
pools_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ComputeNodeStatus();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComputeNodeStatus(
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 16: {
int rawValue = input.readEnum();
overall_ = rawValue;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
tablets_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tablets_.add(
input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
pools_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
pools_.add(
input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.parser(), extensionRegistry));
break;
}
case 42: {
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.Builder subBuilder = null;
if (load_ != null) {
subBuilder = load_.toBuilder();
}
load_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(load_);
load_ = 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_ & 0x00000001) != 0)) {
tablets_ = java.util.Collections.unmodifiableList(tablets_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
pools_ = java.util.Collections.unmodifiableList(pools_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeNodeStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeNodeStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* 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;
}
}
/**
* 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 OVERALL_FIELD_NUMBER = 2;
private int overall_;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
public static final int TABLETS_FIELD_NUMBER = 3;
private java.util.List tablets_;
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
@java.lang.Override
public java.util.List getTabletsList() {
return tablets_;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder>
getTabletsOrBuilderList() {
return tablets_;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
@java.lang.Override
public int getTabletsCount() {
return tablets_.size();
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus getTablets(int index) {
return tablets_.get(index);
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder getTabletsOrBuilder(
int index) {
return tablets_.get(index);
}
public static final int POOLS_FIELD_NUMBER = 4;
private java.util.List pools_;
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
@java.lang.Override
public java.util.List getPoolsList() {
return pools_;
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatusOrBuilder>
getPoolsOrBuilderList() {
return pools_;
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
@java.lang.Override
public int getPoolsCount() {
return pools_.size();
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus getPools(int index) {
return pools_.get(index);
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatusOrBuilder getPoolsOrBuilder(
int index) {
return pools_.get(index);
}
public static final int LOAD_FIELD_NUMBER = 5;
private com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus load_;
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
* @return Whether the load field is set.
*/
@java.lang.Override
public boolean hasLoad() {
return load_ != null;
}
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
* @return The load.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus getLoad() {
return load_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.getDefaultInstance() : load_;
}
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatusOrBuilder getLoadOrBuilder() {
return getLoad();
}
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 (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
output.writeEnum(2, overall_);
}
for (int i = 0; i < tablets_.size(); i++) {
output.writeMessage(3, tablets_.get(i));
}
for (int i = 0; i < pools_.size(); i++) {
output.writeMessage(4, pools_.get(i));
}
if (load_ != null) {
output.writeMessage(5, getLoad());
}
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 (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, overall_);
}
for (int i = 0; i < tablets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, tablets_.get(i));
}
for (int i = 0; i < pools_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, pools_.get(i));
}
if (load_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getLoad());
}
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 com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus other = (com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus) obj;
if (!getId()
.equals(other.getId())) return false;
if (overall_ != other.overall_) return false;
if (!getTabletsList()
.equals(other.getTabletsList())) return false;
if (!getPoolsList()
.equals(other.getPoolsList())) return false;
if (hasLoad() != other.hasLoad()) return false;
if (hasLoad()) {
if (!getLoad()
.equals(other.getLoad())) 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) + OVERALL_FIELD_NUMBER;
hash = (53 * hash) + overall_;
if (getTabletsCount() > 0) {
hash = (37 * hash) + TABLETS_FIELD_NUMBER;
hash = (53 * hash) + getTabletsList().hashCode();
}
if (getPoolsCount() > 0) {
hash = (37 * hash) + POOLS_FIELD_NUMBER;
hash = (53 * hash) + getPoolsList().hashCode();
}
if (hasLoad()) {
hash = (37 * hash) + LOAD_FIELD_NUMBER;
hash = (53 * hash) + getLoad().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus 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(com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus 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 Ydb.Monitoring.ComputeNodeStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.ComputeNodeStatus)
com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeNodeStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeNodeStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTabletsFieldBuilder();
getPoolsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
overall_ = 0;
if (tabletsBuilder_ == null) {
tablets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
tabletsBuilder_.clear();
}
if (poolsBuilder_ == null) {
pools_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
poolsBuilder_.clear();
}
if (loadBuilder_ == null) {
load_ = null;
} else {
load_ = null;
loadBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeNodeStatus_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus build() {
com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus result = new com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.overall_ = overall_;
if (tabletsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
tablets_ = java.util.Collections.unmodifiableList(tablets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tablets_ = tablets_;
} else {
result.tablets_ = tabletsBuilder_.build();
}
if (poolsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
pools_ = java.util.Collections.unmodifiableList(pools_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.pools_ = pools_;
} else {
result.pools_ = poolsBuilder_.build();
}
if (loadBuilder_ == null) {
result.load_ = load_;
} else {
result.load_ = loadBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.overall_ != 0) {
setOverallValue(other.getOverallValue());
}
if (tabletsBuilder_ == null) {
if (!other.tablets_.isEmpty()) {
if (tablets_.isEmpty()) {
tablets_ = other.tablets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTabletsIsMutable();
tablets_.addAll(other.tablets_);
}
onChanged();
}
} else {
if (!other.tablets_.isEmpty()) {
if (tabletsBuilder_.isEmpty()) {
tabletsBuilder_.dispose();
tabletsBuilder_ = null;
tablets_ = other.tablets_;
bitField0_ = (bitField0_ & ~0x00000001);
tabletsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTabletsFieldBuilder() : null;
} else {
tabletsBuilder_.addAllMessages(other.tablets_);
}
}
}
if (poolsBuilder_ == null) {
if (!other.pools_.isEmpty()) {
if (pools_.isEmpty()) {
pools_ = other.pools_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePoolsIsMutable();
pools_.addAll(other.pools_);
}
onChanged();
}
} else {
if (!other.pools_.isEmpty()) {
if (poolsBuilder_.isEmpty()) {
poolsBuilder_.dispose();
poolsBuilder_ = null;
pools_ = other.pools_;
bitField0_ = (bitField0_ & ~0x00000002);
poolsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPoolsFieldBuilder() : null;
} else {
poolsBuilder_.addAllMessages(other.pools_);
}
}
}
if (other.hasLoad()) {
mergeLoad(other.getLoad());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* 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 int overall_ = 0;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @param value The enum numeric value on the wire for overall to set.
* @return This builder for chaining.
*/
public Builder setOverallValue(int value) {
overall_ = value;
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @param value The overall to set.
* @return This builder for chaining.
*/
public Builder setOverall(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
overall_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return This builder for chaining.
*/
public Builder clearOverall() {
overall_ = 0;
onChanged();
return this;
}
private java.util.List tablets_ =
java.util.Collections.emptyList();
private void ensureTabletsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
tablets_ = new java.util.ArrayList(tablets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder> tabletsBuilder_;
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public java.util.List getTabletsList() {
if (tabletsBuilder_ == null) {
return java.util.Collections.unmodifiableList(tablets_);
} else {
return tabletsBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public int getTabletsCount() {
if (tabletsBuilder_ == null) {
return tablets_.size();
} else {
return tabletsBuilder_.getCount();
}
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus getTablets(int index) {
if (tabletsBuilder_ == null) {
return tablets_.get(index);
} else {
return tabletsBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder setTablets(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus value) {
if (tabletsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTabletsIsMutable();
tablets_.set(index, value);
onChanged();
} else {
tabletsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder setTablets(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder builderForValue) {
if (tabletsBuilder_ == null) {
ensureTabletsIsMutable();
tablets_.set(index, builderForValue.build());
onChanged();
} else {
tabletsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder addTablets(com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus value) {
if (tabletsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTabletsIsMutable();
tablets_.add(value);
onChanged();
} else {
tabletsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder addTablets(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus value) {
if (tabletsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTabletsIsMutable();
tablets_.add(index, value);
onChanged();
} else {
tabletsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder addTablets(
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder builderForValue) {
if (tabletsBuilder_ == null) {
ensureTabletsIsMutable();
tablets_.add(builderForValue.build());
onChanged();
} else {
tabletsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder addTablets(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder builderForValue) {
if (tabletsBuilder_ == null) {
ensureTabletsIsMutable();
tablets_.add(index, builderForValue.build());
onChanged();
} else {
tabletsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder addAllTablets(
java.lang.Iterable extends com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus> values) {
if (tabletsBuilder_ == null) {
ensureTabletsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tablets_);
onChanged();
} else {
tabletsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder clearTablets() {
if (tabletsBuilder_ == null) {
tablets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
tabletsBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder removeTablets(int index) {
if (tabletsBuilder_ == null) {
ensureTabletsIsMutable();
tablets_.remove(index);
onChanged();
} else {
tabletsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder getTabletsBuilder(
int index) {
return getTabletsFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder getTabletsOrBuilder(
int index) {
if (tabletsBuilder_ == null) {
return tablets_.get(index); } else {
return tabletsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder>
getTabletsOrBuilderList() {
if (tabletsBuilder_ != null) {
return tabletsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tablets_);
}
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder addTabletsBuilder() {
return getTabletsFieldBuilder().addBuilder(
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder addTabletsBuilder(
int index) {
return getTabletsFieldBuilder().addBuilder(
index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public java.util.List
getTabletsBuilderList() {
return getTabletsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder>
getTabletsFieldBuilder() {
if (tabletsBuilder_ == null) {
tabletsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder>(
tablets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
tablets_ = null;
}
return tabletsBuilder_;
}
private java.util.List pools_ =
java.util.Collections.emptyList();
private void ensurePoolsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
pools_ = new java.util.ArrayList(pools_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus, com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatusOrBuilder> poolsBuilder_;
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public java.util.List getPoolsList() {
if (poolsBuilder_ == null) {
return java.util.Collections.unmodifiableList(pools_);
} else {
return poolsBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public int getPoolsCount() {
if (poolsBuilder_ == null) {
return pools_.size();
} else {
return poolsBuilder_.getCount();
}
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus getPools(int index) {
if (poolsBuilder_ == null) {
return pools_.get(index);
} else {
return poolsBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public Builder setPools(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus value) {
if (poolsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePoolsIsMutable();
pools_.set(index, value);
onChanged();
} else {
poolsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public Builder setPools(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.Builder builderForValue) {
if (poolsBuilder_ == null) {
ensurePoolsIsMutable();
pools_.set(index, builderForValue.build());
onChanged();
} else {
poolsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public Builder addPools(com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus value) {
if (poolsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePoolsIsMutable();
pools_.add(value);
onChanged();
} else {
poolsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public Builder addPools(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus value) {
if (poolsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePoolsIsMutable();
pools_.add(index, value);
onChanged();
} else {
poolsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public Builder addPools(
com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.Builder builderForValue) {
if (poolsBuilder_ == null) {
ensurePoolsIsMutable();
pools_.add(builderForValue.build());
onChanged();
} else {
poolsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public Builder addPools(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.Builder builderForValue) {
if (poolsBuilder_ == null) {
ensurePoolsIsMutable();
pools_.add(index, builderForValue.build());
onChanged();
} else {
poolsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public Builder addAllPools(
java.lang.Iterable extends com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus> values) {
if (poolsBuilder_ == null) {
ensurePoolsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, pools_);
onChanged();
} else {
poolsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public Builder clearPools() {
if (poolsBuilder_ == null) {
pools_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
poolsBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public Builder removePools(int index) {
if (poolsBuilder_ == null) {
ensurePoolsIsMutable();
pools_.remove(index);
onChanged();
} else {
poolsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.Builder getPoolsBuilder(
int index) {
return getPoolsFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatusOrBuilder getPoolsOrBuilder(
int index) {
if (poolsBuilder_ == null) {
return pools_.get(index); } else {
return poolsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatusOrBuilder>
getPoolsOrBuilderList() {
if (poolsBuilder_ != null) {
return poolsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(pools_);
}
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.Builder addPoolsBuilder() {
return getPoolsFieldBuilder().addBuilder(
com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.Builder addPoolsBuilder(
int index) {
return getPoolsFieldBuilder().addBuilder(
index, com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;
*/
public java.util.List
getPoolsBuilderList() {
return getPoolsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus, com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatusOrBuilder>
getPoolsFieldBuilder() {
if (poolsBuilder_ == null) {
poolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus, com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ThreadPoolStatusOrBuilder>(
pools_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
pools_ = null;
}
return poolsBuilder_;
}
private com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus load_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus, com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatusOrBuilder> loadBuilder_;
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
* @return Whether the load field is set.
*/
public boolean hasLoad() {
return loadBuilder_ != null || load_ != null;
}
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
* @return The load.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus getLoad() {
if (loadBuilder_ == null) {
return load_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.getDefaultInstance() : load_;
} else {
return loadBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
*/
public Builder setLoad(com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus value) {
if (loadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
load_ = value;
onChanged();
} else {
loadBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
*/
public Builder setLoad(
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.Builder builderForValue) {
if (loadBuilder_ == null) {
load_ = builderForValue.build();
onChanged();
} else {
loadBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
*/
public Builder mergeLoad(com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus value) {
if (loadBuilder_ == null) {
if (load_ != null) {
load_ =
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.newBuilder(load_).mergeFrom(value).buildPartial();
} else {
load_ = value;
}
onChanged();
} else {
loadBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
*/
public Builder clearLoad() {
if (loadBuilder_ == null) {
load_ = null;
onChanged();
} else {
load_ = null;
loadBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.Builder getLoadBuilder() {
onChanged();
return getLoadFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatusOrBuilder getLoadOrBuilder() {
if (loadBuilder_ != null) {
return loadBuilder_.getMessageOrBuilder();
} else {
return load_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.getDefaultInstance() : load_;
}
}
/**
* .Ydb.Monitoring.LoadAverageStatus load = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus, com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatusOrBuilder>
getLoadFieldBuilder() {
if (loadBuilder_ == null) {
loadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus, com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LoadAverageStatusOrBuilder>(
getLoad(),
getParentForChildren(),
isClean());
load_ = null;
}
return loadBuilder_;
}
@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:Ydb.Monitoring.ComputeNodeStatus)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.ComputeNodeStatus)
private static final com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ComputeNodeStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ComputeNodeStatus(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 com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ComputeStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.ComputeStatus)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
int getOverallValue();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall();
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
java.util.List
getNodesList();
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus getNodes(int index);
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
int getNodesCount();
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatusOrBuilder>
getNodesOrBuilderList();
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatusOrBuilder getNodesOrBuilder(
int index);
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
java.util.List
getTabletsList();
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus getTablets(int index);
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
int getTabletsCount();
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder>
getTabletsOrBuilderList();
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder getTabletsOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Monitoring.ComputeStatus}
*/
public static final class ComputeStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.ComputeStatus)
ComputeStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComputeStatus.newBuilder() to construct.
private ComputeStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComputeStatus() {
overall_ = 0;
nodes_ = java.util.Collections.emptyList();
tablets_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ComputeStatus();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComputeStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
overall_ = rawValue;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
nodes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
nodes_.add(
input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
tablets_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
tablets_.add(
input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
nodes_ = java.util.Collections.unmodifiableList(nodes_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
tablets_ = java.util.Collections.unmodifiableList(tablets_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.Builder.class);
}
public static final int OVERALL_FIELD_NUMBER = 1;
private int overall_;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
public static final int NODES_FIELD_NUMBER = 2;
private java.util.List nodes_;
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
@java.lang.Override
public java.util.List getNodesList() {
return nodes_;
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatusOrBuilder>
getNodesOrBuilderList() {
return nodes_;
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
@java.lang.Override
public int getNodesCount() {
return nodes_.size();
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus getNodes(int index) {
return nodes_.get(index);
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatusOrBuilder getNodesOrBuilder(
int index) {
return nodes_.get(index);
}
public static final int TABLETS_FIELD_NUMBER = 3;
private java.util.List tablets_;
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
@java.lang.Override
public java.util.List getTabletsList() {
return tablets_;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder>
getTabletsOrBuilderList() {
return tablets_;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
@java.lang.Override
public int getTabletsCount() {
return tablets_.size();
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus getTablets(int index) {
return tablets_.get(index);
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder getTabletsOrBuilder(
int index) {
return tablets_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
output.writeEnum(1, overall_);
}
for (int i = 0; i < nodes_.size(); i++) {
output.writeMessage(2, nodes_.get(i));
}
for (int i = 0; i < tablets_.size(); i++) {
output.writeMessage(3, tablets_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, overall_);
}
for (int i = 0; i < nodes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, nodes_.get(i));
}
for (int i = 0; i < tablets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, tablets_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus other = (com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus) obj;
if (overall_ != other.overall_) return false;
if (!getNodesList()
.equals(other.getNodesList())) return false;
if (!getTabletsList()
.equals(other.getTabletsList())) 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) + OVERALL_FIELD_NUMBER;
hash = (53 * hash) + overall_;
if (getNodesCount() > 0) {
hash = (37 * hash) + NODES_FIELD_NUMBER;
hash = (53 * hash) + getNodesList().hashCode();
}
if (getTabletsCount() > 0) {
hash = (37 * hash) + TABLETS_FIELD_NUMBER;
hash = (53 * hash) + getTabletsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus 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(com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus 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 Ydb.Monitoring.ComputeStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.ComputeStatus)
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNodesFieldBuilder();
getTabletsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
overall_ = 0;
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
nodesBuilder_.clear();
}
if (tabletsBuilder_ == null) {
tablets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
tabletsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_ComputeStatus_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus build() {
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus result = new com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus(this);
int from_bitField0_ = bitField0_;
result.overall_ = overall_;
if (nodesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
nodes_ = java.util.Collections.unmodifiableList(nodes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.nodes_ = nodes_;
} else {
result.nodes_ = nodesBuilder_.build();
}
if (tabletsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
tablets_ = java.util.Collections.unmodifiableList(tablets_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.tablets_ = tablets_;
} else {
result.tablets_ = tabletsBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.getDefaultInstance()) return this;
if (other.overall_ != 0) {
setOverallValue(other.getOverallValue());
}
if (nodesBuilder_ == null) {
if (!other.nodes_.isEmpty()) {
if (nodes_.isEmpty()) {
nodes_ = other.nodes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNodesIsMutable();
nodes_.addAll(other.nodes_);
}
onChanged();
}
} else {
if (!other.nodes_.isEmpty()) {
if (nodesBuilder_.isEmpty()) {
nodesBuilder_.dispose();
nodesBuilder_ = null;
nodes_ = other.nodes_;
bitField0_ = (bitField0_ & ~0x00000001);
nodesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNodesFieldBuilder() : null;
} else {
nodesBuilder_.addAllMessages(other.nodes_);
}
}
}
if (tabletsBuilder_ == null) {
if (!other.tablets_.isEmpty()) {
if (tablets_.isEmpty()) {
tablets_ = other.tablets_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTabletsIsMutable();
tablets_.addAll(other.tablets_);
}
onChanged();
}
} else {
if (!other.tablets_.isEmpty()) {
if (tabletsBuilder_.isEmpty()) {
tabletsBuilder_.dispose();
tabletsBuilder_ = null;
tablets_ = other.tablets_;
bitField0_ = (bitField0_ & ~0x00000002);
tabletsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTabletsFieldBuilder() : null;
} else {
tabletsBuilder_.addAllMessages(other.tablets_);
}
}
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int overall_ = 0;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @param value The enum numeric value on the wire for overall to set.
* @return This builder for chaining.
*/
public Builder setOverallValue(int value) {
overall_ = value;
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return The overall.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @param value The overall to set.
* @return This builder for chaining.
*/
public Builder setOverall(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
overall_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 1;
* @return This builder for chaining.
*/
public Builder clearOverall() {
overall_ = 0;
onChanged();
return this;
}
private java.util.List nodes_ =
java.util.Collections.emptyList();
private void ensureNodesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
nodes_ = new java.util.ArrayList(nodes_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus, com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatusOrBuilder> nodesBuilder_;
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public java.util.List getNodesList() {
if (nodesBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodes_);
} else {
return nodesBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public int getNodesCount() {
if (nodesBuilder_ == null) {
return nodes_.size();
} else {
return nodesBuilder_.getCount();
}
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus getNodes(int index) {
if (nodesBuilder_ == null) {
return nodes_.get(index);
} else {
return nodesBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public Builder setNodes(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.set(index, value);
onChanged();
} else {
nodesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public Builder setNodes(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.set(index, builderForValue.build());
onChanged();
} else {
nodesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public Builder addNodes(com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.add(value);
onChanged();
} else {
nodesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public Builder addNodes(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.add(index, value);
onChanged();
} else {
nodesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public Builder addNodes(
com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(builderForValue.build());
onChanged();
} else {
nodesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public Builder addNodes(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(index, builderForValue.build());
onChanged();
} else {
nodesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public Builder addAllNodes(
java.lang.Iterable extends com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus> values) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nodes_);
onChanged();
} else {
nodesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public Builder clearNodes() {
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
nodesBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public Builder removeNodes(int index) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.remove(index);
onChanged();
} else {
nodesBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.Builder getNodesBuilder(
int index) {
return getNodesFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatusOrBuilder getNodesOrBuilder(
int index) {
if (nodesBuilder_ == null) {
return nodes_.get(index); } else {
return nodesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatusOrBuilder>
getNodesOrBuilderList() {
if (nodesBuilder_ != null) {
return nodesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodes_);
}
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.Builder addNodesBuilder() {
return getNodesFieldBuilder().addBuilder(
com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.Builder addNodesBuilder(
int index) {
return getNodesFieldBuilder().addBuilder(
index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
*/
public java.util.List
getNodesBuilderList() {
return getNodesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus, com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatusOrBuilder>
getNodesFieldBuilder() {
if (nodesBuilder_ == null) {
nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus, com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ComputeNodeStatusOrBuilder>(
nodes_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
nodes_ = null;
}
return nodesBuilder_;
}
private java.util.List tablets_ =
java.util.Collections.emptyList();
private void ensureTabletsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
tablets_ = new java.util.ArrayList(tablets_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder> tabletsBuilder_;
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public java.util.List getTabletsList() {
if (tabletsBuilder_ == null) {
return java.util.Collections.unmodifiableList(tablets_);
} else {
return tabletsBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public int getTabletsCount() {
if (tabletsBuilder_ == null) {
return tablets_.size();
} else {
return tabletsBuilder_.getCount();
}
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus getTablets(int index) {
if (tabletsBuilder_ == null) {
return tablets_.get(index);
} else {
return tabletsBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder setTablets(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus value) {
if (tabletsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTabletsIsMutable();
tablets_.set(index, value);
onChanged();
} else {
tabletsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder setTablets(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder builderForValue) {
if (tabletsBuilder_ == null) {
ensureTabletsIsMutable();
tablets_.set(index, builderForValue.build());
onChanged();
} else {
tabletsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder addTablets(com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus value) {
if (tabletsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTabletsIsMutable();
tablets_.add(value);
onChanged();
} else {
tabletsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder addTablets(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus value) {
if (tabletsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTabletsIsMutable();
tablets_.add(index, value);
onChanged();
} else {
tabletsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder addTablets(
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder builderForValue) {
if (tabletsBuilder_ == null) {
ensureTabletsIsMutable();
tablets_.add(builderForValue.build());
onChanged();
} else {
tabletsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder addTablets(
int index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder builderForValue) {
if (tabletsBuilder_ == null) {
ensureTabletsIsMutable();
tablets_.add(index, builderForValue.build());
onChanged();
} else {
tabletsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder addAllTablets(
java.lang.Iterable extends com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus> values) {
if (tabletsBuilder_ == null) {
ensureTabletsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tablets_);
onChanged();
} else {
tabletsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder clearTablets() {
if (tabletsBuilder_ == null) {
tablets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
tabletsBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public Builder removeTablets(int index) {
if (tabletsBuilder_ == null) {
ensureTabletsIsMutable();
tablets_.remove(index);
onChanged();
} else {
tabletsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder getTabletsBuilder(
int index) {
return getTabletsFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder getTabletsOrBuilder(
int index) {
if (tabletsBuilder_ == null) {
return tablets_.get(index); } else {
return tabletsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder>
getTabletsOrBuilderList() {
if (tabletsBuilder_ != null) {
return tabletsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tablets_);
}
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder addTabletsBuilder() {
return getTabletsFieldBuilder().addBuilder(
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder addTabletsBuilder(
int index) {
return getTabletsFieldBuilder().addBuilder(
index, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
public java.util.List
getTabletsBuilderList() {
return getTabletsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder>
getTabletsFieldBuilder() {
if (tabletsBuilder_ == null) {
tabletsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ComputeTabletStatusOrBuilder>(
tablets_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
tablets_ = null;
}
return tabletsBuilder_;
}
@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:Ydb.Monitoring.ComputeStatus)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.ComputeStatus)
private static final com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ComputeStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ComputeStatus(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 com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocationNodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.LocationNode)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 id = 1;
* @return The id.
*/
int getId();
/**
* string host = 2;
* @return The host.
*/
java.lang.String getHost();
/**
* string host = 2;
* @return The bytes for host.
*/
com.google.protobuf.ByteString
getHostBytes();
/**
* uint32 port = 3;
* @return The port.
*/
int getPort();
}
/**
* Protobuf type {@code Ydb.Monitoring.LocationNode}
*/
public static final class LocationNode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.LocationNode)
LocationNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocationNode.newBuilder() to construct.
private LocationNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocationNode() {
host_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationNode();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocationNode(
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: {
id_ = input.readUInt32();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
host_ = s;
break;
}
case 24: {
port_ = input.readUInt32();
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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* uint32 id = 1;
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
public static final int HOST_FIELD_NUMBER = 2;
private volatile java.lang.Object host_;
/**
* string host = 2;
* @return The host.
*/
@java.lang.Override
public java.lang.String getHost() {
java.lang.Object ref = host_;
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();
host_ = s;
return s;
}
}
/**
* string host = 2;
* @return The bytes for host.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORT_FIELD_NUMBER = 3;
private int port_;
/**
* uint32 port = 3;
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
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 (id_ != 0) {
output.writeUInt32(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, host_);
}
if (port_ != 0) {
output.writeUInt32(3, port_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, host_);
}
if (port_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, port_);
}
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationNode)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode other = (com.yandex.ydb.monitoring.MonitoringProtos.LocationNode) obj;
if (getId()
!= other.getId()) return false;
if (!getHost()
.equals(other.getHost())) return false;
if (getPort()
!= other.getPort()) 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();
hash = (37 * hash) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationNode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationNode parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationNode parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationNode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationNode 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationNode 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationNode 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(com.yandex.ydb.monitoring.MonitoringProtos.LocationNode 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 Ydb.Monitoring.LocationNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.LocationNode)
com.yandex.ydb.monitoring.MonitoringProtos.LocationNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.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();
id_ = 0;
host_ = "";
port_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationNode_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationNode getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationNode build() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationNode buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode result = new com.yandex.ydb.monitoring.MonitoringProtos.LocationNode(this);
result.id_ = id_;
result.host_ = host_;
result.port_ = port_;
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationNode) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.LocationNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.LocationNode other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.getDefaultInstance()) return this;
if (other.getId() != 0) {
setId(other.getId());
}
if (!other.getHost().isEmpty()) {
host_ = other.host_;
onChanged();
}
if (other.getPort() != 0) {
setPort(other.getPort());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.LocationNode) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int id_ ;
/**
* uint32 id = 1;
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
/**
* uint32 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(int value) {
id_ = value;
onChanged();
return this;
}
/**
* uint32 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
private java.lang.Object host_ = "";
/**
* string host = 2;
* @return The host.
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
host_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string host = 2;
* @return The bytes for host.
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string host = 2;
* @param value The host to set.
* @return This builder for chaining.
*/
public Builder setHost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
host_ = value;
onChanged();
return this;
}
/**
* string host = 2;
* @return This builder for chaining.
*/
public Builder clearHost() {
host_ = getDefaultInstance().getHost();
onChanged();
return this;
}
/**
* string host = 2;
* @param value The bytes for host to set.
* @return This builder for chaining.
*/
public Builder setHostBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
host_ = value;
onChanged();
return this;
}
private int port_ ;
/**
* uint32 port = 3;
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
/**
* uint32 port = 3;
* @param value The port to set.
* @return This builder for chaining.
*/
public Builder setPort(int value) {
port_ = value;
onChanged();
return this;
}
/**
* uint32 port = 3;
* @return This builder for chaining.
*/
public Builder clearPort() {
port_ = 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:Ydb.Monitoring.LocationNode)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.LocationNode)
private static final com.yandex.ydb.monitoring.MonitoringProtos.LocationNode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.LocationNode();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationNode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocationNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocationNode(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 com.yandex.ydb.monitoring.MonitoringProtos.LocationNode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocationStoragePDiskOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.LocationStoragePDisk)
com.google.protobuf.MessageOrBuilder {
/**
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* string path = 2;
* @return The path.
*/
java.lang.String getPath();
/**
* string path = 2;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
}
/**
* Protobuf type {@code Ydb.Monitoring.LocationStoragePDisk}
*/
public static final class LocationStoragePDisk extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.LocationStoragePDisk)
LocationStoragePDiskOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocationStoragePDisk.newBuilder() to construct.
private LocationStoragePDisk(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocationStoragePDisk() {
id_ = "";
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationStoragePDisk();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocationStoragePDisk(
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();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
path_ = 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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStoragePDisk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStoragePDisk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* 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;
}
}
/**
* 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 PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object path_;
/**
* string path = 2;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
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();
path_ = s;
return s;
}
}
/**
* string path = 2;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = 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(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
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(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk other = (com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getPath()
.equals(other.getPath())) 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) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk 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(com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk 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 Ydb.Monitoring.LocationStoragePDisk}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.LocationStoragePDisk)
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDiskOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStoragePDisk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStoragePDisk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.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();
id_ = "";
path_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStoragePDisk_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk build() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk result = new com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk(this);
result.id_ = id_;
result.path_ = path_;
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
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 {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* 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 path_ = "";
/**
* string path = 2;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string path = 2;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string path = 2;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
* string path = 2;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* string path = 2;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = 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:Ydb.Monitoring.LocationStoragePDisk)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.LocationStoragePDisk)
private static final com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocationStoragePDisk parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocationStoragePDisk(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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocationStorageVDiskOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.LocationStorageVDisk)
com.google.protobuf.MessageOrBuilder {
/**
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
* @return Whether the pdisk field is set.
*/
boolean hasPdisk();
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
* @return The pdisk.
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk getPdisk();
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDiskOrBuilder getPdiskOrBuilder();
}
/**
* Protobuf type {@code Ydb.Monitoring.LocationStorageVDisk}
*/
public static final class LocationStorageVDisk extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.LocationStorageVDisk)
LocationStorageVDiskOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocationStorageVDisk.newBuilder() to construct.
private LocationStorageVDisk(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocationStorageVDisk() {
id_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationStorageVDisk();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocationStorageVDisk(
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();
id_ = s;
break;
}
case 18: {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.Builder subBuilder = null;
if (pdisk_ != null) {
subBuilder = pdisk_.toBuilder();
}
pdisk_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pdisk_);
pdisk_ = 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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorageVDisk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorageVDisk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* 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;
}
}
/**
* 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 PDISK_FIELD_NUMBER = 2;
private com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk pdisk_;
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
* @return Whether the pdisk field is set.
*/
@java.lang.Override
public boolean hasPdisk() {
return pdisk_ != null;
}
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
* @return The pdisk.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk getPdisk() {
return pdisk_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.getDefaultInstance() : pdisk_;
}
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDiskOrBuilder getPdiskOrBuilder() {
return getPdisk();
}
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 (pdisk_ != null) {
output.writeMessage(2, getPdisk());
}
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 (pdisk_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPdisk());
}
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk other = (com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk) obj;
if (!getId()
.equals(other.getId())) return false;
if (hasPdisk() != other.hasPdisk()) return false;
if (hasPdisk()) {
if (!getPdisk()
.equals(other.getPdisk())) 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();
if (hasPdisk()) {
hash = (37 * hash) + PDISK_FIELD_NUMBER;
hash = (53 * hash) + getPdisk().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk 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(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk 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 Ydb.Monitoring.LocationStorageVDisk}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.LocationStorageVDisk)
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDiskOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorageVDisk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorageVDisk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.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();
id_ = "";
if (pdiskBuilder_ == null) {
pdisk_ = null;
} else {
pdisk_ = null;
pdiskBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorageVDisk_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk build() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk result = new com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk(this);
result.id_ = id_;
if (pdiskBuilder_ == null) {
result.pdisk_ = pdisk_;
} else {
result.pdisk_ = pdiskBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.hasPdisk()) {
mergePdisk(other.getPdisk());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk pdisk_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDiskOrBuilder> pdiskBuilder_;
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
* @return Whether the pdisk field is set.
*/
public boolean hasPdisk() {
return pdiskBuilder_ != null || pdisk_ != null;
}
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
* @return The pdisk.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk getPdisk() {
if (pdiskBuilder_ == null) {
return pdisk_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.getDefaultInstance() : pdisk_;
} else {
return pdiskBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
*/
public Builder setPdisk(com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk value) {
if (pdiskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pdisk_ = value;
onChanged();
} else {
pdiskBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
*/
public Builder setPdisk(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.Builder builderForValue) {
if (pdiskBuilder_ == null) {
pdisk_ = builderForValue.build();
onChanged();
} else {
pdiskBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
*/
public Builder mergePdisk(com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk value) {
if (pdiskBuilder_ == null) {
if (pdisk_ != null) {
pdisk_ =
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.newBuilder(pdisk_).mergeFrom(value).buildPartial();
} else {
pdisk_ = value;
}
onChanged();
} else {
pdiskBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
*/
public Builder clearPdisk() {
if (pdiskBuilder_ == null) {
pdisk_ = null;
onChanged();
} else {
pdisk_ = null;
pdiskBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.Builder getPdiskBuilder() {
onChanged();
return getPdiskFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDiskOrBuilder getPdiskOrBuilder() {
if (pdiskBuilder_ != null) {
return pdiskBuilder_.getMessageOrBuilder();
} else {
return pdisk_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.getDefaultInstance() : pdisk_;
}
}
/**
* .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDiskOrBuilder>
getPdiskFieldBuilder() {
if (pdiskBuilder_ == null) {
pdiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDisk.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePDiskOrBuilder>(
getPdisk(),
getParentForChildren(),
isClean());
pdisk_ = null;
}
return pdiskBuilder_;
}
@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:Ydb.Monitoring.LocationStorageVDisk)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.LocationStorageVDisk)
private static final com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocationStorageVDisk parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocationStorageVDisk(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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocationStorageGroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.LocationStorageGroup)
com.google.protobuf.MessageOrBuilder {
/**
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
* @return Whether the vdisk field is set.
*/
boolean hasVdisk();
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
* @return The vdisk.
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk getVdisk();
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDiskOrBuilder getVdiskOrBuilder();
}
/**
* Protobuf type {@code Ydb.Monitoring.LocationStorageGroup}
*/
public static final class LocationStorageGroup extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.LocationStorageGroup)
LocationStorageGroupOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocationStorageGroup.newBuilder() to construct.
private LocationStorageGroup(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocationStorageGroup() {
id_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationStorageGroup();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocationStorageGroup(
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();
id_ = s;
break;
}
case 18: {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.Builder subBuilder = null;
if (vdisk_ != null) {
subBuilder = vdisk_.toBuilder();
}
vdisk_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(vdisk_);
vdisk_ = 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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorageGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorageGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* 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;
}
}
/**
* 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 VDISK_FIELD_NUMBER = 2;
private com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk vdisk_;
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
* @return Whether the vdisk field is set.
*/
@java.lang.Override
public boolean hasVdisk() {
return vdisk_ != null;
}
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
* @return The vdisk.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk getVdisk() {
return vdisk_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.getDefaultInstance() : vdisk_;
}
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDiskOrBuilder getVdiskOrBuilder() {
return getVdisk();
}
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 (vdisk_ != null) {
output.writeMessage(2, getVdisk());
}
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 (vdisk_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getVdisk());
}
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup other = (com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup) obj;
if (!getId()
.equals(other.getId())) return false;
if (hasVdisk() != other.hasVdisk()) return false;
if (hasVdisk()) {
if (!getVdisk()
.equals(other.getVdisk())) 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();
if (hasVdisk()) {
hash = (37 * hash) + VDISK_FIELD_NUMBER;
hash = (53 * hash) + getVdisk().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup 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(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup 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 Ydb.Monitoring.LocationStorageGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.LocationStorageGroup)
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorageGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorageGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.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();
id_ = "";
if (vdiskBuilder_ == null) {
vdisk_ = null;
} else {
vdisk_ = null;
vdiskBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorageGroup_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup build() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup result = new com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup(this);
result.id_ = id_;
if (vdiskBuilder_ == null) {
result.vdisk_ = vdisk_;
} else {
result.vdisk_ = vdiskBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.hasVdisk()) {
mergeVdisk(other.getVdisk());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk vdisk_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDiskOrBuilder> vdiskBuilder_;
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
* @return Whether the vdisk field is set.
*/
public boolean hasVdisk() {
return vdiskBuilder_ != null || vdisk_ != null;
}
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
* @return The vdisk.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk getVdisk() {
if (vdiskBuilder_ == null) {
return vdisk_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.getDefaultInstance() : vdisk_;
} else {
return vdiskBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
*/
public Builder setVdisk(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk value) {
if (vdiskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
vdisk_ = value;
onChanged();
} else {
vdiskBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
*/
public Builder setVdisk(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.Builder builderForValue) {
if (vdiskBuilder_ == null) {
vdisk_ = builderForValue.build();
onChanged();
} else {
vdiskBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
*/
public Builder mergeVdisk(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk value) {
if (vdiskBuilder_ == null) {
if (vdisk_ != null) {
vdisk_ =
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.newBuilder(vdisk_).mergeFrom(value).buildPartial();
} else {
vdisk_ = value;
}
onChanged();
} else {
vdiskBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
*/
public Builder clearVdisk() {
if (vdiskBuilder_ == null) {
vdisk_ = null;
onChanged();
} else {
vdisk_ = null;
vdiskBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.Builder getVdiskBuilder() {
onChanged();
return getVdiskFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDiskOrBuilder getVdiskOrBuilder() {
if (vdiskBuilder_ != null) {
return vdiskBuilder_.getMessageOrBuilder();
} else {
return vdisk_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.getDefaultInstance() : vdisk_;
}
}
/**
* .Ydb.Monitoring.LocationStorageVDisk vdisk = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDiskOrBuilder>
getVdiskFieldBuilder() {
if (vdiskBuilder_ == null) {
vdiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDisk.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageVDiskOrBuilder>(
getVdisk(),
getParentForChildren(),
isClean());
vdisk_ = null;
}
return vdiskBuilder_;
}
@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:Ydb.Monitoring.LocationStorageGroup)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.LocationStorageGroup)
private static final com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocationStorageGroup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocationStorageGroup(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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocationStoragePoolOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.LocationStoragePool)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
* @return Whether the group field is set.
*/
boolean hasGroup();
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
* @return The group.
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup getGroup();
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroupOrBuilder getGroupOrBuilder();
}
/**
* Protobuf type {@code Ydb.Monitoring.LocationStoragePool}
*/
public static final class LocationStoragePool extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.LocationStoragePool)
LocationStoragePoolOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocationStoragePool.newBuilder() to construct.
private LocationStoragePool(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocationStoragePool() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationStoragePool();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocationStoragePool(
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: {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.Builder subBuilder = null;
if (group_ != null) {
subBuilder = group_.toBuilder();
}
group_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(group_);
group_ = 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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStoragePool_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStoragePool_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* 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;
}
}
/**
* 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 GROUP_FIELD_NUMBER = 2;
private com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup group_;
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
* @return Whether the group field is set.
*/
@java.lang.Override
public boolean hasGroup() {
return group_ != null;
}
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
* @return The group.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup getGroup() {
return group_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.getDefaultInstance() : group_;
}
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroupOrBuilder getGroupOrBuilder() {
return getGroup();
}
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 (group_ != null) {
output.writeMessage(2, getGroup());
}
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 (group_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getGroup());
}
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool other = (com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasGroup() != other.hasGroup()) return false;
if (hasGroup()) {
if (!getGroup()
.equals(other.getGroup())) 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();
if (hasGroup()) {
hash = (37 * hash) + GROUP_FIELD_NUMBER;
hash = (53 * hash) + getGroup().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool 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(com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool 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 Ydb.Monitoring.LocationStoragePool}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.LocationStoragePool)
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePoolOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStoragePool_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStoragePool_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.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_ = "";
if (groupBuilder_ == null) {
group_ = null;
} else {
group_ = null;
groupBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStoragePool_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool build() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool result = new com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool(this);
result.name_ = name_;
if (groupBuilder_ == null) {
result.group_ = group_;
} else {
result.group_ = groupBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasGroup()) {
mergeGroup(other.getGroup());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup group_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroupOrBuilder> groupBuilder_;
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
* @return Whether the group field is set.
*/
public boolean hasGroup() {
return groupBuilder_ != null || group_ != null;
}
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
* @return The group.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup getGroup() {
if (groupBuilder_ == null) {
return group_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.getDefaultInstance() : group_;
} else {
return groupBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
*/
public Builder setGroup(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup value) {
if (groupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
group_ = value;
onChanged();
} else {
groupBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
*/
public Builder setGroup(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.Builder builderForValue) {
if (groupBuilder_ == null) {
group_ = builderForValue.build();
onChanged();
} else {
groupBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
*/
public Builder mergeGroup(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup value) {
if (groupBuilder_ == null) {
if (group_ != null) {
group_ =
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.newBuilder(group_).mergeFrom(value).buildPartial();
} else {
group_ = value;
}
onChanged();
} else {
groupBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
*/
public Builder clearGroup() {
if (groupBuilder_ == null) {
group_ = null;
onChanged();
} else {
group_ = null;
groupBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.Builder getGroupBuilder() {
onChanged();
return getGroupFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroupOrBuilder getGroupOrBuilder() {
if (groupBuilder_ != null) {
return groupBuilder_.getMessageOrBuilder();
} else {
return group_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.getDefaultInstance() : group_;
}
}
/**
* .Ydb.Monitoring.LocationStorageGroup group = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroupOrBuilder>
getGroupFieldBuilder() {
if (groupBuilder_ == null) {
groupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroup.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageGroupOrBuilder>(
getGroup(),
getParentForChildren(),
isClean());
group_ = null;
}
return groupBuilder_;
}
@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:Ydb.Monitoring.LocationStoragePool)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.LocationStoragePool)
private static final com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocationStoragePool parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocationStoragePool(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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocationStorageOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.LocationStorage)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Monitoring.LocationNode node = 1;
* @return Whether the node field is set.
*/
boolean hasNode();
/**
* .Ydb.Monitoring.LocationNode node = 1;
* @return The node.
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode getNode();
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationNodeOrBuilder getNodeOrBuilder();
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
* @return Whether the pool field is set.
*/
boolean hasPool();
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
* @return The pool.
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool getPool();
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePoolOrBuilder getPoolOrBuilder();
}
/**
* Protobuf type {@code Ydb.Monitoring.LocationStorage}
*/
public static final class LocationStorage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.LocationStorage)
LocationStorageOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocationStorage.newBuilder() to construct.
private LocationStorage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocationStorage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationStorage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocationStorage(
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: {
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.Builder subBuilder = null;
if (node_ != null) {
subBuilder = node_.toBuilder();
}
node_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(node_);
node_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.Builder subBuilder = null;
if (pool_ != null) {
subBuilder = pool_.toBuilder();
}
pool_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pool_);
pool_ = 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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.Builder.class);
}
public static final int NODE_FIELD_NUMBER = 1;
private com.yandex.ydb.monitoring.MonitoringProtos.LocationNode node_;
/**
* .Ydb.Monitoring.LocationNode node = 1;
* @return Whether the node field is set.
*/
@java.lang.Override
public boolean hasNode() {
return node_ != null;
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
* @return The node.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationNode getNode() {
return node_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.getDefaultInstance() : node_;
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationNodeOrBuilder getNodeOrBuilder() {
return getNode();
}
public static final int POOL_FIELD_NUMBER = 2;
private com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool pool_;
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
* @return Whether the pool field is set.
*/
@java.lang.Override
public boolean hasPool() {
return pool_ != null;
}
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
* @return The pool.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool getPool() {
return pool_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.getDefaultInstance() : pool_;
}
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePoolOrBuilder getPoolOrBuilder() {
return getPool();
}
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 (node_ != null) {
output.writeMessage(1, getNode());
}
if (pool_ != null) {
output.writeMessage(2, getPool());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (node_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getNode());
}
if (pool_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPool());
}
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage other = (com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage) obj;
if (hasNode() != other.hasNode()) return false;
if (hasNode()) {
if (!getNode()
.equals(other.getNode())) return false;
}
if (hasPool() != other.hasPool()) return false;
if (hasPool()) {
if (!getPool()
.equals(other.getPool())) 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 (hasNode()) {
hash = (37 * hash) + NODE_FIELD_NUMBER;
hash = (53 * hash) + getNode().hashCode();
}
if (hasPool()) {
hash = (37 * hash) + POOL_FIELD_NUMBER;
hash = (53 * hash) + getPool().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage 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(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage 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 Ydb.Monitoring.LocationStorage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.LocationStorage)
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.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 (nodeBuilder_ == null) {
node_ = null;
} else {
node_ = null;
nodeBuilder_ = null;
}
if (poolBuilder_ == null) {
pool_ = null;
} else {
pool_ = null;
poolBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationStorage_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage build() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage result = new com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage(this);
if (nodeBuilder_ == null) {
result.node_ = node_;
} else {
result.node_ = nodeBuilder_.build();
}
if (poolBuilder_ == null) {
result.pool_ = pool_;
} else {
result.pool_ = poolBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.getDefaultInstance()) return this;
if (other.hasNode()) {
mergeNode(other.getNode());
}
if (other.hasPool()) {
mergePool(other.getPool());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.monitoring.MonitoringProtos.LocationNode node_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode, com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationNodeOrBuilder> nodeBuilder_;
/**
* .Ydb.Monitoring.LocationNode node = 1;
* @return Whether the node field is set.
*/
public boolean hasNode() {
return nodeBuilder_ != null || node_ != null;
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
* @return The node.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationNode getNode() {
if (nodeBuilder_ == null) {
return node_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.getDefaultInstance() : node_;
} else {
return nodeBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
public Builder setNode(com.yandex.ydb.monitoring.MonitoringProtos.LocationNode value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
onChanged();
} else {
nodeBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
public Builder setNode(
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.Builder builderForValue) {
if (nodeBuilder_ == null) {
node_ = builderForValue.build();
onChanged();
} else {
nodeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
public Builder mergeNode(com.yandex.ydb.monitoring.MonitoringProtos.LocationNode value) {
if (nodeBuilder_ == null) {
if (node_ != null) {
node_ =
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.newBuilder(node_).mergeFrom(value).buildPartial();
} else {
node_ = value;
}
onChanged();
} else {
nodeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
public Builder clearNode() {
if (nodeBuilder_ == null) {
node_ = null;
onChanged();
} else {
node_ = null;
nodeBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.Builder getNodeBuilder() {
onChanged();
return getNodeFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationNodeOrBuilder getNodeOrBuilder() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilder();
} else {
return node_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.getDefaultInstance() : node_;
}
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode, com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationNodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode, com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationNodeOrBuilder>(
getNode(),
getParentForChildren(),
isClean());
node_ = null;
}
return nodeBuilder_;
}
private com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool pool_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePoolOrBuilder> poolBuilder_;
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
* @return Whether the pool field is set.
*/
public boolean hasPool() {
return poolBuilder_ != null || pool_ != null;
}
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
* @return The pool.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool getPool() {
if (poolBuilder_ == null) {
return pool_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.getDefaultInstance() : pool_;
} else {
return poolBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
*/
public Builder setPool(com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool value) {
if (poolBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pool_ = value;
onChanged();
} else {
poolBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
*/
public Builder setPool(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.Builder builderForValue) {
if (poolBuilder_ == null) {
pool_ = builderForValue.build();
onChanged();
} else {
poolBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
*/
public Builder mergePool(com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool value) {
if (poolBuilder_ == null) {
if (pool_ != null) {
pool_ =
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.newBuilder(pool_).mergeFrom(value).buildPartial();
} else {
pool_ = value;
}
onChanged();
} else {
poolBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
*/
public Builder clearPool() {
if (poolBuilder_ == null) {
pool_ = null;
onChanged();
} else {
pool_ = null;
poolBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.Builder getPoolBuilder() {
onChanged();
return getPoolFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePoolOrBuilder getPoolOrBuilder() {
if (poolBuilder_ != null) {
return poolBuilder_.getMessageOrBuilder();
} else {
return pool_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.getDefaultInstance() : pool_;
}
}
/**
* .Ydb.Monitoring.LocationStoragePool pool = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePoolOrBuilder>
getPoolFieldBuilder() {
if (poolBuilder_ == null) {
poolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePool.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStoragePoolOrBuilder>(
getPool(),
getParentForChildren(),
isClean());
pool_ = null;
}
return poolBuilder_;
}
@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:Ydb.Monitoring.LocationStorage)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.LocationStorage)
private static final com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocationStorage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocationStorage(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 com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocationComputePoolOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.LocationComputePool)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
* Protobuf type {@code Ydb.Monitoring.LocationComputePool}
*/
public static final class LocationComputePool extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.LocationComputePool)
LocationComputePoolOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocationComputePool.newBuilder() to construct.
private LocationComputePool(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocationComputePool() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationComputePool();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocationComputePool(
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;
}
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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationComputePool_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationComputePool_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* 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;
}
}
/**
* 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;
}
}
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_);
}
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_);
}
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool other = (com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool) obj;
if (!getName()
.equals(other.getName())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool 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(com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool 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 Ydb.Monitoring.LocationComputePool}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.LocationComputePool)
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePoolOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationComputePool_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationComputePool_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationComputePool_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool build() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool result = new com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool(this);
result.name_ = name_;
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
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 {
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* 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;
}
@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:Ydb.Monitoring.LocationComputePool)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.LocationComputePool)
private static final com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocationComputePool parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocationComputePool(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 com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocationComputeTabletOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.LocationComputeTablet)
com.google.protobuf.MessageOrBuilder {
/**
* string type = 1;
* @return The type.
*/
java.lang.String getType();
/**
* string type = 1;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* repeated string id = 2;
* @return A list containing the id.
*/
java.util.List
getIdList();
/**
* repeated string id = 2;
* @return The count of id.
*/
int getIdCount();
/**
* repeated string id = 2;
* @param index The index of the element to return.
* @return The id at the given index.
*/
java.lang.String getId(int index);
/**
* repeated string id = 2;
* @param index The index of the value to return.
* @return The bytes of the id at the given index.
*/
com.google.protobuf.ByteString
getIdBytes(int index);
/**
* uint32 count = 3;
* @return The count.
*/
int getCount();
}
/**
* Protobuf type {@code Ydb.Monitoring.LocationComputeTablet}
*/
public static final class LocationComputeTablet extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.LocationComputeTablet)
LocationComputeTabletOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocationComputeTablet.newBuilder() to construct.
private LocationComputeTablet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocationComputeTablet() {
type_ = "";
id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationComputeTablet();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocationComputeTablet(
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();
type_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
id_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
id_.add(s);
break;
}
case 24: {
count_ = input.readUInt32();
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)) {
id_ = id_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationComputeTablet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationComputeTablet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object type_;
/**
* string type = 1;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
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();
type_ = s;
return s;
}
}
/**
* string type = 1;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList id_;
/**
* repeated string id = 2;
* @return A list containing the id.
*/
public com.google.protobuf.ProtocolStringList
getIdList() {
return id_;
}
/**
* repeated string id = 2;
* @return The count of id.
*/
public int getIdCount() {
return id_.size();
}
/**
* repeated string id = 2;
* @param index The index of the element to return.
* @return The id at the given index.
*/
public java.lang.String getId(int index) {
return id_.get(index);
}
/**
* repeated string id = 2;
* @param index The index of the value to return.
* @return The bytes of the id at the given index.
*/
public com.google.protobuf.ByteString
getIdBytes(int index) {
return id_.getByteString(index);
}
public static final int COUNT_FIELD_NUMBER = 3;
private int count_;
/**
* uint32 count = 3;
* @return The count.
*/
@java.lang.Override
public int getCount() {
return count_;
}
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(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
for (int i = 0; i < id_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_.getRaw(i));
}
if (count_ != 0) {
output.writeUInt32(3, count_);
}
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(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
{
int dataSize = 0;
for (int i = 0; i < id_.size(); i++) {
dataSize += computeStringSizeNoTag(id_.getRaw(i));
}
size += dataSize;
size += 1 * getIdList().size();
}
if (count_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, count_);
}
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet other = (com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet) obj;
if (!getType()
.equals(other.getType())) return false;
if (!getIdList()
.equals(other.getIdList())) return false;
if (getCount()
!= other.getCount()) 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) + getType().hashCode();
if (getIdCount() > 0) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getIdList().hashCode();
}
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + getCount();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet 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(com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet 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 Ydb.Monitoring.LocationComputeTablet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.LocationComputeTablet)
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTabletOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationComputeTablet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationComputeTablet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.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_ = "";
id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
count_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationComputeTablet_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet build() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet result = new com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet(this);
int from_bitField0_ = bitField0_;
result.type_ = type_;
if (((bitField0_ & 0x00000001) != 0)) {
id_ = id_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.id_ = id_;
result.count_ = count_;
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.getDefaultInstance()) return this;
if (!other.getType().isEmpty()) {
type_ = other.type_;
onChanged();
}
if (!other.id_.isEmpty()) {
if (id_.isEmpty()) {
id_ = other.id_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIdIsMutable();
id_.addAll(other.id_);
}
onChanged();
}
if (other.getCount() != 0) {
setCount(other.getCount());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object type_ = "";
/**
* string type = 1;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string type = 1;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
* string type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
* string type = 1;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIdIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
id_ = new com.google.protobuf.LazyStringArrayList(id_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string id = 2;
* @return A list containing the id.
*/
public com.google.protobuf.ProtocolStringList
getIdList() {
return id_.getUnmodifiableView();
}
/**
* repeated string id = 2;
* @return The count of id.
*/
public int getIdCount() {
return id_.size();
}
/**
* repeated string id = 2;
* @param index The index of the element to return.
* @return The id at the given index.
*/
public java.lang.String getId(int index) {
return id_.get(index);
}
/**
* repeated string id = 2;
* @param index The index of the value to return.
* @return The bytes of the id at the given index.
*/
public com.google.protobuf.ByteString
getIdBytes(int index) {
return id_.getByteString(index);
}
/**
* repeated string id = 2;
* @param index The index to set the value at.
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.set(index, value);
onChanged();
return this;
}
/**
* repeated string id = 2;
* @param value The id to add.
* @return This builder for chaining.
*/
public Builder addId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.add(value);
onChanged();
return this;
}
/**
* repeated string id = 2;
* @param values The id to add.
* @return This builder for chaining.
*/
public Builder addAllId(
java.lang.Iterable values) {
ensureIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, id_);
onChanged();
return this;
}
/**
* repeated string id = 2;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string id = 2;
* @param value The bytes of the id to add.
* @return This builder for chaining.
*/
public Builder addIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIdIsMutable();
id_.add(value);
onChanged();
return this;
}
private int count_ ;
/**
* uint32 count = 3;
* @return The count.
*/
@java.lang.Override
public int getCount() {
return count_;
}
/**
* uint32 count = 3;
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(int value) {
count_ = value;
onChanged();
return this;
}
/**
* uint32 count = 3;
* @return This builder for chaining.
*/
public Builder clearCount() {
count_ = 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:Ydb.Monitoring.LocationComputeTablet)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.LocationComputeTablet)
private static final com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocationComputeTablet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocationComputeTablet(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 com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocationComputeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.LocationCompute)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Monitoring.LocationNode node = 1;
* @return Whether the node field is set.
*/
boolean hasNode();
/**
* .Ydb.Monitoring.LocationNode node = 1;
* @return The node.
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode getNode();
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationNodeOrBuilder getNodeOrBuilder();
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
* @return Whether the pool field is set.
*/
boolean hasPool();
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
* @return The pool.
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool getPool();
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePoolOrBuilder getPoolOrBuilder();
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
* @return Whether the tablet field is set.
*/
boolean hasTablet();
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
* @return The tablet.
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet getTablet();
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTabletOrBuilder getTabletOrBuilder();
}
/**
* Protobuf type {@code Ydb.Monitoring.LocationCompute}
*/
public static final class LocationCompute extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.LocationCompute)
LocationComputeOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocationCompute.newBuilder() to construct.
private LocationCompute(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocationCompute() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationCompute();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocationCompute(
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: {
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.Builder subBuilder = null;
if (node_ != null) {
subBuilder = node_.toBuilder();
}
node_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(node_);
node_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.Builder subBuilder = null;
if (pool_ != null) {
subBuilder = pool_.toBuilder();
}
pool_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pool_);
pool_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.Builder subBuilder = null;
if (tablet_ != null) {
subBuilder = tablet_.toBuilder();
}
tablet_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tablet_);
tablet_ = 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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationCompute_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationCompute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.Builder.class);
}
public static final int NODE_FIELD_NUMBER = 1;
private com.yandex.ydb.monitoring.MonitoringProtos.LocationNode node_;
/**
* .Ydb.Monitoring.LocationNode node = 1;
* @return Whether the node field is set.
*/
@java.lang.Override
public boolean hasNode() {
return node_ != null;
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
* @return The node.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationNode getNode() {
return node_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.getDefaultInstance() : node_;
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationNodeOrBuilder getNodeOrBuilder() {
return getNode();
}
public static final int POOL_FIELD_NUMBER = 2;
private com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool pool_;
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
* @return Whether the pool field is set.
*/
@java.lang.Override
public boolean hasPool() {
return pool_ != null;
}
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
* @return The pool.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool getPool() {
return pool_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.getDefaultInstance() : pool_;
}
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePoolOrBuilder getPoolOrBuilder() {
return getPool();
}
public static final int TABLET_FIELD_NUMBER = 3;
private com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet tablet_;
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
* @return Whether the tablet field is set.
*/
@java.lang.Override
public boolean hasTablet() {
return tablet_ != null;
}
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
* @return The tablet.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet getTablet() {
return tablet_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.getDefaultInstance() : tablet_;
}
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTabletOrBuilder getTabletOrBuilder() {
return getTablet();
}
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 (node_ != null) {
output.writeMessage(1, getNode());
}
if (pool_ != null) {
output.writeMessage(2, getPool());
}
if (tablet_ != null) {
output.writeMessage(3, getTablet());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (node_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getNode());
}
if (pool_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPool());
}
if (tablet_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTablet());
}
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute other = (com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute) obj;
if (hasNode() != other.hasNode()) return false;
if (hasNode()) {
if (!getNode()
.equals(other.getNode())) return false;
}
if (hasPool() != other.hasPool()) return false;
if (hasPool()) {
if (!getPool()
.equals(other.getPool())) return false;
}
if (hasTablet() != other.hasTablet()) return false;
if (hasTablet()) {
if (!getTablet()
.equals(other.getTablet())) 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 (hasNode()) {
hash = (37 * hash) + NODE_FIELD_NUMBER;
hash = (53 * hash) + getNode().hashCode();
}
if (hasPool()) {
hash = (37 * hash) + POOL_FIELD_NUMBER;
hash = (53 * hash) + getPool().hashCode();
}
if (hasTablet()) {
hash = (37 * hash) + TABLET_FIELD_NUMBER;
hash = (53 * hash) + getTablet().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute 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(com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute 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 Ydb.Monitoring.LocationCompute}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.LocationCompute)
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationCompute_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationCompute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.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 (nodeBuilder_ == null) {
node_ = null;
} else {
node_ = null;
nodeBuilder_ = null;
}
if (poolBuilder_ == null) {
pool_ = null;
} else {
pool_ = null;
poolBuilder_ = null;
}
if (tabletBuilder_ == null) {
tablet_ = null;
} else {
tablet_ = null;
tabletBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationCompute_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute build() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute result = new com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute(this);
if (nodeBuilder_ == null) {
result.node_ = node_;
} else {
result.node_ = nodeBuilder_.build();
}
if (poolBuilder_ == null) {
result.pool_ = pool_;
} else {
result.pool_ = poolBuilder_.build();
}
if (tabletBuilder_ == null) {
result.tablet_ = tablet_;
} else {
result.tablet_ = tabletBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.getDefaultInstance()) return this;
if (other.hasNode()) {
mergeNode(other.getNode());
}
if (other.hasPool()) {
mergePool(other.getPool());
}
if (other.hasTablet()) {
mergeTablet(other.getTablet());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.monitoring.MonitoringProtos.LocationNode node_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode, com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationNodeOrBuilder> nodeBuilder_;
/**
* .Ydb.Monitoring.LocationNode node = 1;
* @return Whether the node field is set.
*/
public boolean hasNode() {
return nodeBuilder_ != null || node_ != null;
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
* @return The node.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationNode getNode() {
if (nodeBuilder_ == null) {
return node_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.getDefaultInstance() : node_;
} else {
return nodeBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
public Builder setNode(com.yandex.ydb.monitoring.MonitoringProtos.LocationNode value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
onChanged();
} else {
nodeBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
public Builder setNode(
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.Builder builderForValue) {
if (nodeBuilder_ == null) {
node_ = builderForValue.build();
onChanged();
} else {
nodeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
public Builder mergeNode(com.yandex.ydb.monitoring.MonitoringProtos.LocationNode value) {
if (nodeBuilder_ == null) {
if (node_ != null) {
node_ =
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.newBuilder(node_).mergeFrom(value).buildPartial();
} else {
node_ = value;
}
onChanged();
} else {
nodeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
public Builder clearNode() {
if (nodeBuilder_ == null) {
node_ = null;
onChanged();
} else {
node_ = null;
nodeBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.Builder getNodeBuilder() {
onChanged();
return getNodeFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationNodeOrBuilder getNodeOrBuilder() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilder();
} else {
return node_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.getDefaultInstance() : node_;
}
}
/**
* .Ydb.Monitoring.LocationNode node = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode, com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationNodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationNode, com.yandex.ydb.monitoring.MonitoringProtos.LocationNode.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationNodeOrBuilder>(
getNode(),
getParentForChildren(),
isClean());
node_ = null;
}
return nodeBuilder_;
}
private com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool pool_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePoolOrBuilder> poolBuilder_;
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
* @return Whether the pool field is set.
*/
public boolean hasPool() {
return poolBuilder_ != null || pool_ != null;
}
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
* @return The pool.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool getPool() {
if (poolBuilder_ == null) {
return pool_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.getDefaultInstance() : pool_;
} else {
return poolBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
*/
public Builder setPool(com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool value) {
if (poolBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pool_ = value;
onChanged();
} else {
poolBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
*/
public Builder setPool(
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.Builder builderForValue) {
if (poolBuilder_ == null) {
pool_ = builderForValue.build();
onChanged();
} else {
poolBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
*/
public Builder mergePool(com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool value) {
if (poolBuilder_ == null) {
if (pool_ != null) {
pool_ =
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.newBuilder(pool_).mergeFrom(value).buildPartial();
} else {
pool_ = value;
}
onChanged();
} else {
poolBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
*/
public Builder clearPool() {
if (poolBuilder_ == null) {
pool_ = null;
onChanged();
} else {
pool_ = null;
poolBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.Builder getPoolBuilder() {
onChanged();
return getPoolFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePoolOrBuilder getPoolOrBuilder() {
if (poolBuilder_ != null) {
return poolBuilder_.getMessageOrBuilder();
} else {
return pool_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.getDefaultInstance() : pool_;
}
}
/**
* .Ydb.Monitoring.LocationComputePool pool = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePoolOrBuilder>
getPoolFieldBuilder() {
if (poolBuilder_ == null) {
poolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePool.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputePoolOrBuilder>(
getPool(),
getParentForChildren(),
isClean());
pool_ = null;
}
return poolBuilder_;
}
private com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet tablet_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTabletOrBuilder> tabletBuilder_;
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
* @return Whether the tablet field is set.
*/
public boolean hasTablet() {
return tabletBuilder_ != null || tablet_ != null;
}
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
* @return The tablet.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet getTablet() {
if (tabletBuilder_ == null) {
return tablet_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.getDefaultInstance() : tablet_;
} else {
return tabletBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
*/
public Builder setTablet(com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet value) {
if (tabletBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tablet_ = value;
onChanged();
} else {
tabletBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
*/
public Builder setTablet(
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.Builder builderForValue) {
if (tabletBuilder_ == null) {
tablet_ = builderForValue.build();
onChanged();
} else {
tabletBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
*/
public Builder mergeTablet(com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet value) {
if (tabletBuilder_ == null) {
if (tablet_ != null) {
tablet_ =
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.newBuilder(tablet_).mergeFrom(value).buildPartial();
} else {
tablet_ = value;
}
onChanged();
} else {
tabletBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
*/
public Builder clearTablet() {
if (tabletBuilder_ == null) {
tablet_ = null;
onChanged();
} else {
tablet_ = null;
tabletBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.Builder getTabletBuilder() {
onChanged();
return getTabletFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTabletOrBuilder getTabletOrBuilder() {
if (tabletBuilder_ != null) {
return tabletBuilder_.getMessageOrBuilder();
} else {
return tablet_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.getDefaultInstance() : tablet_;
}
}
/**
* .Ydb.Monitoring.LocationComputeTablet tablet = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTabletOrBuilder>
getTabletFieldBuilder() {
if (tabletBuilder_ == null) {
tabletBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTablet.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeTabletOrBuilder>(
getTablet(),
getParentForChildren(),
isClean());
tablet_ = null;
}
return tabletBuilder_;
}
@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:Ydb.Monitoring.LocationCompute)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.LocationCompute)
private static final com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocationCompute parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocationCompute(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 com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocationDatabaseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.LocationDatabase)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
* Protobuf type {@code Ydb.Monitoring.LocationDatabase}
*/
public static final class LocationDatabase extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.LocationDatabase)
LocationDatabaseOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocationDatabase.newBuilder() to construct.
private LocationDatabase(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocationDatabase() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationDatabase();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocationDatabase(
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;
}
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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationDatabase_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationDatabase_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* 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;
}
}
/**
* 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;
}
}
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_);
}
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_);
}
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase other = (com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase) obj;
if (!getName()
.equals(other.getName())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase 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 com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase 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(com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase 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 Ydb.Monitoring.LocationDatabase}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.LocationDatabase)
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabaseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationDatabase_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationDatabase_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.class, com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_LocationDatabase_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase build() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase result = new com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase(this);
result.name_ = name_;
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 com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
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 {
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* 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;
}
@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:Ydb.Monitoring.LocationDatabase)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.LocationDatabase)
private static final com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocationDatabase parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LocationDatabase(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 com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocationOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.Location)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
* @return Whether the storage field is set.
*/
boolean hasStorage();
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
* @return The storage.
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage getStorage();
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageOrBuilder getStorageOrBuilder();
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
* @return Whether the compute field is set.
*/
boolean hasCompute();
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
* @return The compute.
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute getCompute();
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeOrBuilder getComputeOrBuilder();
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
* @return Whether the database field is set.
*/
boolean hasDatabase();
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
* @return The database.
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase getDatabase();
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabaseOrBuilder getDatabaseOrBuilder();
}
/**
* Protobuf type {@code Ydb.Monitoring.Location}
*/
public static final class Location extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.Location)
LocationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Location.newBuilder() to construct.
private Location(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Location() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Location();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Location(
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: {
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.Builder subBuilder = null;
if (storage_ != null) {
subBuilder = storage_.toBuilder();
}
storage_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(storage_);
storage_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.Builder subBuilder = null;
if (compute_ != null) {
subBuilder = compute_.toBuilder();
}
compute_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(compute_);
compute_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.Builder subBuilder = null;
if (database_ != null) {
subBuilder = database_.toBuilder();
}
database_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(database_);
database_ = 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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_Location_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.Location.class, com.yandex.ydb.monitoring.MonitoringProtos.Location.Builder.class);
}
public static final int STORAGE_FIELD_NUMBER = 1;
private com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage storage_;
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
* @return Whether the storage field is set.
*/
@java.lang.Override
public boolean hasStorage() {
return storage_ != null;
}
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
* @return The storage.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage getStorage() {
return storage_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.getDefaultInstance() : storage_;
}
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageOrBuilder getStorageOrBuilder() {
return getStorage();
}
public static final int COMPUTE_FIELD_NUMBER = 2;
private com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute compute_;
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
* @return Whether the compute field is set.
*/
@java.lang.Override
public boolean hasCompute() {
return compute_ != null;
}
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
* @return The compute.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute getCompute() {
return compute_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.getDefaultInstance() : compute_;
}
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeOrBuilder getComputeOrBuilder() {
return getCompute();
}
public static final int DATABASE_FIELD_NUMBER = 3;
private com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase database_;
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
* @return Whether the database field is set.
*/
@java.lang.Override
public boolean hasDatabase() {
return database_ != null;
}
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
* @return The database.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase getDatabase() {
return database_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.getDefaultInstance() : database_;
}
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabaseOrBuilder getDatabaseOrBuilder() {
return getDatabase();
}
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 (storage_ != null) {
output.writeMessage(1, getStorage());
}
if (compute_ != null) {
output.writeMessage(2, getCompute());
}
if (database_ != null) {
output.writeMessage(3, getDatabase());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (storage_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStorage());
}
if (compute_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCompute());
}
if (database_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getDatabase());
}
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 com.yandex.ydb.monitoring.MonitoringProtos.Location)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.Location other = (com.yandex.ydb.monitoring.MonitoringProtos.Location) obj;
if (hasStorage() != other.hasStorage()) return false;
if (hasStorage()) {
if (!getStorage()
.equals(other.getStorage())) return false;
}
if (hasCompute() != other.hasCompute()) return false;
if (hasCompute()) {
if (!getCompute()
.equals(other.getCompute())) return false;
}
if (hasDatabase() != other.hasDatabase()) return false;
if (hasDatabase()) {
if (!getDatabase()
.equals(other.getDatabase())) 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 (hasStorage()) {
hash = (37 * hash) + STORAGE_FIELD_NUMBER;
hash = (53 * hash) + getStorage().hashCode();
}
if (hasCompute()) {
hash = (37 * hash) + COMPUTE_FIELD_NUMBER;
hash = (53 * hash) + getCompute().hashCode();
}
if (hasDatabase()) {
hash = (37 * hash) + DATABASE_FIELD_NUMBER;
hash = (53 * hash) + getDatabase().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.Location parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.Location parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.Location parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.Location parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.Location parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.Location parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.Location parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.Location 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 com.yandex.ydb.monitoring.MonitoringProtos.Location parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.Location 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 com.yandex.ydb.monitoring.MonitoringProtos.Location parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.Location 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(com.yandex.ydb.monitoring.MonitoringProtos.Location 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 Ydb.Monitoring.Location}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.Location)
com.yandex.ydb.monitoring.MonitoringProtos.LocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_Location_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.Location.class, com.yandex.ydb.monitoring.MonitoringProtos.Location.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.Location.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 (storageBuilder_ == null) {
storage_ = null;
} else {
storage_ = null;
storageBuilder_ = null;
}
if (computeBuilder_ == null) {
compute_ = null;
} else {
compute_ = null;
computeBuilder_ = null;
}
if (databaseBuilder_ == null) {
database_ = null;
} else {
database_ = null;
databaseBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_Location_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.Location getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.Location.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.Location build() {
com.yandex.ydb.monitoring.MonitoringProtos.Location result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.Location buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.Location result = new com.yandex.ydb.monitoring.MonitoringProtos.Location(this);
if (storageBuilder_ == null) {
result.storage_ = storage_;
} else {
result.storage_ = storageBuilder_.build();
}
if (computeBuilder_ == null) {
result.compute_ = compute_;
} else {
result.compute_ = computeBuilder_.build();
}
if (databaseBuilder_ == null) {
result.database_ = database_;
} else {
result.database_ = databaseBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.Location) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.Location)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.Location other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.Location.getDefaultInstance()) return this;
if (other.hasStorage()) {
mergeStorage(other.getStorage());
}
if (other.hasCompute()) {
mergeCompute(other.getCompute());
}
if (other.hasDatabase()) {
mergeDatabase(other.getDatabase());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.Location parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.Location) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage storage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageOrBuilder> storageBuilder_;
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
* @return Whether the storage field is set.
*/
public boolean hasStorage() {
return storageBuilder_ != null || storage_ != null;
}
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
* @return The storage.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage getStorage() {
if (storageBuilder_ == null) {
return storage_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.getDefaultInstance() : storage_;
} else {
return storageBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
*/
public Builder setStorage(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage value) {
if (storageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
storage_ = value;
onChanged();
} else {
storageBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
*/
public Builder setStorage(
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.Builder builderForValue) {
if (storageBuilder_ == null) {
storage_ = builderForValue.build();
onChanged();
} else {
storageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
*/
public Builder mergeStorage(com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage value) {
if (storageBuilder_ == null) {
if (storage_ != null) {
storage_ =
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.newBuilder(storage_).mergeFrom(value).buildPartial();
} else {
storage_ = value;
}
onChanged();
} else {
storageBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
*/
public Builder clearStorage() {
if (storageBuilder_ == null) {
storage_ = null;
onChanged();
} else {
storage_ = null;
storageBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.Builder getStorageBuilder() {
onChanged();
return getStorageFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageOrBuilder getStorageOrBuilder() {
if (storageBuilder_ != null) {
return storageBuilder_.getMessageOrBuilder();
} else {
return storage_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.getDefaultInstance() : storage_;
}
}
/**
* .Ydb.Monitoring.LocationStorage storage = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageOrBuilder>
getStorageFieldBuilder() {
if (storageBuilder_ == null) {
storageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorage.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationStorageOrBuilder>(
getStorage(),
getParentForChildren(),
isClean());
storage_ = null;
}
return storageBuilder_;
}
private com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute compute_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute, com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeOrBuilder> computeBuilder_;
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
* @return Whether the compute field is set.
*/
public boolean hasCompute() {
return computeBuilder_ != null || compute_ != null;
}
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
* @return The compute.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute getCompute() {
if (computeBuilder_ == null) {
return compute_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.getDefaultInstance() : compute_;
} else {
return computeBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
*/
public Builder setCompute(com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute value) {
if (computeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
compute_ = value;
onChanged();
} else {
computeBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
*/
public Builder setCompute(
com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.Builder builderForValue) {
if (computeBuilder_ == null) {
compute_ = builderForValue.build();
onChanged();
} else {
computeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
*/
public Builder mergeCompute(com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute value) {
if (computeBuilder_ == null) {
if (compute_ != null) {
compute_ =
com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.newBuilder(compute_).mergeFrom(value).buildPartial();
} else {
compute_ = value;
}
onChanged();
} else {
computeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
*/
public Builder clearCompute() {
if (computeBuilder_ == null) {
compute_ = null;
onChanged();
} else {
compute_ = null;
computeBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.Builder getComputeBuilder() {
onChanged();
return getComputeFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeOrBuilder getComputeOrBuilder() {
if (computeBuilder_ != null) {
return computeBuilder_.getMessageOrBuilder();
} else {
return compute_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.getDefaultInstance() : compute_;
}
}
/**
* .Ydb.Monitoring.LocationCompute compute = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute, com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeOrBuilder>
getComputeFieldBuilder() {
if (computeBuilder_ == null) {
computeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute, com.yandex.ydb.monitoring.MonitoringProtos.LocationCompute.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationComputeOrBuilder>(
getCompute(),
getParentForChildren(),
isClean());
compute_ = null;
}
return computeBuilder_;
}
private com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase database_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase, com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabaseOrBuilder> databaseBuilder_;
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
* @return Whether the database field is set.
*/
public boolean hasDatabase() {
return databaseBuilder_ != null || database_ != null;
}
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
* @return The database.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase getDatabase() {
if (databaseBuilder_ == null) {
return database_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.getDefaultInstance() : database_;
} else {
return databaseBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
*/
public Builder setDatabase(com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase value) {
if (databaseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
database_ = value;
onChanged();
} else {
databaseBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
*/
public Builder setDatabase(
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.Builder builderForValue) {
if (databaseBuilder_ == null) {
database_ = builderForValue.build();
onChanged();
} else {
databaseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
*/
public Builder mergeDatabase(com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase value) {
if (databaseBuilder_ == null) {
if (database_ != null) {
database_ =
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.newBuilder(database_).mergeFrom(value).buildPartial();
} else {
database_ = value;
}
onChanged();
} else {
databaseBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
*/
public Builder clearDatabase() {
if (databaseBuilder_ == null) {
database_ = null;
onChanged();
} else {
database_ = null;
databaseBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.Builder getDatabaseBuilder() {
onChanged();
return getDatabaseFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabaseOrBuilder getDatabaseOrBuilder() {
if (databaseBuilder_ != null) {
return databaseBuilder_.getMessageOrBuilder();
} else {
return database_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.getDefaultInstance() : database_;
}
}
/**
* .Ydb.Monitoring.LocationDatabase database = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase, com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabaseOrBuilder>
getDatabaseFieldBuilder() {
if (databaseBuilder_ == null) {
databaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase, com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabase.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationDatabaseOrBuilder>(
getDatabase(),
getParentForChildren(),
isClean());
database_ = null;
}
return databaseBuilder_;
}
@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:Ydb.Monitoring.Location)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.Location)
private static final com.yandex.ydb.monitoring.MonitoringProtos.Location DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.Location();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.Location getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Location parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Location(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 com.yandex.ydb.monitoring.MonitoringProtos.Location getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IssueLogOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.IssueLog)
com.google.protobuf.MessageOrBuilder {
/**
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* .Ydb.Monitoring.StatusFlag.Status status = 2;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* .Ydb.Monitoring.StatusFlag.Status status = 2;
* @return The status.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getStatus();
/**
* string message = 3;
* @return The message.
*/
java.lang.String getMessage();
/**
* string message = 3;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
* .Ydb.Monitoring.Location location = 4;
* @return Whether the location field is set.
*/
boolean hasLocation();
/**
* .Ydb.Monitoring.Location location = 4;
* @return The location.
*/
com.yandex.ydb.monitoring.MonitoringProtos.Location getLocation();
/**
* .Ydb.Monitoring.Location location = 4;
*/
com.yandex.ydb.monitoring.MonitoringProtos.LocationOrBuilder getLocationOrBuilder();
/**
* repeated string reason = 5;
* @return A list containing the reason.
*/
java.util.List
getReasonList();
/**
* repeated string reason = 5;
* @return The count of reason.
*/
int getReasonCount();
/**
* repeated string reason = 5;
* @param index The index of the element to return.
* @return The reason at the given index.
*/
java.lang.String getReason(int index);
/**
* repeated string reason = 5;
* @param index The index of the value to return.
* @return The bytes of the reason at the given index.
*/
com.google.protobuf.ByteString
getReasonBytes(int index);
/**
* string type = 6;
* @return The type.
*/
java.lang.String getType();
/**
* string type = 6;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* uint32 level = 7;
* @return The level.
*/
int getLevel();
}
/**
* Protobuf type {@code Ydb.Monitoring.IssueLog}
*/
public static final class IssueLog extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.IssueLog)
IssueLogOrBuilder {
private static final long serialVersionUID = 0L;
// Use IssueLog.newBuilder() to construct.
private IssueLog(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IssueLog() {
id_ = "";
status_ = 0;
message_ = "";
reason_ = com.google.protobuf.LazyStringArrayList.EMPTY;
type_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IssueLog();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IssueLog(
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 16: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
break;
}
case 34: {
com.yandex.ydb.monitoring.MonitoringProtos.Location.Builder subBuilder = null;
if (location_ != null) {
subBuilder = location_.toBuilder();
}
location_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.Location.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(location_);
location_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
reason_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
reason_.add(s);
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
type_ = s;
break;
}
case 56: {
level_ = input.readUInt32();
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)) {
reason_ = reason_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_IssueLog_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_IssueLog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.class, com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* 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;
}
}
/**
* 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 STATUS_FIELD_NUMBER = 2;
private int status_;
/**
* .Ydb.Monitoring.StatusFlag.Status status = 2;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status status = 2;
* @return The status.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getStatus() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(status_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
public static final int MESSAGE_FIELD_NUMBER = 3;
private volatile java.lang.Object message_;
/**
* string message = 3;
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
* string message = 3;
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCATION_FIELD_NUMBER = 4;
private com.yandex.ydb.monitoring.MonitoringProtos.Location location_;
/**
* .Ydb.Monitoring.Location location = 4;
* @return Whether the location field is set.
*/
@java.lang.Override
public boolean hasLocation() {
return location_ != null;
}
/**
* .Ydb.Monitoring.Location location = 4;
* @return The location.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.Location getLocation() {
return location_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.Location.getDefaultInstance() : location_;
}
/**
* .Ydb.Monitoring.Location location = 4;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.LocationOrBuilder getLocationOrBuilder() {
return getLocation();
}
public static final int REASON_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList reason_;
/**
* repeated string reason = 5;
* @return A list containing the reason.
*/
public com.google.protobuf.ProtocolStringList
getReasonList() {
return reason_;
}
/**
* repeated string reason = 5;
* @return The count of reason.
*/
public int getReasonCount() {
return reason_.size();
}
/**
* repeated string reason = 5;
* @param index The index of the element to return.
* @return The reason at the given index.
*/
public java.lang.String getReason(int index) {
return reason_.get(index);
}
/**
* repeated string reason = 5;
* @param index The index of the value to return.
* @return The bytes of the reason at the given index.
*/
public com.google.protobuf.ByteString
getReasonBytes(int index) {
return reason_.getByteString(index);
}
public static final int TYPE_FIELD_NUMBER = 6;
private volatile java.lang.Object type_;
/**
* string type = 6;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
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();
type_ = s;
return s;
}
}
/**
* string type = 6;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LEVEL_FIELD_NUMBER = 7;
private int level_;
/**
* uint32 level = 7;
* @return The level.
*/
@java.lang.Override
public int getLevel() {
return level_;
}
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 (status_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
output.writeEnum(2, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_);
}
if (location_ != null) {
output.writeMessage(4, getLocation());
}
for (int i = 0; i < reason_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reason_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, type_);
}
if (level_ != 0) {
output.writeUInt32(7, level_);
}
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 (status_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_);
}
if (location_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLocation());
}
{
int dataSize = 0;
for (int i = 0; i < reason_.size(); i++) {
dataSize += computeStringSizeNoTag(reason_.getRaw(i));
}
size += dataSize;
size += 1 * getReasonList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, type_);
}
if (level_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, level_);
}
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 com.yandex.ydb.monitoring.MonitoringProtos.IssueLog)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.IssueLog other = (com.yandex.ydb.monitoring.MonitoringProtos.IssueLog) obj;
if (!getId()
.equals(other.getId())) return false;
if (status_ != other.status_) return false;
if (!getMessage()
.equals(other.getMessage())) return false;
if (hasLocation() != other.hasLocation()) return false;
if (hasLocation()) {
if (!getLocation()
.equals(other.getLocation())) return false;
}
if (!getReasonList()
.equals(other.getReasonList())) return false;
if (!getType()
.equals(other.getType())) return false;
if (getLevel()
!= other.getLevel()) 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) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
if (hasLocation()) {
hash = (37 * hash) + LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getLocation().hashCode();
}
if (getReasonCount() > 0) {
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReasonList().hashCode();
}
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getLevel();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.IssueLog parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.IssueLog parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.IssueLog parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.IssueLog parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.IssueLog parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.IssueLog parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.IssueLog parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.IssueLog 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 com.yandex.ydb.monitoring.MonitoringProtos.IssueLog parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.IssueLog 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 com.yandex.ydb.monitoring.MonitoringProtos.IssueLog parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.IssueLog 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(com.yandex.ydb.monitoring.MonitoringProtos.IssueLog 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 Ydb.Monitoring.IssueLog}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.IssueLog)
com.yandex.ydb.monitoring.MonitoringProtos.IssueLogOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_IssueLog_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_IssueLog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.class, com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.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();
id_ = "";
status_ = 0;
message_ = "";
if (locationBuilder_ == null) {
location_ = null;
} else {
location_ = null;
locationBuilder_ = null;
}
reason_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
type_ = "";
level_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_IssueLog_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.IssueLog getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.IssueLog build() {
com.yandex.ydb.monitoring.MonitoringProtos.IssueLog result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.IssueLog buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.IssueLog result = new com.yandex.ydb.monitoring.MonitoringProtos.IssueLog(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.status_ = status_;
result.message_ = message_;
if (locationBuilder_ == null) {
result.location_ = location_;
} else {
result.location_ = locationBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
reason_ = reason_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.reason_ = reason_;
result.type_ = type_;
result.level_ = level_;
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 com.yandex.ydb.monitoring.MonitoringProtos.IssueLog) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.IssueLog)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.IssueLog other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
if (other.hasLocation()) {
mergeLocation(other.getLocation());
}
if (!other.reason_.isEmpty()) {
if (reason_.isEmpty()) {
reason_ = other.reason_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureReasonIsMutable();
reason_.addAll(other.reason_);
}
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
onChanged();
}
if (other.getLevel() != 0) {
setLevel(other.getLevel());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.IssueLog parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.IssueLog) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* 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 int status_ = 0;
/**
* .Ydb.Monitoring.StatusFlag.Status status = 2;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status status = 2;
* @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;
}
/**
* .Ydb.Monitoring.StatusFlag.Status status = 2;
* @return The status.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getStatus() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(status_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.Monitoring.StatusFlag.Status status = 2;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status status = 2;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
* string message = 3;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string message = 3;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string message = 3;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
* string message = 3;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* string message = 3;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
private com.yandex.ydb.monitoring.MonitoringProtos.Location location_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.Location, com.yandex.ydb.monitoring.MonitoringProtos.Location.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationOrBuilder> locationBuilder_;
/**
* .Ydb.Monitoring.Location location = 4;
* @return Whether the location field is set.
*/
public boolean hasLocation() {
return locationBuilder_ != null || location_ != null;
}
/**
* .Ydb.Monitoring.Location location = 4;
* @return The location.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.Location getLocation() {
if (locationBuilder_ == null) {
return location_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.Location.getDefaultInstance() : location_;
} else {
return locationBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.Location location = 4;
*/
public Builder setLocation(com.yandex.ydb.monitoring.MonitoringProtos.Location value) {
if (locationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
location_ = value;
onChanged();
} else {
locationBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.Location location = 4;
*/
public Builder setLocation(
com.yandex.ydb.monitoring.MonitoringProtos.Location.Builder builderForValue) {
if (locationBuilder_ == null) {
location_ = builderForValue.build();
onChanged();
} else {
locationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.Location location = 4;
*/
public Builder mergeLocation(com.yandex.ydb.monitoring.MonitoringProtos.Location value) {
if (locationBuilder_ == null) {
if (location_ != null) {
location_ =
com.yandex.ydb.monitoring.MonitoringProtos.Location.newBuilder(location_).mergeFrom(value).buildPartial();
} else {
location_ = value;
}
onChanged();
} else {
locationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.Location location = 4;
*/
public Builder clearLocation() {
if (locationBuilder_ == null) {
location_ = null;
onChanged();
} else {
location_ = null;
locationBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.Location location = 4;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.Location.Builder getLocationBuilder() {
onChanged();
return getLocationFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.Location location = 4;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.LocationOrBuilder getLocationOrBuilder() {
if (locationBuilder_ != null) {
return locationBuilder_.getMessageOrBuilder();
} else {
return location_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.Location.getDefaultInstance() : location_;
}
}
/**
* .Ydb.Monitoring.Location location = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.Location, com.yandex.ydb.monitoring.MonitoringProtos.Location.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationOrBuilder>
getLocationFieldBuilder() {
if (locationBuilder_ == null) {
locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.Location, com.yandex.ydb.monitoring.MonitoringProtos.Location.Builder, com.yandex.ydb.monitoring.MonitoringProtos.LocationOrBuilder>(
getLocation(),
getParentForChildren(),
isClean());
location_ = null;
}
return locationBuilder_;
}
private com.google.protobuf.LazyStringList reason_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureReasonIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
reason_ = new com.google.protobuf.LazyStringArrayList(reason_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string reason = 5;
* @return A list containing the reason.
*/
public com.google.protobuf.ProtocolStringList
getReasonList() {
return reason_.getUnmodifiableView();
}
/**
* repeated string reason = 5;
* @return The count of reason.
*/
public int getReasonCount() {
return reason_.size();
}
/**
* repeated string reason = 5;
* @param index The index of the element to return.
* @return The reason at the given index.
*/
public java.lang.String getReason(int index) {
return reason_.get(index);
}
/**
* repeated string reason = 5;
* @param index The index of the value to return.
* @return The bytes of the reason at the given index.
*/
public com.google.protobuf.ByteString
getReasonBytes(int index) {
return reason_.getByteString(index);
}
/**
* repeated string reason = 5;
* @param index The index to set the value at.
* @param value The reason to set.
* @return This builder for chaining.
*/
public Builder setReason(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureReasonIsMutable();
reason_.set(index, value);
onChanged();
return this;
}
/**
* repeated string reason = 5;
* @param value The reason to add.
* @return This builder for chaining.
*/
public Builder addReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureReasonIsMutable();
reason_.add(value);
onChanged();
return this;
}
/**
* repeated string reason = 5;
* @param values The reason to add.
* @return This builder for chaining.
*/
public Builder addAllReason(
java.lang.Iterable values) {
ensureReasonIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, reason_);
onChanged();
return this;
}
/**
* repeated string reason = 5;
* @return This builder for chaining.
*/
public Builder clearReason() {
reason_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string reason = 5;
* @param value The bytes of the reason to add.
* @return This builder for chaining.
*/
public Builder addReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureReasonIsMutable();
reason_.add(value);
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
* string type = 6;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string type = 6;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string type = 6;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
* string type = 6;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
* string type = 6;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
private int level_ ;
/**
* uint32 level = 7;
* @return The level.
*/
@java.lang.Override
public int getLevel() {
return level_;
}
/**
* uint32 level = 7;
* @param value The level to set.
* @return This builder for chaining.
*/
public Builder setLevel(int value) {
level_ = value;
onChanged();
return this;
}
/**
* uint32 level = 7;
* @return This builder for chaining.
*/
public Builder clearLevel() {
level_ = 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:Ydb.Monitoring.IssueLog)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.IssueLog)
private static final com.yandex.ydb.monitoring.MonitoringProtos.IssueLog DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.IssueLog();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.IssueLog getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IssueLog parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IssueLog(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 com.yandex.ydb.monitoring.MonitoringProtos.IssueLog getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DatabaseStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.DatabaseStatus)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
int getOverallValue();
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall();
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
* @return Whether the storage field is set.
*/
boolean hasStorage();
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
* @return The storage.
*/
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus getStorage();
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
*/
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatusOrBuilder getStorageOrBuilder();
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
* @return Whether the compute field is set.
*/
boolean hasCompute();
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
* @return The compute.
*/
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus getCompute();
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
*/
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatusOrBuilder getComputeOrBuilder();
}
/**
* Protobuf type {@code Ydb.Monitoring.DatabaseStatus}
*/
public static final class DatabaseStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.DatabaseStatus)
DatabaseStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use DatabaseStatus.newBuilder() to construct.
private DatabaseStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DatabaseStatus() {
name_ = "";
overall_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DatabaseStatus();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DatabaseStatus(
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 16: {
int rawValue = input.readEnum();
overall_ = rawValue;
break;
}
case 26: {
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.Builder subBuilder = null;
if (storage_ != null) {
subBuilder = storage_.toBuilder();
}
storage_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(storage_);
storage_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.Builder subBuilder = null;
if (compute_ != null) {
subBuilder = compute_.toBuilder();
}
compute_ = input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(compute_);
compute_ = 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 com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_DatabaseStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_DatabaseStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* 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;
}
}
/**
* 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 OVERALL_FIELD_NUMBER = 2;
private int overall_;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
public static final int STORAGE_FIELD_NUMBER = 3;
private com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus storage_;
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
* @return Whether the storage field is set.
*/
@java.lang.Override
public boolean hasStorage() {
return storage_ != null;
}
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
* @return The storage.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus getStorage() {
return storage_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.getDefaultInstance() : storage_;
}
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StorageStatusOrBuilder getStorageOrBuilder() {
return getStorage();
}
public static final int COMPUTE_FIELD_NUMBER = 4;
private com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus compute_;
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
* @return Whether the compute field is set.
*/
@java.lang.Override
public boolean hasCompute() {
return compute_ != null;
}
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
* @return The compute.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus getCompute() {
return compute_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.getDefaultInstance() : compute_;
}
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatusOrBuilder getComputeOrBuilder() {
return getCompute();
}
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 (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
output.writeEnum(2, overall_);
}
if (storage_ != null) {
output.writeMessage(3, getStorage());
}
if (compute_ != null) {
output.writeMessage(4, getCompute());
}
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 (overall_ != com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, overall_);
}
if (storage_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getStorage());
}
if (compute_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCompute());
}
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 com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus other = (com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus) obj;
if (!getName()
.equals(other.getName())) return false;
if (overall_ != other.overall_) return false;
if (hasStorage() != other.hasStorage()) return false;
if (hasStorage()) {
if (!getStorage()
.equals(other.getStorage())) return false;
}
if (hasCompute() != other.hasCompute()) return false;
if (hasCompute()) {
if (!getCompute()
.equals(other.getCompute())) 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) + OVERALL_FIELD_NUMBER;
hash = (53 * hash) + overall_;
if (hasStorage()) {
hash = (37 * hash) + STORAGE_FIELD_NUMBER;
hash = (53 * hash) + getStorage().hashCode();
}
if (hasCompute()) {
hash = (37 * hash) + COMPUTE_FIELD_NUMBER;
hash = (53 * hash) + getCompute().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus 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 com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus 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(com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus 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 Ydb.Monitoring.DatabaseStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.DatabaseStatus)
com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_DatabaseStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_DatabaseStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.class, com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.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_ = "";
overall_ = 0;
if (storageBuilder_ == null) {
storage_ = null;
} else {
storage_ = null;
storageBuilder_ = null;
}
if (computeBuilder_ == null) {
compute_ = null;
} else {
compute_ = null;
computeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_DatabaseStatus_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus build() {
com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus result = new com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus(this);
result.name_ = name_;
result.overall_ = overall_;
if (storageBuilder_ == null) {
result.storage_ = storage_;
} else {
result.storage_ = storageBuilder_.build();
}
if (computeBuilder_ == null) {
result.compute_ = compute_;
} else {
result.compute_ = computeBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.overall_ != 0) {
setOverallValue(other.getOverallValue());
}
if (other.hasStorage()) {
mergeStorage(other.getStorage());
}
if (other.hasCompute()) {
mergeCompute(other.getCompute());
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* 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 int overall_ = 0;
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The enum numeric value on the wire for overall.
*/
@java.lang.Override public int getOverallValue() {
return overall_;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @param value The enum numeric value on the wire for overall to set.
* @return This builder for chaining.
*/
public Builder setOverallValue(int value) {
overall_ = value;
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return The overall.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status getOverall() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status result = com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.valueOf(overall_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @param value The overall to set.
* @return This builder for chaining.
*/
public Builder setOverall(com.yandex.ydb.monitoring.MonitoringProtos.StatusFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
overall_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Monitoring.StatusFlag.Status overall = 2;
* @return This builder for chaining.
*/
public Builder clearOverall() {
overall_ = 0;
onChanged();
return this;
}
private com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus storage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus, com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StorageStatusOrBuilder> storageBuilder_;
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
* @return Whether the storage field is set.
*/
public boolean hasStorage() {
return storageBuilder_ != null || storage_ != null;
}
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
* @return The storage.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus getStorage() {
if (storageBuilder_ == null) {
return storage_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.getDefaultInstance() : storage_;
} else {
return storageBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
*/
public Builder setStorage(com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus value) {
if (storageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
storage_ = value;
onChanged();
} else {
storageBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
*/
public Builder setStorage(
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.Builder builderForValue) {
if (storageBuilder_ == null) {
storage_ = builderForValue.build();
onChanged();
} else {
storageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
*/
public Builder mergeStorage(com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus value) {
if (storageBuilder_ == null) {
if (storage_ != null) {
storage_ =
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.newBuilder(storage_).mergeFrom(value).buildPartial();
} else {
storage_ = value;
}
onChanged();
} else {
storageBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
*/
public Builder clearStorage() {
if (storageBuilder_ == null) {
storage_ = null;
onChanged();
} else {
storage_ = null;
storageBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.Builder getStorageBuilder() {
onChanged();
return getStorageFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.StorageStatusOrBuilder getStorageOrBuilder() {
if (storageBuilder_ != null) {
return storageBuilder_.getMessageOrBuilder();
} else {
return storage_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.getDefaultInstance() : storage_;
}
}
/**
* .Ydb.Monitoring.StorageStatus storage = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus, com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StorageStatusOrBuilder>
getStorageFieldBuilder() {
if (storageBuilder_ == null) {
storageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus, com.yandex.ydb.monitoring.MonitoringProtos.StorageStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.StorageStatusOrBuilder>(
getStorage(),
getParentForChildren(),
isClean());
storage_ = null;
}
return storageBuilder_;
}
private com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus compute_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus, com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatusOrBuilder> computeBuilder_;
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
* @return Whether the compute field is set.
*/
public boolean hasCompute() {
return computeBuilder_ != null || compute_ != null;
}
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
* @return The compute.
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus getCompute() {
if (computeBuilder_ == null) {
return compute_ == null ? com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.getDefaultInstance() : compute_;
} else {
return computeBuilder_.getMessage();
}
}
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
*/
public Builder setCompute(com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus value) {
if (computeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
compute_ = value;
onChanged();
} else {
computeBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
*/
public Builder setCompute(
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.Builder builderForValue) {
if (computeBuilder_ == null) {
compute_ = builderForValue.build();
onChanged();
} else {
computeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
*/
public Builder mergeCompute(com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus value) {
if (computeBuilder_ == null) {
if (compute_ != null) {
compute_ =
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.newBuilder(compute_).mergeFrom(value).buildPartial();
} else {
compute_ = value;
}
onChanged();
} else {
computeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
*/
public Builder clearCompute() {
if (computeBuilder_ == null) {
compute_ = null;
onChanged();
} else {
compute_ = null;
computeBuilder_ = null;
}
return this;
}
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.Builder getComputeBuilder() {
onChanged();
return getComputeFieldBuilder().getBuilder();
}
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatusOrBuilder getComputeOrBuilder() {
if (computeBuilder_ != null) {
return computeBuilder_.getMessageOrBuilder();
} else {
return compute_ == null ?
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.getDefaultInstance() : compute_;
}
}
/**
* .Ydb.Monitoring.ComputeStatus compute = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus, com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatusOrBuilder>
getComputeFieldBuilder() {
if (computeBuilder_ == null) {
computeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus, com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.ComputeStatusOrBuilder>(
getCompute(),
getParentForChildren(),
isClean());
compute_ = null;
}
return computeBuilder_;
}
@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:Ydb.Monitoring.DatabaseStatus)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.DatabaseStatus)
private static final com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DatabaseStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DatabaseStatus(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 com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SelfCheckResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Monitoring.SelfCheckResult)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Monitoring.SelfCheck.Result self_check_result = 1;
* @return The enum numeric value on the wire for selfCheckResult.
*/
int getSelfCheckResultValue();
/**
* .Ydb.Monitoring.SelfCheck.Result self_check_result = 1;
* @return The selfCheckResult.
*/
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.Result getSelfCheckResult();
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
java.util.List
getIssueLogList();
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
com.yandex.ydb.monitoring.MonitoringProtos.IssueLog getIssueLog(int index);
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
int getIssueLogCount();
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.IssueLogOrBuilder>
getIssueLogOrBuilderList();
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
com.yandex.ydb.monitoring.MonitoringProtos.IssueLogOrBuilder getIssueLogOrBuilder(
int index);
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
java.util.List
getDatabaseStatusList();
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus getDatabaseStatus(int index);
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
int getDatabaseStatusCount();
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatusOrBuilder>
getDatabaseStatusOrBuilderList();
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatusOrBuilder getDatabaseStatusOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Monitoring.SelfCheckResult}
*/
public static final class SelfCheckResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Monitoring.SelfCheckResult)
SelfCheckResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use SelfCheckResult.newBuilder() to construct.
private SelfCheckResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SelfCheckResult() {
selfCheckResult_ = 0;
issueLog_ = java.util.Collections.emptyList();
databaseStatus_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SelfCheckResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SelfCheckResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
selfCheckResult_ = rawValue;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
issueLog_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
issueLog_.add(
input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
databaseStatus_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
databaseStatus_.add(
input.readMessage(com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
issueLog_ = java.util.Collections.unmodifiableList(issueLog_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
databaseStatus_ = java.util.Collections.unmodifiableList(databaseStatus_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult.class, com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult.Builder.class);
}
public static final int SELF_CHECK_RESULT_FIELD_NUMBER = 1;
private int selfCheckResult_;
/**
* .Ydb.Monitoring.SelfCheck.Result self_check_result = 1;
* @return The enum numeric value on the wire for selfCheckResult.
*/
@java.lang.Override public int getSelfCheckResultValue() {
return selfCheckResult_;
}
/**
* .Ydb.Monitoring.SelfCheck.Result self_check_result = 1;
* @return The selfCheckResult.
*/
@java.lang.Override public com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.Result getSelfCheckResult() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.Result result = com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.Result.valueOf(selfCheckResult_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.Result.UNRECOGNIZED : result;
}
public static final int ISSUE_LOG_FIELD_NUMBER = 2;
private java.util.List issueLog_;
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
@java.lang.Override
public java.util.List getIssueLogList() {
return issueLog_;
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.IssueLogOrBuilder>
getIssueLogOrBuilderList() {
return issueLog_;
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
@java.lang.Override
public int getIssueLogCount() {
return issueLog_.size();
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.IssueLog getIssueLog(int index) {
return issueLog_.get(index);
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.IssueLogOrBuilder getIssueLogOrBuilder(
int index) {
return issueLog_.get(index);
}
public static final int DATABASE_STATUS_FIELD_NUMBER = 3;
private java.util.List databaseStatus_;
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
@java.lang.Override
public java.util.List getDatabaseStatusList() {
return databaseStatus_;
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatusOrBuilder>
getDatabaseStatusOrBuilderList() {
return databaseStatus_;
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
@java.lang.Override
public int getDatabaseStatusCount() {
return databaseStatus_.size();
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus getDatabaseStatus(int index) {
return databaseStatus_.get(index);
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatusOrBuilder getDatabaseStatusOrBuilder(
int index) {
return databaseStatus_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (selfCheckResult_ != com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.Result.UNSPECIFIED.getNumber()) {
output.writeEnum(1, selfCheckResult_);
}
for (int i = 0; i < issueLog_.size(); i++) {
output.writeMessage(2, issueLog_.get(i));
}
for (int i = 0; i < databaseStatus_.size(); i++) {
output.writeMessage(3, databaseStatus_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (selfCheckResult_ != com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.Result.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, selfCheckResult_);
}
for (int i = 0; i < issueLog_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, issueLog_.get(i));
}
for (int i = 0; i < databaseStatus_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, databaseStatus_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult)) {
return super.equals(obj);
}
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult other = (com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult) obj;
if (selfCheckResult_ != other.selfCheckResult_) return false;
if (!getIssueLogList()
.equals(other.getIssueLogList())) return false;
if (!getDatabaseStatusList()
.equals(other.getDatabaseStatusList())) 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) + SELF_CHECK_RESULT_FIELD_NUMBER;
hash = (53 * hash) + selfCheckResult_;
if (getIssueLogCount() > 0) {
hash = (37 * hash) + ISSUE_LOG_FIELD_NUMBER;
hash = (53 * hash) + getIssueLogList().hashCode();
}
if (getDatabaseStatusCount() > 0) {
hash = (37 * hash) + DATABASE_STATUS_FIELD_NUMBER;
hash = (53 * hash) + getDatabaseStatusList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult 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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult 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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult 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(com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult 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 Ydb.Monitoring.SelfCheckResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Monitoring.SelfCheckResult)
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult.class, com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult.Builder.class);
}
// Construct using com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIssueLogFieldBuilder();
getDatabaseStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
selfCheckResult_ = 0;
if (issueLogBuilder_ == null) {
issueLog_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
issueLogBuilder_.clear();
}
if (databaseStatusBuilder_ == null) {
databaseStatus_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
databaseStatusBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.internal_static_Ydb_Monitoring_SelfCheckResult_descriptor;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult getDefaultInstanceForType() {
return com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult build() {
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult buildPartial() {
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult result = new com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult(this);
int from_bitField0_ = bitField0_;
result.selfCheckResult_ = selfCheckResult_;
if (issueLogBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
issueLog_ = java.util.Collections.unmodifiableList(issueLog_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.issueLog_ = issueLog_;
} else {
result.issueLog_ = issueLogBuilder_.build();
}
if (databaseStatusBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
databaseStatus_ = java.util.Collections.unmodifiableList(databaseStatus_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.databaseStatus_ = databaseStatus_;
} else {
result.databaseStatus_ = databaseStatusBuilder_.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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult) {
return mergeFrom((com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult other) {
if (other == com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult.getDefaultInstance()) return this;
if (other.selfCheckResult_ != 0) {
setSelfCheckResultValue(other.getSelfCheckResultValue());
}
if (issueLogBuilder_ == null) {
if (!other.issueLog_.isEmpty()) {
if (issueLog_.isEmpty()) {
issueLog_ = other.issueLog_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIssueLogIsMutable();
issueLog_.addAll(other.issueLog_);
}
onChanged();
}
} else {
if (!other.issueLog_.isEmpty()) {
if (issueLogBuilder_.isEmpty()) {
issueLogBuilder_.dispose();
issueLogBuilder_ = null;
issueLog_ = other.issueLog_;
bitField0_ = (bitField0_ & ~0x00000001);
issueLogBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIssueLogFieldBuilder() : null;
} else {
issueLogBuilder_.addAllMessages(other.issueLog_);
}
}
}
if (databaseStatusBuilder_ == null) {
if (!other.databaseStatus_.isEmpty()) {
if (databaseStatus_.isEmpty()) {
databaseStatus_ = other.databaseStatus_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDatabaseStatusIsMutable();
databaseStatus_.addAll(other.databaseStatus_);
}
onChanged();
}
} else {
if (!other.databaseStatus_.isEmpty()) {
if (databaseStatusBuilder_.isEmpty()) {
databaseStatusBuilder_.dispose();
databaseStatusBuilder_ = null;
databaseStatus_ = other.databaseStatus_;
bitField0_ = (bitField0_ & ~0x00000002);
databaseStatusBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDatabaseStatusFieldBuilder() : null;
} else {
databaseStatusBuilder_.addAllMessages(other.databaseStatus_);
}
}
}
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 {
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int selfCheckResult_ = 0;
/**
* .Ydb.Monitoring.SelfCheck.Result self_check_result = 1;
* @return The enum numeric value on the wire for selfCheckResult.
*/
@java.lang.Override public int getSelfCheckResultValue() {
return selfCheckResult_;
}
/**
* .Ydb.Monitoring.SelfCheck.Result self_check_result = 1;
* @param value The enum numeric value on the wire for selfCheckResult to set.
* @return This builder for chaining.
*/
public Builder setSelfCheckResultValue(int value) {
selfCheckResult_ = value;
onChanged();
return this;
}
/**
* .Ydb.Monitoring.SelfCheck.Result self_check_result = 1;
* @return The selfCheckResult.
*/
@java.lang.Override
public com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.Result getSelfCheckResult() {
@SuppressWarnings("deprecation")
com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.Result result = com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.Result.valueOf(selfCheckResult_);
return result == null ? com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.Result.UNRECOGNIZED : result;
}
/**
* .Ydb.Monitoring.SelfCheck.Result self_check_result = 1;
* @param value The selfCheckResult to set.
* @return This builder for chaining.
*/
public Builder setSelfCheckResult(com.yandex.ydb.monitoring.MonitoringProtos.SelfCheck.Result value) {
if (value == null) {
throw new NullPointerException();
}
selfCheckResult_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Monitoring.SelfCheck.Result self_check_result = 1;
* @return This builder for chaining.
*/
public Builder clearSelfCheckResult() {
selfCheckResult_ = 0;
onChanged();
return this;
}
private java.util.List issueLog_ =
java.util.Collections.emptyList();
private void ensureIssueLogIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
issueLog_ = new java.util.ArrayList(issueLog_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.IssueLog, com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.Builder, com.yandex.ydb.monitoring.MonitoringProtos.IssueLogOrBuilder> issueLogBuilder_;
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public java.util.List getIssueLogList() {
if (issueLogBuilder_ == null) {
return java.util.Collections.unmodifiableList(issueLog_);
} else {
return issueLogBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public int getIssueLogCount() {
if (issueLogBuilder_ == null) {
return issueLog_.size();
} else {
return issueLogBuilder_.getCount();
}
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.IssueLog getIssueLog(int index) {
if (issueLogBuilder_ == null) {
return issueLog_.get(index);
} else {
return issueLogBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public Builder setIssueLog(
int index, com.yandex.ydb.monitoring.MonitoringProtos.IssueLog value) {
if (issueLogBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIssueLogIsMutable();
issueLog_.set(index, value);
onChanged();
} else {
issueLogBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public Builder setIssueLog(
int index, com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.Builder builderForValue) {
if (issueLogBuilder_ == null) {
ensureIssueLogIsMutable();
issueLog_.set(index, builderForValue.build());
onChanged();
} else {
issueLogBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public Builder addIssueLog(com.yandex.ydb.monitoring.MonitoringProtos.IssueLog value) {
if (issueLogBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIssueLogIsMutable();
issueLog_.add(value);
onChanged();
} else {
issueLogBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public Builder addIssueLog(
int index, com.yandex.ydb.monitoring.MonitoringProtos.IssueLog value) {
if (issueLogBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIssueLogIsMutable();
issueLog_.add(index, value);
onChanged();
} else {
issueLogBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public Builder addIssueLog(
com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.Builder builderForValue) {
if (issueLogBuilder_ == null) {
ensureIssueLogIsMutable();
issueLog_.add(builderForValue.build());
onChanged();
} else {
issueLogBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public Builder addIssueLog(
int index, com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.Builder builderForValue) {
if (issueLogBuilder_ == null) {
ensureIssueLogIsMutable();
issueLog_.add(index, builderForValue.build());
onChanged();
} else {
issueLogBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public Builder addAllIssueLog(
java.lang.Iterable extends com.yandex.ydb.monitoring.MonitoringProtos.IssueLog> values) {
if (issueLogBuilder_ == null) {
ensureIssueLogIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, issueLog_);
onChanged();
} else {
issueLogBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public Builder clearIssueLog() {
if (issueLogBuilder_ == null) {
issueLog_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
issueLogBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public Builder removeIssueLog(int index) {
if (issueLogBuilder_ == null) {
ensureIssueLogIsMutable();
issueLog_.remove(index);
onChanged();
} else {
issueLogBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.Builder getIssueLogBuilder(
int index) {
return getIssueLogFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.IssueLogOrBuilder getIssueLogOrBuilder(
int index) {
if (issueLogBuilder_ == null) {
return issueLog_.get(index); } else {
return issueLogBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.IssueLogOrBuilder>
getIssueLogOrBuilderList() {
if (issueLogBuilder_ != null) {
return issueLogBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(issueLog_);
}
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.Builder addIssueLogBuilder() {
return getIssueLogFieldBuilder().addBuilder(
com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.Builder addIssueLogBuilder(
int index) {
return getIssueLogFieldBuilder().addBuilder(
index, com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.IssueLog issue_log = 2;
*/
public java.util.List
getIssueLogBuilderList() {
return getIssueLogFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.IssueLog, com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.Builder, com.yandex.ydb.monitoring.MonitoringProtos.IssueLogOrBuilder>
getIssueLogFieldBuilder() {
if (issueLogBuilder_ == null) {
issueLogBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.IssueLog, com.yandex.ydb.monitoring.MonitoringProtos.IssueLog.Builder, com.yandex.ydb.monitoring.MonitoringProtos.IssueLogOrBuilder>(
issueLog_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
issueLog_ = null;
}
return issueLogBuilder_;
}
private java.util.List databaseStatus_ =
java.util.Collections.emptyList();
private void ensureDatabaseStatusIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
databaseStatus_ = new java.util.ArrayList(databaseStatus_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus, com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatusOrBuilder> databaseStatusBuilder_;
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public java.util.List getDatabaseStatusList() {
if (databaseStatusBuilder_ == null) {
return java.util.Collections.unmodifiableList(databaseStatus_);
} else {
return databaseStatusBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public int getDatabaseStatusCount() {
if (databaseStatusBuilder_ == null) {
return databaseStatus_.size();
} else {
return databaseStatusBuilder_.getCount();
}
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus getDatabaseStatus(int index) {
if (databaseStatusBuilder_ == null) {
return databaseStatus_.get(index);
} else {
return databaseStatusBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public Builder setDatabaseStatus(
int index, com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus value) {
if (databaseStatusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDatabaseStatusIsMutable();
databaseStatus_.set(index, value);
onChanged();
} else {
databaseStatusBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public Builder setDatabaseStatus(
int index, com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.Builder builderForValue) {
if (databaseStatusBuilder_ == null) {
ensureDatabaseStatusIsMutable();
databaseStatus_.set(index, builderForValue.build());
onChanged();
} else {
databaseStatusBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public Builder addDatabaseStatus(com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus value) {
if (databaseStatusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDatabaseStatusIsMutable();
databaseStatus_.add(value);
onChanged();
} else {
databaseStatusBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public Builder addDatabaseStatus(
int index, com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus value) {
if (databaseStatusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDatabaseStatusIsMutable();
databaseStatus_.add(index, value);
onChanged();
} else {
databaseStatusBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public Builder addDatabaseStatus(
com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.Builder builderForValue) {
if (databaseStatusBuilder_ == null) {
ensureDatabaseStatusIsMutable();
databaseStatus_.add(builderForValue.build());
onChanged();
} else {
databaseStatusBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public Builder addDatabaseStatus(
int index, com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.Builder builderForValue) {
if (databaseStatusBuilder_ == null) {
ensureDatabaseStatusIsMutable();
databaseStatus_.add(index, builderForValue.build());
onChanged();
} else {
databaseStatusBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public Builder addAllDatabaseStatus(
java.lang.Iterable extends com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus> values) {
if (databaseStatusBuilder_ == null) {
ensureDatabaseStatusIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, databaseStatus_);
onChanged();
} else {
databaseStatusBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public Builder clearDatabaseStatus() {
if (databaseStatusBuilder_ == null) {
databaseStatus_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
databaseStatusBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public Builder removeDatabaseStatus(int index) {
if (databaseStatusBuilder_ == null) {
ensureDatabaseStatusIsMutable();
databaseStatus_.remove(index);
onChanged();
} else {
databaseStatusBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.Builder getDatabaseStatusBuilder(
int index) {
return getDatabaseStatusFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatusOrBuilder getDatabaseStatusOrBuilder(
int index) {
if (databaseStatusBuilder_ == null) {
return databaseStatus_.get(index); } else {
return databaseStatusBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public java.util.List extends com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatusOrBuilder>
getDatabaseStatusOrBuilderList() {
if (databaseStatusBuilder_ != null) {
return databaseStatusBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(databaseStatus_);
}
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.Builder addDatabaseStatusBuilder() {
return getDatabaseStatusFieldBuilder().addBuilder(
com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.Builder addDatabaseStatusBuilder(
int index) {
return getDatabaseStatusFieldBuilder().addBuilder(
index, com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.getDefaultInstance());
}
/**
* repeated .Ydb.Monitoring.DatabaseStatus database_status = 3;
*/
public java.util.List
getDatabaseStatusBuilderList() {
return getDatabaseStatusFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus, com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatusOrBuilder>
getDatabaseStatusFieldBuilder() {
if (databaseStatusBuilder_ == null) {
databaseStatusBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus, com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatus.Builder, com.yandex.ydb.monitoring.MonitoringProtos.DatabaseStatusOrBuilder>(
databaseStatus_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
databaseStatus_ = null;
}
return databaseStatusBuilder_;
}
@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:Ydb.Monitoring.SelfCheckResult)
}
// @@protoc_insertion_point(class_scope:Ydb.Monitoring.SelfCheckResult)
private static final com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult();
}
public static com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SelfCheckResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SelfCheckResult(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 com.yandex.ydb.monitoring.MonitoringProtos.SelfCheckResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_StatusFlag_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_StatusFlag_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_SelfCheckRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_SelfCheckRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_SelfCheckResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_SelfCheckResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_NodeCheckRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_NodeCheckRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_NodeCheckResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_NodeCheckResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_SelfCheck_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_SelfCheck_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_StoragePDiskStatus_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_StoragePDiskStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_StorageVDiskStatus_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_StorageVDiskStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_StorageGroupStatus_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_StorageGroupStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_StoragePoolStatus_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_StoragePoolStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_StorageStatus_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_StorageStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_ComputeTabletStatus_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_ComputeTabletStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_ThreadPoolStatus_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_ThreadPoolStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_LoadAverageStatus_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_LoadAverageStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_ComputeNodeStatus_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_ComputeNodeStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_ComputeStatus_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_ComputeStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_LocationNode_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_LocationNode_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_LocationStoragePDisk_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_LocationStoragePDisk_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_LocationStorageVDisk_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_LocationStorageVDisk_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_LocationStorageGroup_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_LocationStorageGroup_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_LocationStoragePool_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_LocationStoragePool_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_LocationStorage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_LocationStorage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_LocationComputePool_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_LocationComputePool_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_LocationComputeTablet_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_LocationComputeTablet_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_LocationCompute_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_LocationCompute_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_LocationDatabase_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_LocationDatabase_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_Location_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_Location_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_IssueLog_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_IssueLog_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_DatabaseStatus_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_DatabaseStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Monitoring_SelfCheckResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Monitoring_SelfCheckResult_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*ydb/public/api/protos/ydb_monitoring.p" +
"roto\022\016Ydb.Monitoring\032)ydb/public/api/pro" +
"tos/ydb_operation.proto\"g\n\nStatusFlag\"Y\n" +
"\006Status\022\017\n\013UNSPECIFIED\020\000\022\010\n\004GREY\020\001\022\t\n\005GR" +
"EEN\020\002\022\010\n\004BLUE\020\003\022\n\n\006YELLOW\020\004\022\n\n\006ORANGE\020\005\022" +
"\007\n\003RED\020\006\"\276\001\n\020SelfCheckRequest\0229\n\020operati" +
"on_params\030\001 \001(\0132\037.Ydb.Operations.Operati" +
"onParams\022\035\n\025return_verbose_status\030\002 \001(\010\022" +
"9\n\016minimum_status\030\003 \001(\0162!.Ydb.Monitoring" +
".StatusFlag.Status\022\025\n\rmaximum_level\030\004 \001(" +
"\r\"A\n\021SelfCheckResponse\022,\n\toperation\030\001 \001(" +
"\0132\031.Ydb.Operations.Operation\"M\n\020NodeChec" +
"kRequest\0229\n\020operation_params\030\001 \001(\0132\037.Ydb" +
".Operations.OperationParams\"A\n\021NodeCheck" +
"Response\022,\n\toperation\030\001 \001(\0132\031.Ydb.Operat" +
"ions.Operation\"g\n\tSelfCheck\"Z\n\006Result\022\017\n" +
"\013UNSPECIFIED\020\000\022\010\n\004GOOD\020\001\022\014\n\010DEGRADED\020\002\022\030" +
"\n\024MAINTENANCE_REQUIRED\020\003\022\r\n\tEMERGENCY\020\004\"" +
"T\n\022StoragePDiskStatus\022\n\n\002id\030\001 \001(\t\0222\n\007ove" +
"rall\030\002 \001(\0162!.Ydb.Monitoring.StatusFlag.S" +
"tatus\"\300\001\n\022StorageVDiskStatus\022\n\n\002id\030\001 \001(\t" +
"\0222\n\007overall\030\002 \001(\0162!.Ydb.Monitoring.Statu" +
"sFlag.Status\0227\n\014vdisk_status\030\003 \001(\0162!.Ydb" +
".Monitoring.StatusFlag.Status\0221\n\005pdisk\030\004" +
" \001(\0132\".Ydb.Monitoring.StoragePDiskStatus" +
"\"\210\001\n\022StorageGroupStatus\022\n\n\002id\030\001 \001(\t\0222\n\007o" +
"verall\030\002 \001(\0162!.Ydb.Monitoring.StatusFlag" +
".Status\0222\n\006vdisks\030\003 \003(\0132\".Ydb.Monitoring" +
".StorageVDiskStatus\"\207\001\n\021StoragePoolStatu" +
"s\022\n\n\002id\030\001 \001(\t\0222\n\007overall\030\002 \001(\0162!.Ydb.Mon" +
"itoring.StatusFlag.Status\0222\n\006groups\030\003 \003(" +
"\0132\".Ydb.Monitoring.StorageGroupStatus\"u\n" +
"\rStorageStatus\0222\n\007overall\030\001 \001(\0162!.Ydb.Mo" +
"nitoring.StatusFlag.Status\0220\n\005pools\030\002 \003(" +
"\0132!.Ydb.Monitoring.StoragePoolStatus\"\201\001\n" +
"\023ComputeTabletStatus\0222\n\007overall\030\001 \001(\0162!." +
"Ydb.Monitoring.StatusFlag.Status\022\014\n\004type" +
"\030\002 \001(\t\022\r\n\005state\030\003 \001(\t\022\r\n\005count\030\004 \001(\r\022\n\n\002" +
"id\030\005 \003(\t\"c\n\020ThreadPoolStatus\0222\n\007overall\030" +
"\001 \001(\0162!.Ydb.Monitoring.StatusFlag.Status" +
"\022\014\n\004name\030\002 \001(\t\022\r\n\005usage\030\003 \001(\002\"d\n\021LoadAve" +
"rageStatus\0222\n\007overall\030\001 \001(\0162!.Ydb.Monito" +
"ring.StatusFlag.Status\022\014\n\004load\030\002 \001(\002\022\r\n\005" +
"cores\030\003 \001(\r\"\353\001\n\021ComputeNodeStatus\022\n\n\002id\030" +
"\001 \001(\t\0222\n\007overall\030\002 \001(\0162!.Ydb.Monitoring." +
"StatusFlag.Status\0224\n\007tablets\030\003 \003(\0132#.Ydb" +
".Monitoring.ComputeTabletStatus\022/\n\005pools" +
"\030\004 \003(\0132 .Ydb.Monitoring.ThreadPoolStatus" +
"\022/\n\004load\030\005 \001(\0132!.Ydb.Monitoring.LoadAver" +
"ageStatus\"\253\001\n\rComputeStatus\0222\n\007overall\030\001" +
" \001(\0162!.Ydb.Monitoring.StatusFlag.Status\022" +
"0\n\005nodes\030\002 \003(\0132!.Ydb.Monitoring.ComputeN" +
"odeStatus\0224\n\007tablets\030\003 \003(\0132#.Ydb.Monitor" +
"ing.ComputeTabletStatus\"6\n\014LocationNode\022" +
"\n\n\002id\030\001 \001(\r\022\014\n\004host\030\002 \001(\t\022\014\n\004port\030\003 \001(\r\"" +
"0\n\024LocationStoragePDisk\022\n\n\002id\030\001 \001(\t\022\014\n\004p" +
"ath\030\002 \001(\t\"W\n\024LocationStorageVDisk\022\n\n\002id\030" +
"\001 \001(\t\0223\n\005pdisk\030\002 \001(\0132$.Ydb.Monitoring.Lo" +
"cationStoragePDisk\"W\n\024LocationStorageGro" +
"up\022\n\n\002id\030\001 \001(\t\0223\n\005vdisk\030\002 \001(\0132$.Ydb.Moni" +
"toring.LocationStorageVDisk\"X\n\023LocationS" +
"toragePool\022\014\n\004name\030\001 \001(\t\0223\n\005group\030\002 \001(\0132" +
"$.Ydb.Monitoring.LocationStorageGroup\"p\n" +
"\017LocationStorage\022*\n\004node\030\001 \001(\0132\034.Ydb.Mon" +
"itoring.LocationNode\0221\n\004pool\030\002 \001(\0132#.Ydb" +
".Monitoring.LocationStoragePool\"#\n\023Locat" +
"ionComputePool\022\014\n\004name\030\001 \001(\t\"@\n\025Location" +
"ComputeTablet\022\014\n\004type\030\001 \001(\t\022\n\n\002id\030\002 \003(\t\022" +
"\r\n\005count\030\003 \001(\r\"\247\001\n\017LocationCompute\022*\n\004no" +
"de\030\001 \001(\0132\034.Ydb.Monitoring.LocationNode\0221" +
"\n\004pool\030\002 \001(\0132#.Ydb.Monitoring.LocationCo" +
"mputePool\0225\n\006tablet\030\003 \001(\0132%.Ydb.Monitori" +
"ng.LocationComputeTablet\" \n\020LocationData" +
"base\022\014\n\004name\030\001 \001(\t\"\242\001\n\010Location\0220\n\007stora" +
"ge\030\001 \001(\0132\037.Ydb.Monitoring.LocationStorag" +
"e\0220\n\007compute\030\002 \001(\0132\037.Ydb.Monitoring.Loca" +
"tionCompute\0222\n\010database\030\003 \001(\0132 .Ydb.Moni" +
"toring.LocationDatabase\"\263\001\n\010IssueLog\022\n\n\002" +
"id\030\001 \001(\t\0221\n\006status\030\002 \001(\0162!.Ydb.Monitorin" +
"g.StatusFlag.Status\022\017\n\007message\030\003 \001(\t\022*\n\010" +
"location\030\004 \001(\0132\030.Ydb.Monitoring.Location" +
"\022\016\n\006reason\030\005 \003(\t\022\014\n\004type\030\006 \001(\t\022\r\n\005level\030" +
"\007 \001(\r\"\262\001\n\016DatabaseStatus\022\014\n\004name\030\001 \001(\t\0222" +
"\n\007overall\030\002 \001(\0162!.Ydb.Monitoring.StatusF" +
"lag.Status\022.\n\007storage\030\003 \001(\0132\035.Ydb.Monito" +
"ring.StorageStatus\022.\n\007compute\030\004 \001(\0132\035.Yd" +
"b.Monitoring.ComputeStatus\"\264\001\n\017SelfCheck" +
"Result\022;\n\021self_check_result\030\001 \001(\0162 .Ydb." +
"Monitoring.SelfCheck.Result\022+\n\tissue_log" +
"\030\002 \003(\0132\030.Ydb.Monitoring.IssueLog\0227\n\017data" +
"base_status\030\003 \003(\0132\036.Ydb.Monitoring.Datab" +
"aseStatusB0\n\031com.yandex.ydb.monitoringB\020" +
"MonitoringProtos\370\001\001b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.yandex.ydb.OperationProtos.getDescriptor(),
});
internal_static_Ydb_Monitoring_StatusFlag_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Ydb_Monitoring_StatusFlag_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_StatusFlag_descriptor,
new java.lang.String[] { });
internal_static_Ydb_Monitoring_SelfCheckRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_Ydb_Monitoring_SelfCheckRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_SelfCheckRequest_descriptor,
new java.lang.String[] { "OperationParams", "ReturnVerboseStatus", "MinimumStatus", "MaximumLevel", });
internal_static_Ydb_Monitoring_SelfCheckResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_Ydb_Monitoring_SelfCheckResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_SelfCheckResponse_descriptor,
new java.lang.String[] { "Operation", });
internal_static_Ydb_Monitoring_NodeCheckRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_Ydb_Monitoring_NodeCheckRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_NodeCheckRequest_descriptor,
new java.lang.String[] { "OperationParams", });
internal_static_Ydb_Monitoring_NodeCheckResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_Ydb_Monitoring_NodeCheckResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_NodeCheckResponse_descriptor,
new java.lang.String[] { "Operation", });
internal_static_Ydb_Monitoring_SelfCheck_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_Ydb_Monitoring_SelfCheck_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_SelfCheck_descriptor,
new java.lang.String[] { });
internal_static_Ydb_Monitoring_StoragePDiskStatus_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_Ydb_Monitoring_StoragePDiskStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_StoragePDiskStatus_descriptor,
new java.lang.String[] { "Id", "Overall", });
internal_static_Ydb_Monitoring_StorageVDiskStatus_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_Ydb_Monitoring_StorageVDiskStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_StorageVDiskStatus_descriptor,
new java.lang.String[] { "Id", "Overall", "VdiskStatus", "Pdisk", });
internal_static_Ydb_Monitoring_StorageGroupStatus_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_Ydb_Monitoring_StorageGroupStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_StorageGroupStatus_descriptor,
new java.lang.String[] { "Id", "Overall", "Vdisks", });
internal_static_Ydb_Monitoring_StoragePoolStatus_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_Ydb_Monitoring_StoragePoolStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_StoragePoolStatus_descriptor,
new java.lang.String[] { "Id", "Overall", "Groups", });
internal_static_Ydb_Monitoring_StorageStatus_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_Ydb_Monitoring_StorageStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_StorageStatus_descriptor,
new java.lang.String[] { "Overall", "Pools", });
internal_static_Ydb_Monitoring_ComputeTabletStatus_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_Ydb_Monitoring_ComputeTabletStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_ComputeTabletStatus_descriptor,
new java.lang.String[] { "Overall", "Type", "State", "Count", "Id", });
internal_static_Ydb_Monitoring_ThreadPoolStatus_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_Ydb_Monitoring_ThreadPoolStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_ThreadPoolStatus_descriptor,
new java.lang.String[] { "Overall", "Name", "Usage", });
internal_static_Ydb_Monitoring_LoadAverageStatus_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_Ydb_Monitoring_LoadAverageStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_LoadAverageStatus_descriptor,
new java.lang.String[] { "Overall", "Load", "Cores", });
internal_static_Ydb_Monitoring_ComputeNodeStatus_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_Ydb_Monitoring_ComputeNodeStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_ComputeNodeStatus_descriptor,
new java.lang.String[] { "Id", "Overall", "Tablets", "Pools", "Load", });
internal_static_Ydb_Monitoring_ComputeStatus_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_Ydb_Monitoring_ComputeStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_ComputeStatus_descriptor,
new java.lang.String[] { "Overall", "Nodes", "Tablets", });
internal_static_Ydb_Monitoring_LocationNode_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_Ydb_Monitoring_LocationNode_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_LocationNode_descriptor,
new java.lang.String[] { "Id", "Host", "Port", });
internal_static_Ydb_Monitoring_LocationStoragePDisk_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_Ydb_Monitoring_LocationStoragePDisk_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_LocationStoragePDisk_descriptor,
new java.lang.String[] { "Id", "Path", });
internal_static_Ydb_Monitoring_LocationStorageVDisk_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_Ydb_Monitoring_LocationStorageVDisk_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_LocationStorageVDisk_descriptor,
new java.lang.String[] { "Id", "Pdisk", });
internal_static_Ydb_Monitoring_LocationStorageGroup_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_Ydb_Monitoring_LocationStorageGroup_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_LocationStorageGroup_descriptor,
new java.lang.String[] { "Id", "Vdisk", });
internal_static_Ydb_Monitoring_LocationStoragePool_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_Ydb_Monitoring_LocationStoragePool_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_LocationStoragePool_descriptor,
new java.lang.String[] { "Name", "Group", });
internal_static_Ydb_Monitoring_LocationStorage_descriptor =
getDescriptor().getMessageTypes().get(21);
internal_static_Ydb_Monitoring_LocationStorage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_LocationStorage_descriptor,
new java.lang.String[] { "Node", "Pool", });
internal_static_Ydb_Monitoring_LocationComputePool_descriptor =
getDescriptor().getMessageTypes().get(22);
internal_static_Ydb_Monitoring_LocationComputePool_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_LocationComputePool_descriptor,
new java.lang.String[] { "Name", });
internal_static_Ydb_Monitoring_LocationComputeTablet_descriptor =
getDescriptor().getMessageTypes().get(23);
internal_static_Ydb_Monitoring_LocationComputeTablet_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_LocationComputeTablet_descriptor,
new java.lang.String[] { "Type", "Id", "Count", });
internal_static_Ydb_Monitoring_LocationCompute_descriptor =
getDescriptor().getMessageTypes().get(24);
internal_static_Ydb_Monitoring_LocationCompute_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_LocationCompute_descriptor,
new java.lang.String[] { "Node", "Pool", "Tablet", });
internal_static_Ydb_Monitoring_LocationDatabase_descriptor =
getDescriptor().getMessageTypes().get(25);
internal_static_Ydb_Monitoring_LocationDatabase_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_LocationDatabase_descriptor,
new java.lang.String[] { "Name", });
internal_static_Ydb_Monitoring_Location_descriptor =
getDescriptor().getMessageTypes().get(26);
internal_static_Ydb_Monitoring_Location_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_Location_descriptor,
new java.lang.String[] { "Storage", "Compute", "Database", });
internal_static_Ydb_Monitoring_IssueLog_descriptor =
getDescriptor().getMessageTypes().get(27);
internal_static_Ydb_Monitoring_IssueLog_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_IssueLog_descriptor,
new java.lang.String[] { "Id", "Status", "Message", "Location", "Reason", "Type", "Level", });
internal_static_Ydb_Monitoring_DatabaseStatus_descriptor =
getDescriptor().getMessageTypes().get(28);
internal_static_Ydb_Monitoring_DatabaseStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_DatabaseStatus_descriptor,
new java.lang.String[] { "Name", "Overall", "Storage", "Compute", });
internal_static_Ydb_Monitoring_SelfCheckResult_descriptor =
getDescriptor().getMessageTypes().get(29);
internal_static_Ydb_Monitoring_SelfCheckResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Monitoring_SelfCheckResult_descriptor,
new java.lang.String[] { "SelfCheckResult", "IssueLog", "DatabaseStatus", });
com.yandex.ydb.OperationProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}