tech.ydb.proto.discovery.DiscoveryProtos Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: protos/ydb_discovery.proto
package tech.ydb.proto.discovery;
public final class DiscoveryProtos {
private DiscoveryProtos() {}
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 ListEndpointsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Discovery.ListEndpointsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string database = 1;
* @return The database.
*/
java.lang.String getDatabase();
/**
* string database = 1;
* @return The bytes for database.
*/
com.google.protobuf.ByteString
getDatabaseBytes();
/**
* repeated string service = 2;
* @return A list containing the service.
*/
java.util.List
getServiceList();
/**
* repeated string service = 2;
* @return The count of service.
*/
int getServiceCount();
/**
* repeated string service = 2;
* @param index The index of the element to return.
* @return The service at the given index.
*/
java.lang.String getService(int index);
/**
* repeated string service = 2;
* @param index The index of the value to return.
* @return The bytes of the service at the given index.
*/
com.google.protobuf.ByteString
getServiceBytes(int index);
}
/**
* Protobuf type {@code Ydb.Discovery.ListEndpointsRequest}
*/
public static final class ListEndpointsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Discovery.ListEndpointsRequest)
ListEndpointsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListEndpointsRequest.newBuilder() to construct.
private ListEndpointsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListEndpointsRequest() {
database_ = "";
service_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListEndpointsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest.class, tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest.Builder.class);
}
public static final int DATABASE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object database_ = "";
/**
* string database = 1;
* @return The database.
*/
@java.lang.Override
public java.lang.String getDatabase() {
java.lang.Object ref = database_;
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();
database_ = s;
return s;
}
}
/**
* string database = 1;
* @return The bytes for database.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDatabaseBytes() {
java.lang.Object ref = database_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
database_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERVICE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList service_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string service = 2;
* @return A list containing the service.
*/
public com.google.protobuf.ProtocolStringList
getServiceList() {
return service_;
}
/**
* repeated string service = 2;
* @return The count of service.
*/
public int getServiceCount() {
return service_.size();
}
/**
* repeated string service = 2;
* @param index The index of the element to return.
* @return The service at the given index.
*/
public java.lang.String getService(int index) {
return service_.get(index);
}
/**
* repeated string service = 2;
* @param index The index of the value to return.
* @return The bytes of the service at the given index.
*/
public com.google.protobuf.ByteString
getServiceBytes(int index) {
return service_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_);
}
for (int i = 0; i < service_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, service_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_);
}
{
int dataSize = 0;
for (int i = 0; i < service_.size(); i++) {
dataSize += computeStringSizeNoTag(service_.getRaw(i));
}
size += dataSize;
size += 1 * getServiceList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest)) {
return super.equals(obj);
}
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest other = (tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest) obj;
if (!getDatabase()
.equals(other.getDatabase())) return false;
if (!getServiceList()
.equals(other.getServiceList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DATABASE_FIELD_NUMBER;
hash = (53 * hash) + getDatabase().hashCode();
if (getServiceCount() > 0) {
hash = (37 * hash) + SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getServiceList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest 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 tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest 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 tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest 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(tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest 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.Discovery.ListEndpointsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Discovery.ListEndpointsRequest)
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest.class, tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest.Builder.class);
}
// Construct using tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
database_ = "";
service_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsRequest_descriptor;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest getDefaultInstanceForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest build() {
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest buildPartial() {
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest result = new tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.database_ = database_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
service_.makeImmutable();
result.service_ = service_;
}
}
@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 tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest) {
return mergeFrom((tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest other) {
if (other == tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest.getDefaultInstance()) return this;
if (!other.getDatabase().isEmpty()) {
database_ = other.database_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.service_.isEmpty()) {
if (service_.isEmpty()) {
service_ = other.service_;
bitField0_ |= 0x00000002;
} else {
ensureServiceIsMutable();
service_.addAll(other.service_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
database_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureServiceIsMutable();
service_.add(s);
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object database_ = "";
/**
* string database = 1;
* @return The database.
*/
public java.lang.String getDatabase() {
java.lang.Object ref = database_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
database_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string database = 1;
* @return The bytes for database.
*/
public com.google.protobuf.ByteString
getDatabaseBytes() {
java.lang.Object ref = database_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
database_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string database = 1;
* @param value The database to set.
* @return This builder for chaining.
*/
public Builder setDatabase(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
database_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string database = 1;
* @return This builder for chaining.
*/
public Builder clearDatabase() {
database_ = getDefaultInstance().getDatabase();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string database = 1;
* @param value The bytes for database to set.
* @return This builder for chaining.
*/
public Builder setDatabaseBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
database_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList service_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureServiceIsMutable() {
if (!service_.isModifiable()) {
service_ = new com.google.protobuf.LazyStringArrayList(service_);
}
bitField0_ |= 0x00000002;
}
/**
* repeated string service = 2;
* @return A list containing the service.
*/
public com.google.protobuf.ProtocolStringList
getServiceList() {
service_.makeImmutable();
return service_;
}
/**
* repeated string service = 2;
* @return The count of service.
*/
public int getServiceCount() {
return service_.size();
}
/**
* repeated string service = 2;
* @param index The index of the element to return.
* @return The service at the given index.
*/
public java.lang.String getService(int index) {
return service_.get(index);
}
/**
* repeated string service = 2;
* @param index The index of the value to return.
* @return The bytes of the service at the given index.
*/
public com.google.protobuf.ByteString
getServiceBytes(int index) {
return service_.getByteString(index);
}
/**
* repeated string service = 2;
* @param index The index to set the value at.
* @param value The service to set.
* @return This builder for chaining.
*/
public Builder setService(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureServiceIsMutable();
service_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string service = 2;
* @param value The service to add.
* @return This builder for chaining.
*/
public Builder addService(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureServiceIsMutable();
service_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string service = 2;
* @param values The service to add.
* @return This builder for chaining.
*/
public Builder addAllService(
java.lang.Iterable values) {
ensureServiceIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, service_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string service = 2;
* @return This builder for chaining.
*/
public Builder clearService() {
service_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
* repeated string service = 2;
* @param value The bytes of the service to add.
* @return This builder for chaining.
*/
public Builder addServiceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureServiceIsMutable();
service_.add(value);
bitField0_ |= 0x00000002;
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.Discovery.ListEndpointsRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Discovery.ListEndpointsRequest)
private static final tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest();
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListEndpointsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EndpointInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Discovery.EndpointInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* This is an address (usually fqdn) and port of this node's grpc endpoint
*
*
* string address = 1;
* @return The address.
*/
java.lang.String getAddress();
/**
*
* This is an address (usually fqdn) and port of this node's grpc endpoint
*
*
* string address = 1;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
* uint32 port = 2;
* @return The port.
*/
int getPort();
/**
* float load_factor = 3;
* @return The loadFactor.
*/
float getLoadFactor();
/**
* bool ssl = 4;
* @return The ssl.
*/
boolean getSsl();
/**
* repeated string service = 5;
* @return A list containing the service.
*/
java.util.List
getServiceList();
/**
* repeated string service = 5;
* @return The count of service.
*/
int getServiceCount();
/**
* repeated string service = 5;
* @param index The index of the element to return.
* @return The service at the given index.
*/
java.lang.String getService(int index);
/**
* repeated string service = 5;
* @param index The index of the value to return.
* @return The bytes of the service at the given index.
*/
com.google.protobuf.ByteString
getServiceBytes(int index);
/**
* string location = 6;
* @return The location.
*/
java.lang.String getLocation();
/**
* string location = 6;
* @return The bytes for location.
*/
com.google.protobuf.ByteString
getLocationBytes();
/**
* uint32 node_id = 7;
* @return The nodeId.
*/
int getNodeId();
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @return A list containing the ipV4.
*/
java.util.List
getIpV4List();
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @return The count of ipV4.
*/
int getIpV4Count();
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @param index The index of the element to return.
* @return The ipV4 at the given index.
*/
java.lang.String getIpV4(int index);
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @param index The index of the value to return.
* @return The bytes of the ipV4 at the given index.
*/
com.google.protobuf.ByteString
getIpV4Bytes(int index);
/**
* repeated string ip_v6 = 9;
* @return A list containing the ipV6.
*/
java.util.List
getIpV6List();
/**
* repeated string ip_v6 = 9;
* @return The count of ipV6.
*/
int getIpV6Count();
/**
* repeated string ip_v6 = 9;
* @param index The index of the element to return.
* @return The ipV6 at the given index.
*/
java.lang.String getIpV6(int index);
/**
* repeated string ip_v6 = 9;
* @param index The index of the value to return.
* @return The bytes of the ipV6 at the given index.
*/
com.google.protobuf.ByteString
getIpV6Bytes(int index);
/**
*
* Optional value for grpc.ssl_target_name_override option that must be
* used when connecting to this endpoint. This may be specified when an ssl
* endpoint is using certificate chain valid for a balancer hostname, and
* not this specific node hostname.
*
*
* string ssl_target_name_override = 10;
* @return The sslTargetNameOverride.
*/
java.lang.String getSslTargetNameOverride();
/**
*
* Optional value for grpc.ssl_target_name_override option that must be
* used when connecting to this endpoint. This may be specified when an ssl
* endpoint is using certificate chain valid for a balancer hostname, and
* not this specific node hostname.
*
*
* string ssl_target_name_override = 10;
* @return The bytes for sslTargetNameOverride.
*/
com.google.protobuf.ByteString
getSslTargetNameOverrideBytes();
}
/**
* Protobuf type {@code Ydb.Discovery.EndpointInfo}
*/
public static final class EndpointInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Discovery.EndpointInfo)
EndpointInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use EndpointInfo.newBuilder() to construct.
private EndpointInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EndpointInfo() {
address_ = "";
service_ =
com.google.protobuf.LazyStringArrayList.emptyList();
location_ = "";
ipV4_ =
com.google.protobuf.LazyStringArrayList.emptyList();
ipV6_ =
com.google.protobuf.LazyStringArrayList.emptyList();
sslTargetNameOverride_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EndpointInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_EndpointInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_EndpointInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.class, tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object address_ = "";
/**
*
* This is an address (usually fqdn) and port of this node's grpc endpoint
*
*
* string address = 1;
* @return The address.
*/
@java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
address_ = s;
return s;
}
}
/**
*
* This is an address (usually fqdn) and port of this node's grpc endpoint
*
*
* string address = 1;
* @return The bytes for address.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORT_FIELD_NUMBER = 2;
private int port_ = 0;
/**
* uint32 port = 2;
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
public static final int LOAD_FACTOR_FIELD_NUMBER = 3;
private float loadFactor_ = 0F;
/**
* float load_factor = 3;
* @return The loadFactor.
*/
@java.lang.Override
public float getLoadFactor() {
return loadFactor_;
}
public static final int SSL_FIELD_NUMBER = 4;
private boolean ssl_ = false;
/**
* bool ssl = 4;
* @return The ssl.
*/
@java.lang.Override
public boolean getSsl() {
return ssl_;
}
public static final int SERVICE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList service_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string service = 5;
* @return A list containing the service.
*/
public com.google.protobuf.ProtocolStringList
getServiceList() {
return service_;
}
/**
* repeated string service = 5;
* @return The count of service.
*/
public int getServiceCount() {
return service_.size();
}
/**
* repeated string service = 5;
* @param index The index of the element to return.
* @return The service at the given index.
*/
public java.lang.String getService(int index) {
return service_.get(index);
}
/**
* repeated string service = 5;
* @param index The index of the value to return.
* @return The bytes of the service at the given index.
*/
public com.google.protobuf.ByteString
getServiceBytes(int index) {
return service_.getByteString(index);
}
public static final int LOCATION_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object location_ = "";
/**
* string location = 6;
* @return The location.
*/
@java.lang.Override
public java.lang.String getLocation() {
java.lang.Object ref = location_;
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();
location_ = s;
return s;
}
}
/**
* string location = 6;
* @return The bytes for location.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLocationBytes() {
java.lang.Object ref = location_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
location_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NODE_ID_FIELD_NUMBER = 7;
private int nodeId_ = 0;
/**
* uint32 node_id = 7;
* @return The nodeId.
*/
@java.lang.Override
public int getNodeId() {
return nodeId_;
}
public static final int IP_V4_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList ipV4_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @return A list containing the ipV4.
*/
public com.google.protobuf.ProtocolStringList
getIpV4List() {
return ipV4_;
}
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @return The count of ipV4.
*/
public int getIpV4Count() {
return ipV4_.size();
}
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @param index The index of the element to return.
* @return The ipV4 at the given index.
*/
public java.lang.String getIpV4(int index) {
return ipV4_.get(index);
}
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @param index The index of the value to return.
* @return The bytes of the ipV4 at the given index.
*/
public com.google.protobuf.ByteString
getIpV4Bytes(int index) {
return ipV4_.getByteString(index);
}
public static final int IP_V6_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList ipV6_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string ip_v6 = 9;
* @return A list containing the ipV6.
*/
public com.google.protobuf.ProtocolStringList
getIpV6List() {
return ipV6_;
}
/**
* repeated string ip_v6 = 9;
* @return The count of ipV6.
*/
public int getIpV6Count() {
return ipV6_.size();
}
/**
* repeated string ip_v6 = 9;
* @param index The index of the element to return.
* @return The ipV6 at the given index.
*/
public java.lang.String getIpV6(int index) {
return ipV6_.get(index);
}
/**
* repeated string ip_v6 = 9;
* @param index The index of the value to return.
* @return The bytes of the ipV6 at the given index.
*/
public com.google.protobuf.ByteString
getIpV6Bytes(int index) {
return ipV6_.getByteString(index);
}
public static final int SSL_TARGET_NAME_OVERRIDE_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object sslTargetNameOverride_ = "";
/**
*
* Optional value for grpc.ssl_target_name_override option that must be
* used when connecting to this endpoint. This may be specified when an ssl
* endpoint is using certificate chain valid for a balancer hostname, and
* not this specific node hostname.
*
*
* string ssl_target_name_override = 10;
* @return The sslTargetNameOverride.
*/
@java.lang.Override
public java.lang.String getSslTargetNameOverride() {
java.lang.Object ref = sslTargetNameOverride_;
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();
sslTargetNameOverride_ = s;
return s;
}
}
/**
*
* Optional value for grpc.ssl_target_name_override option that must be
* used when connecting to this endpoint. This may be specified when an ssl
* endpoint is using certificate chain valid for a balancer hostname, and
* not this specific node hostname.
*
*
* string ssl_target_name_override = 10;
* @return The bytes for sslTargetNameOverride.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSslTargetNameOverrideBytes() {
java.lang.Object ref = sslTargetNameOverride_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sslTargetNameOverride_ = 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(address_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_);
}
if (port_ != 0) {
output.writeUInt32(2, port_);
}
if (java.lang.Float.floatToRawIntBits(loadFactor_) != 0) {
output.writeFloat(3, loadFactor_);
}
if (ssl_ != false) {
output.writeBool(4, ssl_);
}
for (int i = 0; i < service_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, service_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, location_);
}
if (nodeId_ != 0) {
output.writeUInt32(7, nodeId_);
}
for (int i = 0; i < ipV4_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, ipV4_.getRaw(i));
}
for (int i = 0; i < ipV6_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, ipV6_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sslTargetNameOverride_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, sslTargetNameOverride_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_);
}
if (port_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, port_);
}
if (java.lang.Float.floatToRawIntBits(loadFactor_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, loadFactor_);
}
if (ssl_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, ssl_);
}
{
int dataSize = 0;
for (int i = 0; i < service_.size(); i++) {
dataSize += computeStringSizeNoTag(service_.getRaw(i));
}
size += dataSize;
size += 1 * getServiceList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, location_);
}
if (nodeId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, nodeId_);
}
{
int dataSize = 0;
for (int i = 0; i < ipV4_.size(); i++) {
dataSize += computeStringSizeNoTag(ipV4_.getRaw(i));
}
size += dataSize;
size += 1 * getIpV4List().size();
}
{
int dataSize = 0;
for (int i = 0; i < ipV6_.size(); i++) {
dataSize += computeStringSizeNoTag(ipV6_.getRaw(i));
}
size += dataSize;
size += 1 * getIpV6List().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sslTargetNameOverride_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, sslTargetNameOverride_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo)) {
return super.equals(obj);
}
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo other = (tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo) obj;
if (!getAddress()
.equals(other.getAddress())) return false;
if (getPort()
!= other.getPort()) return false;
if (java.lang.Float.floatToIntBits(getLoadFactor())
!= java.lang.Float.floatToIntBits(
other.getLoadFactor())) return false;
if (getSsl()
!= other.getSsl()) return false;
if (!getServiceList()
.equals(other.getServiceList())) return false;
if (!getLocation()
.equals(other.getLocation())) return false;
if (getNodeId()
!= other.getNodeId()) return false;
if (!getIpV4List()
.equals(other.getIpV4List())) return false;
if (!getIpV6List()
.equals(other.getIpV6List())) return false;
if (!getSslTargetNameOverride()
.equals(other.getSslTargetNameOverride())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort();
hash = (37 * hash) + LOAD_FACTOR_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getLoadFactor());
hash = (37 * hash) + SSL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSsl());
if (getServiceCount() > 0) {
hash = (37 * hash) + SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getServiceList().hashCode();
}
hash = (37 * hash) + LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getLocation().hashCode();
hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId();
if (getIpV4Count() > 0) {
hash = (37 * hash) + IP_V4_FIELD_NUMBER;
hash = (53 * hash) + getIpV4List().hashCode();
}
if (getIpV6Count() > 0) {
hash = (37 * hash) + IP_V6_FIELD_NUMBER;
hash = (53 * hash) + getIpV6List().hashCode();
}
hash = (37 * hash) + SSL_TARGET_NAME_OVERRIDE_FIELD_NUMBER;
hash = (53 * hash) + getSslTargetNameOverride().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo 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 tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo 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 tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo 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(tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo 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.Discovery.EndpointInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Discovery.EndpointInfo)
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_EndpointInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_EndpointInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.class, tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.Builder.class);
}
// Construct using tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
address_ = "";
port_ = 0;
loadFactor_ = 0F;
ssl_ = false;
service_ =
com.google.protobuf.LazyStringArrayList.emptyList();
location_ = "";
nodeId_ = 0;
ipV4_ =
com.google.protobuf.LazyStringArrayList.emptyList();
ipV6_ =
com.google.protobuf.LazyStringArrayList.emptyList();
sslTargetNameOverride_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_EndpointInfo_descriptor;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo getDefaultInstanceForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo build() {
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo buildPartial() {
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo result = new tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.address_ = address_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.port_ = port_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.loadFactor_ = loadFactor_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.ssl_ = ssl_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
service_.makeImmutable();
result.service_ = service_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.location_ = location_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.nodeId_ = nodeId_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
ipV4_.makeImmutable();
result.ipV4_ = ipV4_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
ipV6_.makeImmutable();
result.ipV6_ = ipV6_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.sslTargetNameOverride_ = sslTargetNameOverride_;
}
}
@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 tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo) {
return mergeFrom((tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo other) {
if (other == tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.getDefaultInstance()) return this;
if (!other.getAddress().isEmpty()) {
address_ = other.address_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPort() != 0) {
setPort(other.getPort());
}
if (other.getLoadFactor() != 0F) {
setLoadFactor(other.getLoadFactor());
}
if (other.getSsl() != false) {
setSsl(other.getSsl());
}
if (!other.service_.isEmpty()) {
if (service_.isEmpty()) {
service_ = other.service_;
bitField0_ |= 0x00000010;
} else {
ensureServiceIsMutable();
service_.addAll(other.service_);
}
onChanged();
}
if (!other.getLocation().isEmpty()) {
location_ = other.location_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.getNodeId() != 0) {
setNodeId(other.getNodeId());
}
if (!other.ipV4_.isEmpty()) {
if (ipV4_.isEmpty()) {
ipV4_ = other.ipV4_;
bitField0_ |= 0x00000080;
} else {
ensureIpV4IsMutable();
ipV4_.addAll(other.ipV4_);
}
onChanged();
}
if (!other.ipV6_.isEmpty()) {
if (ipV6_.isEmpty()) {
ipV6_ = other.ipV6_;
bitField0_ |= 0x00000100;
} else {
ensureIpV6IsMutable();
ipV6_.addAll(other.ipV6_);
}
onChanged();
}
if (!other.getSslTargetNameOverride().isEmpty()) {
sslTargetNameOverride_ = other.sslTargetNameOverride_;
bitField0_ |= 0x00000200;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
address_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
port_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 29: {
loadFactor_ = input.readFloat();
bitField0_ |= 0x00000004;
break;
} // case 29
case 32: {
ssl_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
java.lang.String s = input.readStringRequireUtf8();
ensureServiceIsMutable();
service_.add(s);
break;
} // case 42
case 50: {
location_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
nodeId_ = input.readUInt32();
bitField0_ |= 0x00000040;
break;
} // case 56
case 66: {
java.lang.String s = input.readStringRequireUtf8();
ensureIpV4IsMutable();
ipV4_.add(s);
break;
} // case 66
case 74: {
java.lang.String s = input.readStringRequireUtf8();
ensureIpV6IsMutable();
ipV6_.add(s);
break;
} // case 74
case 82: {
sslTargetNameOverride_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object address_ = "";
/**
*
* This is an address (usually fqdn) and port of this node's grpc endpoint
*
*
* string address = 1;
* @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This is an address (usually fqdn) and port of this node's grpc endpoint
*
*
* string address = 1;
* @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This is an address (usually fqdn) and port of this node's grpc endpoint
*
*
* string address = 1;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
address_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* This is an address (usually fqdn) and port of this node's grpc endpoint
*
*
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* This is an address (usually fqdn) and port of this node's grpc endpoint
*
*
* string address = 1;
* @param value The bytes for address to set.
* @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
address_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int port_ ;
/**
* uint32 port = 2;
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
/**
* uint32 port = 2;
* @param value The port to set.
* @return This builder for chaining.
*/
public Builder setPort(int value) {
port_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* uint32 port = 2;
* @return This builder for chaining.
*/
public Builder clearPort() {
bitField0_ = (bitField0_ & ~0x00000002);
port_ = 0;
onChanged();
return this;
}
private float loadFactor_ ;
/**
* float load_factor = 3;
* @return The loadFactor.
*/
@java.lang.Override
public float getLoadFactor() {
return loadFactor_;
}
/**
* float load_factor = 3;
* @param value The loadFactor to set.
* @return This builder for chaining.
*/
public Builder setLoadFactor(float value) {
loadFactor_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* float load_factor = 3;
* @return This builder for chaining.
*/
public Builder clearLoadFactor() {
bitField0_ = (bitField0_ & ~0x00000004);
loadFactor_ = 0F;
onChanged();
return this;
}
private boolean ssl_ ;
/**
* bool ssl = 4;
* @return The ssl.
*/
@java.lang.Override
public boolean getSsl() {
return ssl_;
}
/**
* bool ssl = 4;
* @param value The ssl to set.
* @return This builder for chaining.
*/
public Builder setSsl(boolean value) {
ssl_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* bool ssl = 4;
* @return This builder for chaining.
*/
public Builder clearSsl() {
bitField0_ = (bitField0_ & ~0x00000008);
ssl_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList service_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureServiceIsMutable() {
if (!service_.isModifiable()) {
service_ = new com.google.protobuf.LazyStringArrayList(service_);
}
bitField0_ |= 0x00000010;
}
/**
* repeated string service = 5;
* @return A list containing the service.
*/
public com.google.protobuf.ProtocolStringList
getServiceList() {
service_.makeImmutable();
return service_;
}
/**
* repeated string service = 5;
* @return The count of service.
*/
public int getServiceCount() {
return service_.size();
}
/**
* repeated string service = 5;
* @param index The index of the element to return.
* @return The service at the given index.
*/
public java.lang.String getService(int index) {
return service_.get(index);
}
/**
* repeated string service = 5;
* @param index The index of the value to return.
* @return The bytes of the service at the given index.
*/
public com.google.protobuf.ByteString
getServiceBytes(int index) {
return service_.getByteString(index);
}
/**
* repeated string service = 5;
* @param index The index to set the value at.
* @param value The service to set.
* @return This builder for chaining.
*/
public Builder setService(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureServiceIsMutable();
service_.set(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated string service = 5;
* @param value The service to add.
* @return This builder for chaining.
*/
public Builder addService(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureServiceIsMutable();
service_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated string service = 5;
* @param values The service to add.
* @return This builder for chaining.
*/
public Builder addAllService(
java.lang.Iterable values) {
ensureServiceIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, service_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated string service = 5;
* @return This builder for chaining.
*/
public Builder clearService() {
service_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);;
onChanged();
return this;
}
/**
* repeated string service = 5;
* @param value The bytes of the service to add.
* @return This builder for chaining.
*/
public Builder addServiceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureServiceIsMutable();
service_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object location_ = "";
/**
* string location = 6;
* @return The location.
*/
public java.lang.String getLocation() {
java.lang.Object ref = location_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
location_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string location = 6;
* @return The bytes for location.
*/
public com.google.protobuf.ByteString
getLocationBytes() {
java.lang.Object ref = location_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
location_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string location = 6;
* @param value The location to set.
* @return This builder for chaining.
*/
public Builder setLocation(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
location_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* string location = 6;
* @return This builder for chaining.
*/
public Builder clearLocation() {
location_ = getDefaultInstance().getLocation();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
* string location = 6;
* @param value The bytes for location to set.
* @return This builder for chaining.
*/
public Builder setLocationBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
location_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private int nodeId_ ;
/**
* uint32 node_id = 7;
* @return The nodeId.
*/
@java.lang.Override
public int getNodeId() {
return nodeId_;
}
/**
* uint32 node_id = 7;
* @param value The nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeId(int value) {
nodeId_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* uint32 node_id = 7;
* @return This builder for chaining.
*/
public Builder clearNodeId() {
bitField0_ = (bitField0_ & ~0x00000040);
nodeId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList ipV4_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureIpV4IsMutable() {
if (!ipV4_.isModifiable()) {
ipV4_ = new com.google.protobuf.LazyStringArrayList(ipV4_);
}
bitField0_ |= 0x00000080;
}
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @return A list containing the ipV4.
*/
public com.google.protobuf.ProtocolStringList
getIpV4List() {
ipV4_.makeImmutable();
return ipV4_;
}
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @return The count of ipV4.
*/
public int getIpV4Count() {
return ipV4_.size();
}
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @param index The index of the element to return.
* @return The ipV4 at the given index.
*/
public java.lang.String getIpV4(int index) {
return ipV4_.get(index);
}
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @param index The index of the value to return.
* @return The bytes of the ipV4 at the given index.
*/
public com.google.protobuf.ByteString
getIpV4Bytes(int index) {
return ipV4_.getByteString(index);
}
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @param index The index to set the value at.
* @param value The ipV4 to set.
* @return This builder for chaining.
*/
public Builder setIpV4(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureIpV4IsMutable();
ipV4_.set(index, value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @param value The ipV4 to add.
* @return This builder for chaining.
*/
public Builder addIpV4(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureIpV4IsMutable();
ipV4_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @param values The ipV4 to add.
* @return This builder for chaining.
*/
public Builder addAllIpV4(
java.lang.Iterable values) {
ensureIpV4IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, ipV4_);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @return This builder for chaining.
*/
public Builder clearIpV4() {
ipV4_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);;
onChanged();
return this;
}
/**
*
* Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may
* use instead of a dns name in the address field.
*
*
* repeated string ip_v4 = 8;
* @param value The bytes of the ipV4 to add.
* @return This builder for chaining.
*/
public Builder addIpV4Bytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureIpV4IsMutable();
ipV4_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList ipV6_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureIpV6IsMutable() {
if (!ipV6_.isModifiable()) {
ipV6_ = new com.google.protobuf.LazyStringArrayList(ipV6_);
}
bitField0_ |= 0x00000100;
}
/**
* repeated string ip_v6 = 9;
* @return A list containing the ipV6.
*/
public com.google.protobuf.ProtocolStringList
getIpV6List() {
ipV6_.makeImmutable();
return ipV6_;
}
/**
* repeated string ip_v6 = 9;
* @return The count of ipV6.
*/
public int getIpV6Count() {
return ipV6_.size();
}
/**
* repeated string ip_v6 = 9;
* @param index The index of the element to return.
* @return The ipV6 at the given index.
*/
public java.lang.String getIpV6(int index) {
return ipV6_.get(index);
}
/**
* repeated string ip_v6 = 9;
* @param index The index of the value to return.
* @return The bytes of the ipV6 at the given index.
*/
public com.google.protobuf.ByteString
getIpV6Bytes(int index) {
return ipV6_.getByteString(index);
}
/**
* repeated string ip_v6 = 9;
* @param index The index to set the value at.
* @param value The ipV6 to set.
* @return This builder for chaining.
*/
public Builder setIpV6(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureIpV6IsMutable();
ipV6_.set(index, value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated string ip_v6 = 9;
* @param value The ipV6 to add.
* @return This builder for chaining.
*/
public Builder addIpV6(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureIpV6IsMutable();
ipV6_.add(value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated string ip_v6 = 9;
* @param values The ipV6 to add.
* @return This builder for chaining.
*/
public Builder addAllIpV6(
java.lang.Iterable values) {
ensureIpV6IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, ipV6_);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated string ip_v6 = 9;
* @return This builder for chaining.
*/
public Builder clearIpV6() {
ipV6_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);;
onChanged();
return this;
}
/**
* repeated string ip_v6 = 9;
* @param value The bytes of the ipV6 to add.
* @return This builder for chaining.
*/
public Builder addIpV6Bytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureIpV6IsMutable();
ipV6_.add(value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private java.lang.Object sslTargetNameOverride_ = "";
/**
*
* Optional value for grpc.ssl_target_name_override option that must be
* used when connecting to this endpoint. This may be specified when an ssl
* endpoint is using certificate chain valid for a balancer hostname, and
* not this specific node hostname.
*
*
* string ssl_target_name_override = 10;
* @return The sslTargetNameOverride.
*/
public java.lang.String getSslTargetNameOverride() {
java.lang.Object ref = sslTargetNameOverride_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sslTargetNameOverride_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional value for grpc.ssl_target_name_override option that must be
* used when connecting to this endpoint. This may be specified when an ssl
* endpoint is using certificate chain valid for a balancer hostname, and
* not this specific node hostname.
*
*
* string ssl_target_name_override = 10;
* @return The bytes for sslTargetNameOverride.
*/
public com.google.protobuf.ByteString
getSslTargetNameOverrideBytes() {
java.lang.Object ref = sslTargetNameOverride_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sslTargetNameOverride_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional value for grpc.ssl_target_name_override option that must be
* used when connecting to this endpoint. This may be specified when an ssl
* endpoint is using certificate chain valid for a balancer hostname, and
* not this specific node hostname.
*
*
* string ssl_target_name_override = 10;
* @param value The sslTargetNameOverride to set.
* @return This builder for chaining.
*/
public Builder setSslTargetNameOverride(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sslTargetNameOverride_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Optional value for grpc.ssl_target_name_override option that must be
* used when connecting to this endpoint. This may be specified when an ssl
* endpoint is using certificate chain valid for a balancer hostname, and
* not this specific node hostname.
*
*
* string ssl_target_name_override = 10;
* @return This builder for chaining.
*/
public Builder clearSslTargetNameOverride() {
sslTargetNameOverride_ = getDefaultInstance().getSslTargetNameOverride();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
* Optional value for grpc.ssl_target_name_override option that must be
* used when connecting to this endpoint. This may be specified when an ssl
* endpoint is using certificate chain valid for a balancer hostname, and
* not this specific node hostname.
*
*
* string ssl_target_name_override = 10;
* @param value The bytes for sslTargetNameOverride to set.
* @return This builder for chaining.
*/
public Builder setSslTargetNameOverrideBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sslTargetNameOverride_ = value;
bitField0_ |= 0x00000200;
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.Discovery.EndpointInfo)
}
// @@protoc_insertion_point(class_scope:Ydb.Discovery.EndpointInfo)
private static final tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo();
}
public static tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EndpointInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListEndpointsResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Discovery.ListEndpointsResult)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
java.util.List
getEndpointsList();
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo getEndpoints(int index);
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
int getEndpointsCount();
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
java.util.List extends tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfoOrBuilder>
getEndpointsOrBuilderList();
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfoOrBuilder getEndpointsOrBuilder(
int index);
/**
* string self_location = 2;
* @return The selfLocation.
*/
java.lang.String getSelfLocation();
/**
* string self_location = 2;
* @return The bytes for selfLocation.
*/
com.google.protobuf.ByteString
getSelfLocationBytes();
}
/**
* Protobuf type {@code Ydb.Discovery.ListEndpointsResult}
*/
public static final class ListEndpointsResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Discovery.ListEndpointsResult)
ListEndpointsResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListEndpointsResult.newBuilder() to construct.
private ListEndpointsResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListEndpointsResult() {
endpoints_ = java.util.Collections.emptyList();
selfLocation_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListEndpointsResult();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult.class, tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult.Builder.class);
}
public static final int ENDPOINTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List endpoints_;
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
@java.lang.Override
public java.util.List getEndpointsList() {
return endpoints_;
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
@java.lang.Override
public java.util.List extends tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfoOrBuilder>
getEndpointsOrBuilderList() {
return endpoints_;
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
@java.lang.Override
public int getEndpointsCount() {
return endpoints_.size();
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo getEndpoints(int index) {
return endpoints_.get(index);
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfoOrBuilder getEndpointsOrBuilder(
int index) {
return endpoints_.get(index);
}
public static final int SELF_LOCATION_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object selfLocation_ = "";
/**
* string self_location = 2;
* @return The selfLocation.
*/
@java.lang.Override
public java.lang.String getSelfLocation() {
java.lang.Object ref = selfLocation_;
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();
selfLocation_ = s;
return s;
}
}
/**
* string self_location = 2;
* @return The bytes for selfLocation.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSelfLocationBytes() {
java.lang.Object ref = selfLocation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
selfLocation_ = 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 {
for (int i = 0; i < endpoints_.size(); i++) {
output.writeMessage(1, endpoints_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLocation_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, selfLocation_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < endpoints_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, endpoints_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLocation_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, selfLocation_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult)) {
return super.equals(obj);
}
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult other = (tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult) obj;
if (!getEndpointsList()
.equals(other.getEndpointsList())) return false;
if (!getSelfLocation()
.equals(other.getSelfLocation())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getEndpointsCount() > 0) {
hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER;
hash = (53 * hash) + getEndpointsList().hashCode();
}
hash = (37 * hash) + SELF_LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getSelfLocation().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult 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 tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult 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 tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult 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(tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult 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.Discovery.ListEndpointsResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Discovery.ListEndpointsResult)
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult.class, tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult.Builder.class);
}
// Construct using tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (endpointsBuilder_ == null) {
endpoints_ = java.util.Collections.emptyList();
} else {
endpoints_ = null;
endpointsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
selfLocation_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsResult_descriptor;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult getDefaultInstanceForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult build() {
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult buildPartial() {
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult result = new tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult result) {
if (endpointsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
endpoints_ = java.util.Collections.unmodifiableList(endpoints_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.endpoints_ = endpoints_;
} else {
result.endpoints_ = endpointsBuilder_.build();
}
}
private void buildPartial0(tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.selfLocation_ = selfLocation_;
}
}
@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 tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult) {
return mergeFrom((tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult other) {
if (other == tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult.getDefaultInstance()) return this;
if (endpointsBuilder_ == null) {
if (!other.endpoints_.isEmpty()) {
if (endpoints_.isEmpty()) {
endpoints_ = other.endpoints_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEndpointsIsMutable();
endpoints_.addAll(other.endpoints_);
}
onChanged();
}
} else {
if (!other.endpoints_.isEmpty()) {
if (endpointsBuilder_.isEmpty()) {
endpointsBuilder_.dispose();
endpointsBuilder_ = null;
endpoints_ = other.endpoints_;
bitField0_ = (bitField0_ & ~0x00000001);
endpointsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEndpointsFieldBuilder() : null;
} else {
endpointsBuilder_.addAllMessages(other.endpoints_);
}
}
}
if (!other.getSelfLocation().isEmpty()) {
selfLocation_ = other.selfLocation_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo m =
input.readMessage(
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.parser(),
extensionRegistry);
if (endpointsBuilder_ == null) {
ensureEndpointsIsMutable();
endpoints_.add(m);
} else {
endpointsBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
selfLocation_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List endpoints_ =
java.util.Collections.emptyList();
private void ensureEndpointsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
endpoints_ = new java.util.ArrayList(endpoints_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo, tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.Builder, tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfoOrBuilder> endpointsBuilder_;
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public java.util.List getEndpointsList() {
if (endpointsBuilder_ == null) {
return java.util.Collections.unmodifiableList(endpoints_);
} else {
return endpointsBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public int getEndpointsCount() {
if (endpointsBuilder_ == null) {
return endpoints_.size();
} else {
return endpointsBuilder_.getCount();
}
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo getEndpoints(int index) {
if (endpointsBuilder_ == null) {
return endpoints_.get(index);
} else {
return endpointsBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public Builder setEndpoints(
int index, tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo value) {
if (endpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEndpointsIsMutable();
endpoints_.set(index, value);
onChanged();
} else {
endpointsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public Builder setEndpoints(
int index, tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.Builder builderForValue) {
if (endpointsBuilder_ == null) {
ensureEndpointsIsMutable();
endpoints_.set(index, builderForValue.build());
onChanged();
} else {
endpointsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public Builder addEndpoints(tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo value) {
if (endpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEndpointsIsMutable();
endpoints_.add(value);
onChanged();
} else {
endpointsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public Builder addEndpoints(
int index, tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo value) {
if (endpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEndpointsIsMutable();
endpoints_.add(index, value);
onChanged();
} else {
endpointsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public Builder addEndpoints(
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.Builder builderForValue) {
if (endpointsBuilder_ == null) {
ensureEndpointsIsMutable();
endpoints_.add(builderForValue.build());
onChanged();
} else {
endpointsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public Builder addEndpoints(
int index, tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.Builder builderForValue) {
if (endpointsBuilder_ == null) {
ensureEndpointsIsMutable();
endpoints_.add(index, builderForValue.build());
onChanged();
} else {
endpointsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public Builder addAllEndpoints(
java.lang.Iterable extends tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo> values) {
if (endpointsBuilder_ == null) {
ensureEndpointsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, endpoints_);
onChanged();
} else {
endpointsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public Builder clearEndpoints() {
if (endpointsBuilder_ == null) {
endpoints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
endpointsBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public Builder removeEndpoints(int index) {
if (endpointsBuilder_ == null) {
ensureEndpointsIsMutable();
endpoints_.remove(index);
onChanged();
} else {
endpointsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.Builder getEndpointsBuilder(
int index) {
return getEndpointsFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfoOrBuilder getEndpointsOrBuilder(
int index) {
if (endpointsBuilder_ == null) {
return endpoints_.get(index); } else {
return endpointsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public java.util.List extends tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfoOrBuilder>
getEndpointsOrBuilderList() {
if (endpointsBuilder_ != null) {
return endpointsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(endpoints_);
}
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.Builder addEndpointsBuilder() {
return getEndpointsFieldBuilder().addBuilder(
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.getDefaultInstance());
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.Builder addEndpointsBuilder(
int index) {
return getEndpointsFieldBuilder().addBuilder(
index, tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.getDefaultInstance());
}
/**
* repeated .Ydb.Discovery.EndpointInfo endpoints = 1;
*/
public java.util.List
getEndpointsBuilderList() {
return getEndpointsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo, tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.Builder, tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfoOrBuilder>
getEndpointsFieldBuilder() {
if (endpointsBuilder_ == null) {
endpointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo, tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfo.Builder, tech.ydb.proto.discovery.DiscoveryProtos.EndpointInfoOrBuilder>(
endpoints_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
endpoints_ = null;
}
return endpointsBuilder_;
}
private java.lang.Object selfLocation_ = "";
/**
* string self_location = 2;
* @return The selfLocation.
*/
public java.lang.String getSelfLocation() {
java.lang.Object ref = selfLocation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
selfLocation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string self_location = 2;
* @return The bytes for selfLocation.
*/
public com.google.protobuf.ByteString
getSelfLocationBytes() {
java.lang.Object ref = selfLocation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
selfLocation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string self_location = 2;
* @param value The selfLocation to set.
* @return This builder for chaining.
*/
public Builder setSelfLocation(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
selfLocation_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string self_location = 2;
* @return This builder for chaining.
*/
public Builder clearSelfLocation() {
selfLocation_ = getDefaultInstance().getSelfLocation();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string self_location = 2;
* @param value The bytes for selfLocation to set.
* @return This builder for chaining.
*/
public Builder setSelfLocationBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
selfLocation_ = value;
bitField0_ |= 0x00000002;
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.Discovery.ListEndpointsResult)
}
// @@protoc_insertion_point(class_scope:Ydb.Discovery.ListEndpointsResult)
private static final tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult();
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListEndpointsResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListEndpointsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Discovery.ListEndpointsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
tech.ydb.proto.OperationProtos.Operation getOperation();
/**
* .Ydb.Operations.Operation operation = 1;
*/
tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
* Protobuf type {@code Ydb.Discovery.ListEndpointsResponse}
*/
public static final class ListEndpointsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Discovery.ListEndpointsResponse)
ListEndpointsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListEndpointsResponse.newBuilder() to construct.
private ListEndpointsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListEndpointsResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListEndpointsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse.class, tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse.Builder.class);
}
private int bitField0_;
public static final int OPERATION_FIELD_NUMBER = 1;
private tech.ydb.proto.OperationProtos.Operation operation_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public tech.ydb.proto.OperationProtos.Operation getOperation() {
return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
@java.lang.Override
public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getOperation());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperation());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse)) {
return super.equals(obj);
}
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse other = (tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse) obj;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse 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 tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse 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 tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse 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(tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse 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.Discovery.ListEndpointsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Discovery.ListEndpointsResponse)
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse.class, tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse.Builder.class);
}
// Construct using tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOperationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
operation_ = null;
if (operationBuilder_ != null) {
operationBuilder_.dispose();
operationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_ListEndpointsResponse_descriptor;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse getDefaultInstanceForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse build() {
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse buildPartial() {
tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse result = new tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.operation_ = operationBuilder_ == null
? operation_
: operationBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse) {
return mergeFrom((tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse other) {
if (other == tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse.getDefaultInstance()) return this;
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getOperationFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private tech.ydb.proto.OperationProtos.Operation operation_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
public tech.ydb.proto.OperationProtos.Operation getOperation() {
if (operationBuilder_ == null) {
return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
} else {
return operationBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
} else {
operationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(
tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
operation_ = builderForValue.build();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
operation_ != null &&
operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) {
getOperationBuilder().mergeFrom(value);
} else {
operation_ = value;
}
} else {
operationBuilder_.mergeFrom(value);
}
if (operation_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
bitField0_ = (bitField0_ & ~0x00000001);
operation_ = null;
if (operationBuilder_ != null) {
operationBuilder_.dispose();
operationBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
if (operationBuilder_ != null) {
return operationBuilder_.getMessageOrBuilder();
} else {
return operation_ == null ?
tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.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.Discovery.ListEndpointsResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Discovery.ListEndpointsResponse)
private static final tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse();
}
public static tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListEndpointsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.ListEndpointsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WhoAmIRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Discovery.WhoAmIRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Include user groups in response
*
*
* bool include_groups = 1;
* @return The includeGroups.
*/
boolean getIncludeGroups();
}
/**
* Protobuf type {@code Ydb.Discovery.WhoAmIRequest}
*/
public static final class WhoAmIRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Discovery.WhoAmIRequest)
WhoAmIRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use WhoAmIRequest.newBuilder() to construct.
private WhoAmIRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WhoAmIRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WhoAmIRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest.class, tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest.Builder.class);
}
public static final int INCLUDE_GROUPS_FIELD_NUMBER = 1;
private boolean includeGroups_ = false;
/**
*
* Include user groups in response
*
*
* bool include_groups = 1;
* @return The includeGroups.
*/
@java.lang.Override
public boolean getIncludeGroups() {
return includeGroups_;
}
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 (includeGroups_ != false) {
output.writeBool(1, includeGroups_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (includeGroups_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, includeGroups_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest)) {
return super.equals(obj);
}
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest other = (tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest) obj;
if (getIncludeGroups()
!= other.getIncludeGroups()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + INCLUDE_GROUPS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIncludeGroups());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest 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 tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest 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 tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest 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(tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest 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.Discovery.WhoAmIRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Discovery.WhoAmIRequest)
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest.class, tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest.Builder.class);
}
// Construct using tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
includeGroups_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIRequest_descriptor;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest getDefaultInstanceForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest build() {
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest buildPartial() {
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest result = new tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.includeGroups_ = includeGroups_;
}
}
@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 tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest) {
return mergeFrom((tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest other) {
if (other == tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest.getDefaultInstance()) return this;
if (other.getIncludeGroups() != false) {
setIncludeGroups(other.getIncludeGroups());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
includeGroups_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private boolean includeGroups_ ;
/**
*
* Include user groups in response
*
*
* bool include_groups = 1;
* @return The includeGroups.
*/
@java.lang.Override
public boolean getIncludeGroups() {
return includeGroups_;
}
/**
*
* Include user groups in response
*
*
* bool include_groups = 1;
* @param value The includeGroups to set.
* @return This builder for chaining.
*/
public Builder setIncludeGroups(boolean value) {
includeGroups_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Include user groups in response
*
*
* bool include_groups = 1;
* @return This builder for chaining.
*/
public Builder clearIncludeGroups() {
bitField0_ = (bitField0_ & ~0x00000001);
includeGroups_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Discovery.WhoAmIRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Discovery.WhoAmIRequest)
private static final tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest();
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WhoAmIRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WhoAmIResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Discovery.WhoAmIResult)
com.google.protobuf.MessageOrBuilder {
/**
*
* User SID (Security ID)
*
*
* string user = 1;
* @return The user.
*/
java.lang.String getUser();
/**
*
* User SID (Security ID)
*
*
* string user = 1;
* @return The bytes for user.
*/
com.google.protobuf.ByteString
getUserBytes();
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @return A list containing the groups.
*/
java.util.List
getGroupsList();
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @return The count of groups.
*/
int getGroupsCount();
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @param index The index of the element to return.
* @return The groups at the given index.
*/
java.lang.String getGroups(int index);
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @param index The index of the value to return.
* @return The bytes of the groups at the given index.
*/
com.google.protobuf.ByteString
getGroupsBytes(int index);
}
/**
* Protobuf type {@code Ydb.Discovery.WhoAmIResult}
*/
public static final class WhoAmIResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Discovery.WhoAmIResult)
WhoAmIResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use WhoAmIResult.newBuilder() to construct.
private WhoAmIResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WhoAmIResult() {
user_ = "";
groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WhoAmIResult();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult.class, tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult.Builder.class);
}
public static final int USER_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object user_ = "";
/**
*
* User SID (Security ID)
*
*
* string user = 1;
* @return The user.
*/
@java.lang.Override
public java.lang.String getUser() {
java.lang.Object ref = user_;
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();
user_ = s;
return s;
}
}
/**
*
* User SID (Security ID)
*
*
* string user = 1;
* @return The bytes for user.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
user_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GROUPS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @return A list containing the groups.
*/
public com.google.protobuf.ProtocolStringList
getGroupsList() {
return groups_;
}
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @return The count of groups.
*/
public int getGroupsCount() {
return groups_.size();
}
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @param index The index of the element to return.
* @return The groups at the given index.
*/
public java.lang.String getGroups(int index) {
return groups_.get(index);
}
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @param index The index of the value to return.
* @return The bytes of the groups at the given index.
*/
public com.google.protobuf.ByteString
getGroupsBytes(int index) {
return groups_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, user_);
}
for (int i = 0; i < groups_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groups_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, user_);
}
{
int dataSize = 0;
for (int i = 0; i < groups_.size(); i++) {
dataSize += computeStringSizeNoTag(groups_.getRaw(i));
}
size += dataSize;
size += 1 * getGroupsList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult)) {
return super.equals(obj);
}
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult other = (tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult) obj;
if (!getUser()
.equals(other.getUser())) return false;
if (!getGroupsList()
.equals(other.getGroupsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + USER_FIELD_NUMBER;
hash = (53 * hash) + getUser().hashCode();
if (getGroupsCount() > 0) {
hash = (37 * hash) + GROUPS_FIELD_NUMBER;
hash = (53 * hash) + getGroupsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult 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 tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult 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 tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult 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(tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult 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.Discovery.WhoAmIResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Discovery.WhoAmIResult)
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult.class, tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult.Builder.class);
}
// Construct using tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
user_ = "";
groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIResult_descriptor;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult getDefaultInstanceForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult build() {
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult buildPartial() {
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult result = new tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.user_ = user_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
groups_.makeImmutable();
result.groups_ = groups_;
}
}
@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 tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult) {
return mergeFrom((tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult other) {
if (other == tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult.getDefaultInstance()) return this;
if (!other.getUser().isEmpty()) {
user_ = other.user_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.groups_.isEmpty()) {
if (groups_.isEmpty()) {
groups_ = other.groups_;
bitField0_ |= 0x00000002;
} else {
ensureGroupsIsMutable();
groups_.addAll(other.groups_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
user_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureGroupsIsMutable();
groups_.add(s);
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object user_ = "";
/**
*
* User SID (Security ID)
*
*
* string user = 1;
* @return The user.
*/
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
user_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* User SID (Security ID)
*
*
* string user = 1;
* @return The bytes for user.
*/
public com.google.protobuf.ByteString
getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
user_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* User SID (Security ID)
*
*
* string user = 1;
* @param value The user to set.
* @return This builder for chaining.
*/
public Builder setUser(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
user_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* User SID (Security ID)
*
*
* string user = 1;
* @return This builder for chaining.
*/
public Builder clearUser() {
user_ = getDefaultInstance().getUser();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* User SID (Security ID)
*
*
* string user = 1;
* @param value The bytes for user to set.
* @return This builder for chaining.
*/
public Builder setUserBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
user_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureGroupsIsMutable() {
if (!groups_.isModifiable()) {
groups_ = new com.google.protobuf.LazyStringArrayList(groups_);
}
bitField0_ |= 0x00000002;
}
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @return A list containing the groups.
*/
public com.google.protobuf.ProtocolStringList
getGroupsList() {
groups_.makeImmutable();
return groups_;
}
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @return The count of groups.
*/
public int getGroupsCount() {
return groups_.size();
}
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @param index The index of the element to return.
* @return The groups at the given index.
*/
public java.lang.String getGroups(int index) {
return groups_.get(index);
}
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @param index The index of the value to return.
* @return The bytes of the groups at the given index.
*/
public com.google.protobuf.ByteString
getGroupsBytes(int index) {
return groups_.getByteString(index);
}
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @param index The index to set the value at.
* @param value The groups to set.
* @return This builder for chaining.
*/
public Builder setGroups(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGroupsIsMutable();
groups_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @param value The groups to add.
* @return This builder for chaining.
*/
public Builder addGroups(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGroupsIsMutable();
groups_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @param values The groups to add.
* @return This builder for chaining.
*/
public Builder addAllGroups(
java.lang.Iterable values) {
ensureGroupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, groups_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @return This builder for chaining.
*/
public Builder clearGroups() {
groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
* List of group SIDs (Security IDs) for the user
*
*
* repeated string groups = 2;
* @param value The bytes of the groups to add.
* @return This builder for chaining.
*/
public Builder addGroupsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureGroupsIsMutable();
groups_.add(value);
bitField0_ |= 0x00000002;
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.Discovery.WhoAmIResult)
}
// @@protoc_insertion_point(class_scope:Ydb.Discovery.WhoAmIResult)
private static final tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult();
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WhoAmIResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WhoAmIResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Discovery.WhoAmIResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
tech.ydb.proto.OperationProtos.Operation getOperation();
/**
* .Ydb.Operations.Operation operation = 1;
*/
tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
* Protobuf type {@code Ydb.Discovery.WhoAmIResponse}
*/
public static final class WhoAmIResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Discovery.WhoAmIResponse)
WhoAmIResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use WhoAmIResponse.newBuilder() to construct.
private WhoAmIResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WhoAmIResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WhoAmIResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse.class, tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse.Builder.class);
}
private int bitField0_;
public static final int OPERATION_FIELD_NUMBER = 1;
private tech.ydb.proto.OperationProtos.Operation operation_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public tech.ydb.proto.OperationProtos.Operation getOperation() {
return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
@java.lang.Override
public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getOperation());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperation());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse)) {
return super.equals(obj);
}
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse other = (tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse) obj;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse 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 tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse 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 tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse 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(tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse 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.Discovery.WhoAmIResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Discovery.WhoAmIResponse)
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse.class, tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse.Builder.class);
}
// Construct using tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOperationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
operation_ = null;
if (operationBuilder_ != null) {
operationBuilder_.dispose();
operationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_WhoAmIResponse_descriptor;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse getDefaultInstanceForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse build() {
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse buildPartial() {
tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse result = new tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.operation_ = operationBuilder_ == null
? operation_
: operationBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse) {
return mergeFrom((tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse other) {
if (other == tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse.getDefaultInstance()) return this;
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getOperationFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private tech.ydb.proto.OperationProtos.Operation operation_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
public tech.ydb.proto.OperationProtos.Operation getOperation() {
if (operationBuilder_ == null) {
return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
} else {
return operationBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
} else {
operationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(
tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
operation_ = builderForValue.build();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
operation_ != null &&
operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) {
getOperationBuilder().mergeFrom(value);
} else {
operation_ = value;
}
} else {
operationBuilder_.mergeFrom(value);
}
if (operation_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
bitField0_ = (bitField0_ & ~0x00000001);
operation_ = null;
if (operationBuilder_ != null) {
operationBuilder_.dispose();
operationBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
if (operationBuilder_ != null) {
return operationBuilder_.getMessageOrBuilder();
} else {
return operation_ == null ?
tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.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.Discovery.WhoAmIResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Discovery.WhoAmIResponse)
private static final tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse();
}
public static tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WhoAmIResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.WhoAmIResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeLocationOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Discovery.NodeLocation)
com.google.protobuf.MessageOrBuilder {
/**
*
* compatibility section -- will be removed in future versions
*
*
* optional uint32 data_center_num = 1 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.data_center_num is deprecated.
* See protos/ydb_discovery.proto;l=67
* @return Whether the dataCenterNum field is set.
*/
@java.lang.Deprecated boolean hasDataCenterNum();
/**
*
* compatibility section -- will be removed in future versions
*
*
* optional uint32 data_center_num = 1 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.data_center_num is deprecated.
* See protos/ydb_discovery.proto;l=67
* @return The dataCenterNum.
*/
@java.lang.Deprecated int getDataCenterNum();
/**
* optional uint32 room_num = 2 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.room_num is deprecated.
* See protos/ydb_discovery.proto;l=68
* @return Whether the roomNum field is set.
*/
@java.lang.Deprecated boolean hasRoomNum();
/**
* optional uint32 room_num = 2 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.room_num is deprecated.
* See protos/ydb_discovery.proto;l=68
* @return The roomNum.
*/
@java.lang.Deprecated int getRoomNum();
/**
* optional uint32 rack_num = 3 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.rack_num is deprecated.
* See protos/ydb_discovery.proto;l=69
* @return Whether the rackNum field is set.
*/
@java.lang.Deprecated boolean hasRackNum();
/**
* optional uint32 rack_num = 3 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.rack_num is deprecated.
* See protos/ydb_discovery.proto;l=69
* @return The rackNum.
*/
@java.lang.Deprecated int getRackNum();
/**
* optional uint32 body_num = 4 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body_num is deprecated.
* See protos/ydb_discovery.proto;l=70
* @return Whether the bodyNum field is set.
*/
@java.lang.Deprecated boolean hasBodyNum();
/**
* optional uint32 body_num = 4 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body_num is deprecated.
* See protos/ydb_discovery.proto;l=70
* @return The bodyNum.
*/
@java.lang.Deprecated int getBodyNum();
/**
*
* for compatibility with WalleLocation
*
*
* optional uint32 body = 100500 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body is deprecated.
* See protos/ydb_discovery.proto;l=71
* @return Whether the body field is set.
*/
@java.lang.Deprecated boolean hasBody();
/**
*
* for compatibility with WalleLocation
*
*
* optional uint32 body = 100500 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body is deprecated.
* See protos/ydb_discovery.proto;l=71
* @return The body.
*/
@java.lang.Deprecated int getBody();
/**
* optional string data_center = 10;
* @return Whether the dataCenter field is set.
*/
boolean hasDataCenter();
/**
* optional string data_center = 10;
* @return The dataCenter.
*/
java.lang.String getDataCenter();
/**
* optional string data_center = 10;
* @return The bytes for dataCenter.
*/
com.google.protobuf.ByteString
getDataCenterBytes();
/**
* optional string module = 20;
* @return Whether the module field is set.
*/
boolean hasModule();
/**
* optional string module = 20;
* @return The module.
*/
java.lang.String getModule();
/**
* optional string module = 20;
* @return The bytes for module.
*/
com.google.protobuf.ByteString
getModuleBytes();
/**
* optional string rack = 30;
* @return Whether the rack field is set.
*/
boolean hasRack();
/**
* optional string rack = 30;
* @return The rack.
*/
java.lang.String getRack();
/**
* optional string rack = 30;
* @return The bytes for rack.
*/
com.google.protobuf.ByteString
getRackBytes();
/**
* optional string unit = 40;
* @return Whether the unit field is set.
*/
boolean hasUnit();
/**
* optional string unit = 40;
* @return The unit.
*/
java.lang.String getUnit();
/**
* optional string unit = 40;
* @return The bytes for unit.
*/
com.google.protobuf.ByteString
getUnitBytes();
}
/**
* Protobuf type {@code Ydb.Discovery.NodeLocation}
*/
public static final class NodeLocation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Discovery.NodeLocation)
NodeLocationOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeLocation.newBuilder() to construct.
private NodeLocation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeLocation() {
dataCenter_ = "";
module_ = "";
rack_ = "";
unit_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeLocation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_NodeLocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_NodeLocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation.class, tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation.Builder.class);
}
private int bitField0_;
public static final int DATA_CENTER_NUM_FIELD_NUMBER = 1;
private int dataCenterNum_ = 0;
/**
*
* compatibility section -- will be removed in future versions
*
*
* optional uint32 data_center_num = 1 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.data_center_num is deprecated.
* See protos/ydb_discovery.proto;l=67
* @return Whether the dataCenterNum field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasDataCenterNum() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* compatibility section -- will be removed in future versions
*
*
* optional uint32 data_center_num = 1 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.data_center_num is deprecated.
* See protos/ydb_discovery.proto;l=67
* @return The dataCenterNum.
*/
@java.lang.Override
@java.lang.Deprecated public int getDataCenterNum() {
return dataCenterNum_;
}
public static final int ROOM_NUM_FIELD_NUMBER = 2;
private int roomNum_ = 0;
/**
* optional uint32 room_num = 2 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.room_num is deprecated.
* See protos/ydb_discovery.proto;l=68
* @return Whether the roomNum field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasRoomNum() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 room_num = 2 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.room_num is deprecated.
* See protos/ydb_discovery.proto;l=68
* @return The roomNum.
*/
@java.lang.Override
@java.lang.Deprecated public int getRoomNum() {
return roomNum_;
}
public static final int RACK_NUM_FIELD_NUMBER = 3;
private int rackNum_ = 0;
/**
* optional uint32 rack_num = 3 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.rack_num is deprecated.
* See protos/ydb_discovery.proto;l=69
* @return Whether the rackNum field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasRackNum() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 rack_num = 3 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.rack_num is deprecated.
* See protos/ydb_discovery.proto;l=69
* @return The rackNum.
*/
@java.lang.Override
@java.lang.Deprecated public int getRackNum() {
return rackNum_;
}
public static final int BODY_NUM_FIELD_NUMBER = 4;
private int bodyNum_ = 0;
/**
* optional uint32 body_num = 4 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body_num is deprecated.
* See protos/ydb_discovery.proto;l=70
* @return Whether the bodyNum field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasBodyNum() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 body_num = 4 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body_num is deprecated.
* See protos/ydb_discovery.proto;l=70
* @return The bodyNum.
*/
@java.lang.Override
@java.lang.Deprecated public int getBodyNum() {
return bodyNum_;
}
public static final int BODY_FIELD_NUMBER = 100500;
private int body_ = 0;
/**
*
* for compatibility with WalleLocation
*
*
* optional uint32 body = 100500 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body is deprecated.
* See protos/ydb_discovery.proto;l=71
* @return Whether the body field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasBody() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* for compatibility with WalleLocation
*
*
* optional uint32 body = 100500 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body is deprecated.
* See protos/ydb_discovery.proto;l=71
* @return The body.
*/
@java.lang.Override
@java.lang.Deprecated public int getBody() {
return body_;
}
public static final int DATA_CENTER_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object dataCenter_ = "";
/**
* optional string data_center = 10;
* @return Whether the dataCenter field is set.
*/
@java.lang.Override
public boolean hasDataCenter() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string data_center = 10;
* @return The dataCenter.
*/
@java.lang.Override
public java.lang.String getDataCenter() {
java.lang.Object ref = dataCenter_;
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();
dataCenter_ = s;
return s;
}
}
/**
* optional string data_center = 10;
* @return The bytes for dataCenter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDataCenterBytes() {
java.lang.Object ref = dataCenter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataCenter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MODULE_FIELD_NUMBER = 20;
@SuppressWarnings("serial")
private volatile java.lang.Object module_ = "";
/**
* optional string module = 20;
* @return Whether the module field is set.
*/
@java.lang.Override
public boolean hasModule() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string module = 20;
* @return The module.
*/
@java.lang.Override
public java.lang.String getModule() {
java.lang.Object ref = module_;
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();
module_ = s;
return s;
}
}
/**
* optional string module = 20;
* @return The bytes for module.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getModuleBytes() {
java.lang.Object ref = module_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
module_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RACK_FIELD_NUMBER = 30;
@SuppressWarnings("serial")
private volatile java.lang.Object rack_ = "";
/**
* optional string rack = 30;
* @return Whether the rack field is set.
*/
@java.lang.Override
public boolean hasRack() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string rack = 30;
* @return The rack.
*/
@java.lang.Override
public java.lang.String getRack() {
java.lang.Object ref = rack_;
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();
rack_ = s;
return s;
}
}
/**
* optional string rack = 30;
* @return The bytes for rack.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRackBytes() {
java.lang.Object ref = rack_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rack_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UNIT_FIELD_NUMBER = 40;
@SuppressWarnings("serial")
private volatile java.lang.Object unit_ = "";
/**
* optional string unit = 40;
* @return Whether the unit field is set.
*/
@java.lang.Override
public boolean hasUnit() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string unit = 40;
* @return The unit.
*/
@java.lang.Override
public java.lang.String getUnit() {
java.lang.Object ref = unit_;
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();
unit_ = s;
return s;
}
}
/**
* optional string unit = 40;
* @return The bytes for unit.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUnitBytes() {
java.lang.Object ref = unit_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unit_ = 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 (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt32(1, dataCenterNum_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(2, roomNum_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, rackNum_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt32(4, bodyNum_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, dataCenter_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 20, module_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 30, rack_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 40, unit_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt32(100500, body_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, dataCenterNum_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, roomNum_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, rackNum_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, bodyNum_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, dataCenter_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, module_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, rack_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(40, unit_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(100500, body_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation)) {
return super.equals(obj);
}
tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation other = (tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation) obj;
if (hasDataCenterNum() != other.hasDataCenterNum()) return false;
if (hasDataCenterNum()) {
if (getDataCenterNum()
!= other.getDataCenterNum()) return false;
}
if (hasRoomNum() != other.hasRoomNum()) return false;
if (hasRoomNum()) {
if (getRoomNum()
!= other.getRoomNum()) return false;
}
if (hasRackNum() != other.hasRackNum()) return false;
if (hasRackNum()) {
if (getRackNum()
!= other.getRackNum()) return false;
}
if (hasBodyNum() != other.hasBodyNum()) return false;
if (hasBodyNum()) {
if (getBodyNum()
!= other.getBodyNum()) return false;
}
if (hasBody() != other.hasBody()) return false;
if (hasBody()) {
if (getBody()
!= other.getBody()) return false;
}
if (hasDataCenter() != other.hasDataCenter()) return false;
if (hasDataCenter()) {
if (!getDataCenter()
.equals(other.getDataCenter())) return false;
}
if (hasModule() != other.hasModule()) return false;
if (hasModule()) {
if (!getModule()
.equals(other.getModule())) return false;
}
if (hasRack() != other.hasRack()) return false;
if (hasRack()) {
if (!getRack()
.equals(other.getRack())) return false;
}
if (hasUnit() != other.hasUnit()) return false;
if (hasUnit()) {
if (!getUnit()
.equals(other.getUnit())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasDataCenterNum()) {
hash = (37 * hash) + DATA_CENTER_NUM_FIELD_NUMBER;
hash = (53 * hash) + getDataCenterNum();
}
if (hasRoomNum()) {
hash = (37 * hash) + ROOM_NUM_FIELD_NUMBER;
hash = (53 * hash) + getRoomNum();
}
if (hasRackNum()) {
hash = (37 * hash) + RACK_NUM_FIELD_NUMBER;
hash = (53 * hash) + getRackNum();
}
if (hasBodyNum()) {
hash = (37 * hash) + BODY_NUM_FIELD_NUMBER;
hash = (53 * hash) + getBodyNum();
}
if (hasBody()) {
hash = (37 * hash) + BODY_FIELD_NUMBER;
hash = (53 * hash) + getBody();
}
if (hasDataCenter()) {
hash = (37 * hash) + DATA_CENTER_FIELD_NUMBER;
hash = (53 * hash) + getDataCenter().hashCode();
}
if (hasModule()) {
hash = (37 * hash) + MODULE_FIELD_NUMBER;
hash = (53 * hash) + getModule().hashCode();
}
if (hasRack()) {
hash = (37 * hash) + RACK_FIELD_NUMBER;
hash = (53 * hash) + getRack().hashCode();
}
if (hasUnit()) {
hash = (37 * hash) + UNIT_FIELD_NUMBER;
hash = (53 * hash) + getUnit().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation 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 tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation 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 tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation 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(tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation 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.Discovery.NodeLocation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Discovery.NodeLocation)
tech.ydb.proto.discovery.DiscoveryProtos.NodeLocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_NodeLocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_NodeLocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation.class, tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation.Builder.class);
}
// Construct using tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
dataCenterNum_ = 0;
roomNum_ = 0;
rackNum_ = 0;
bodyNum_ = 0;
body_ = 0;
dataCenter_ = "";
module_ = "";
rack_ = "";
unit_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.internal_static_Ydb_Discovery_NodeLocation_descriptor;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation getDefaultInstanceForType() {
return tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation build() {
tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation buildPartial() {
tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation result = new tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.dataCenterNum_ = dataCenterNum_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.roomNum_ = roomNum_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.rackNum_ = rackNum_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.bodyNum_ = bodyNum_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.body_ = body_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.dataCenter_ = dataCenter_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.module_ = module_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.rack_ = rack_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.unit_ = unit_;
to_bitField0_ |= 0x00000100;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation) {
return mergeFrom((tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation other) {
if (other == tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation.getDefaultInstance()) return this;
if (other.hasDataCenterNum()) {
setDataCenterNum(other.getDataCenterNum());
}
if (other.hasRoomNum()) {
setRoomNum(other.getRoomNum());
}
if (other.hasRackNum()) {
setRackNum(other.getRackNum());
}
if (other.hasBodyNum()) {
setBodyNum(other.getBodyNum());
}
if (other.hasBody()) {
setBody(other.getBody());
}
if (other.hasDataCenter()) {
dataCenter_ = other.dataCenter_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasModule()) {
module_ = other.module_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasRack()) {
rack_ = other.rack_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasUnit()) {
unit_ = other.unit_;
bitField0_ |= 0x00000100;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
dataCenterNum_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
roomNum_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
rackNum_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
bodyNum_ = input.readUInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 82: {
dataCenter_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 82
case 162: {
module_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 162
case 242: {
rack_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 242
case 322: {
unit_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 322
case 804000: {
body_ = input.readUInt32();
bitField0_ |= 0x00000010;
break;
} // case 804000
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int dataCenterNum_ ;
/**
*
* compatibility section -- will be removed in future versions
*
*
* optional uint32 data_center_num = 1 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.data_center_num is deprecated.
* See protos/ydb_discovery.proto;l=67
* @return Whether the dataCenterNum field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasDataCenterNum() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* compatibility section -- will be removed in future versions
*
*
* optional uint32 data_center_num = 1 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.data_center_num is deprecated.
* See protos/ydb_discovery.proto;l=67
* @return The dataCenterNum.
*/
@java.lang.Override
@java.lang.Deprecated public int getDataCenterNum() {
return dataCenterNum_;
}
/**
*
* compatibility section -- will be removed in future versions
*
*
* optional uint32 data_center_num = 1 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.data_center_num is deprecated.
* See protos/ydb_discovery.proto;l=67
* @param value The dataCenterNum to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setDataCenterNum(int value) {
dataCenterNum_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* compatibility section -- will be removed in future versions
*
*
* optional uint32 data_center_num = 1 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.data_center_num is deprecated.
* See protos/ydb_discovery.proto;l=67
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearDataCenterNum() {
bitField0_ = (bitField0_ & ~0x00000001);
dataCenterNum_ = 0;
onChanged();
return this;
}
private int roomNum_ ;
/**
* optional uint32 room_num = 2 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.room_num is deprecated.
* See protos/ydb_discovery.proto;l=68
* @return Whether the roomNum field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasRoomNum() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 room_num = 2 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.room_num is deprecated.
* See protos/ydb_discovery.proto;l=68
* @return The roomNum.
*/
@java.lang.Override
@java.lang.Deprecated public int getRoomNum() {
return roomNum_;
}
/**
* optional uint32 room_num = 2 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.room_num is deprecated.
* See protos/ydb_discovery.proto;l=68
* @param value The roomNum to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setRoomNum(int value) {
roomNum_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional uint32 room_num = 2 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.room_num is deprecated.
* See protos/ydb_discovery.proto;l=68
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearRoomNum() {
bitField0_ = (bitField0_ & ~0x00000002);
roomNum_ = 0;
onChanged();
return this;
}
private int rackNum_ ;
/**
* optional uint32 rack_num = 3 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.rack_num is deprecated.
* See protos/ydb_discovery.proto;l=69
* @return Whether the rackNum field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasRackNum() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 rack_num = 3 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.rack_num is deprecated.
* See protos/ydb_discovery.proto;l=69
* @return The rackNum.
*/
@java.lang.Override
@java.lang.Deprecated public int getRackNum() {
return rackNum_;
}
/**
* optional uint32 rack_num = 3 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.rack_num is deprecated.
* See protos/ydb_discovery.proto;l=69
* @param value The rackNum to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setRackNum(int value) {
rackNum_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional uint32 rack_num = 3 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.rack_num is deprecated.
* See protos/ydb_discovery.proto;l=69
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearRackNum() {
bitField0_ = (bitField0_ & ~0x00000004);
rackNum_ = 0;
onChanged();
return this;
}
private int bodyNum_ ;
/**
* optional uint32 body_num = 4 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body_num is deprecated.
* See protos/ydb_discovery.proto;l=70
* @return Whether the bodyNum field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasBodyNum() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 body_num = 4 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body_num is deprecated.
* See protos/ydb_discovery.proto;l=70
* @return The bodyNum.
*/
@java.lang.Override
@java.lang.Deprecated public int getBodyNum() {
return bodyNum_;
}
/**
* optional uint32 body_num = 4 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body_num is deprecated.
* See protos/ydb_discovery.proto;l=70
* @param value The bodyNum to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setBodyNum(int value) {
bodyNum_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional uint32 body_num = 4 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body_num is deprecated.
* See protos/ydb_discovery.proto;l=70
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearBodyNum() {
bitField0_ = (bitField0_ & ~0x00000008);
bodyNum_ = 0;
onChanged();
return this;
}
private int body_ ;
/**
*
* for compatibility with WalleLocation
*
*
* optional uint32 body = 100500 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body is deprecated.
* See protos/ydb_discovery.proto;l=71
* @return Whether the body field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasBody() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* for compatibility with WalleLocation
*
*
* optional uint32 body = 100500 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body is deprecated.
* See protos/ydb_discovery.proto;l=71
* @return The body.
*/
@java.lang.Override
@java.lang.Deprecated public int getBody() {
return body_;
}
/**
*
* for compatibility with WalleLocation
*
*
* optional uint32 body = 100500 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body is deprecated.
* See protos/ydb_discovery.proto;l=71
* @param value The body to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setBody(int value) {
body_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* for compatibility with WalleLocation
*
*
* optional uint32 body = 100500 [deprecated = true];
* @deprecated Ydb.Discovery.NodeLocation.body is deprecated.
* See protos/ydb_discovery.proto;l=71
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearBody() {
bitField0_ = (bitField0_ & ~0x00000010);
body_ = 0;
onChanged();
return this;
}
private java.lang.Object dataCenter_ = "";
/**
* optional string data_center = 10;
* @return Whether the dataCenter field is set.
*/
public boolean hasDataCenter() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string data_center = 10;
* @return The dataCenter.
*/
public java.lang.String getDataCenter() {
java.lang.Object ref = dataCenter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dataCenter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string data_center = 10;
* @return The bytes for dataCenter.
*/
public com.google.protobuf.ByteString
getDataCenterBytes() {
java.lang.Object ref = dataCenter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataCenter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string data_center = 10;
* @param value The dataCenter to set.
* @return This builder for chaining.
*/
public Builder setDataCenter(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
dataCenter_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional string data_center = 10;
* @return This builder for chaining.
*/
public Builder clearDataCenter() {
dataCenter_ = getDefaultInstance().getDataCenter();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
* optional string data_center = 10;
* @param value The bytes for dataCenter to set.
* @return This builder for chaining.
*/
public Builder setDataCenterBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
dataCenter_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object module_ = "";
/**
* optional string module = 20;
* @return Whether the module field is set.
*/
public boolean hasModule() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string module = 20;
* @return The module.
*/
public java.lang.String getModule() {
java.lang.Object ref = module_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
module_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string module = 20;
* @return The bytes for module.
*/
public com.google.protobuf.ByteString
getModuleBytes() {
java.lang.Object ref = module_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
module_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string module = 20;
* @param value The module to set.
* @return This builder for chaining.
*/
public Builder setModule(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
module_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* optional string module = 20;
* @return This builder for chaining.
*/
public Builder clearModule() {
module_ = getDefaultInstance().getModule();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* optional string module = 20;
* @param value The bytes for module to set.
* @return This builder for chaining.
*/
public Builder setModuleBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
module_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object rack_ = "";
/**
* optional string rack = 30;
* @return Whether the rack field is set.
*/
public boolean hasRack() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string rack = 30;
* @return The rack.
*/
public java.lang.String getRack() {
java.lang.Object ref = rack_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rack_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string rack = 30;
* @return The bytes for rack.
*/
public com.google.protobuf.ByteString
getRackBytes() {
java.lang.Object ref = rack_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rack_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string rack = 30;
* @param value The rack to set.
* @return This builder for chaining.
*/
public Builder setRack(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
rack_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* optional string rack = 30;
* @return This builder for chaining.
*/
public Builder clearRack() {
rack_ = getDefaultInstance().getRack();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
* optional string rack = 30;
* @param value The bytes for rack to set.
* @return This builder for chaining.
*/
public Builder setRackBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
rack_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private java.lang.Object unit_ = "";
/**
* optional string unit = 40;
* @return Whether the unit field is set.
*/
public boolean hasUnit() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string unit = 40;
* @return The unit.
*/
public java.lang.String getUnit() {
java.lang.Object ref = unit_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
unit_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string unit = 40;
* @return The bytes for unit.
*/
public com.google.protobuf.ByteString
getUnitBytes() {
java.lang.Object ref = unit_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string unit = 40;
* @param value The unit to set.
* @return This builder for chaining.
*/
public Builder setUnit(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
unit_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* optional string unit = 40;
* @return This builder for chaining.
*/
public Builder clearUnit() {
unit_ = getDefaultInstance().getUnit();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
* optional string unit = 40;
* @param value The bytes for unit to set.
* @return This builder for chaining.
*/
public Builder setUnitBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
unit_ = value;
bitField0_ |= 0x00000100;
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.Discovery.NodeLocation)
}
// @@protoc_insertion_point(class_scope:Ydb.Discovery.NodeLocation)
private static final tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation();
}
public static tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeLocation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.discovery.DiscoveryProtos.NodeLocation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Discovery_ListEndpointsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Discovery_ListEndpointsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Discovery_EndpointInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Discovery_EndpointInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Discovery_ListEndpointsResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Discovery_ListEndpointsResult_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Discovery_ListEndpointsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Discovery_ListEndpointsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Discovery_WhoAmIRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Discovery_WhoAmIRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Discovery_WhoAmIResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Discovery_WhoAmIResult_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Discovery_WhoAmIResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Discovery_WhoAmIResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Discovery_NodeLocation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Discovery_NodeLocation_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\032protos/ydb_discovery.proto\022\rYdb.Discov" +
"ery\032\032protos/ydb_operation.proto\"9\n\024ListE" +
"ndpointsRequest\022\020\n\010database\030\001 \001(\t\022\017\n\007ser" +
"vice\030\002 \003(\t\"\303\001\n\014EndpointInfo\022\017\n\007address\030\001" +
" \001(\t\022\014\n\004port\030\002 \001(\r\022\023\n\013load_factor\030\003 \001(\002\022" +
"\013\n\003ssl\030\004 \001(\010\022\017\n\007service\030\005 \003(\t\022\020\n\010locatio" +
"n\030\006 \001(\t\022\017\n\007node_id\030\007 \001(\r\022\r\n\005ip_v4\030\010 \003(\t\022" +
"\r\n\005ip_v6\030\t \003(\t\022 \n\030ssl_target_name_overri" +
"de\030\n \001(\t\"\\\n\023ListEndpointsResult\022.\n\tendpo" +
"ints\030\001 \003(\0132\033.Ydb.Discovery.EndpointInfo\022" +
"\025\n\rself_location\030\002 \001(\t\"E\n\025ListEndpointsR" +
"esponse\022,\n\toperation\030\001 \001(\0132\031.Ydb.Operati" +
"ons.Operation\"\'\n\rWhoAmIRequest\022\026\n\016includ" +
"e_groups\030\001 \001(\010\",\n\014WhoAmIResult\022\014\n\004user\030\001" +
" \001(\t\022\016\n\006groups\030\002 \003(\t\">\n\016WhoAmIResponse\022," +
"\n\toperation\030\001 \001(\0132\031.Ydb.Operations.Opera" +
"tion\"\340\002\n\014NodeLocation\022 \n\017data_center_num" +
"\030\001 \001(\rB\002\030\001H\000\210\001\001\022\031\n\010room_num\030\002 \001(\rB\002\030\001H\001\210" +
"\001\001\022\031\n\010rack_num\030\003 \001(\rB\002\030\001H\002\210\001\001\022\031\n\010body_nu" +
"m\030\004 \001(\rB\002\030\001H\003\210\001\001\022\027\n\004body\030\224\221\006 \001(\rB\002\030\001H\004\210\001" +
"\001\022\030\n\013data_center\030\n \001(\tH\005\210\001\001\022\023\n\006module\030\024 " +
"\001(\tH\006\210\001\001\022\021\n\004rack\030\036 \001(\tH\007\210\001\001\022\021\n\004unit\030( \001(" +
"\tH\010\210\001\001B\022\n\020_data_center_numB\013\n\t_room_numB" +
"\013\n\t_rack_numB\013\n\t_body_numB\007\n\005_bodyB\016\n\014_d" +
"ata_centerB\t\n\007_moduleB\007\n\005_rackB\007\n\005_unitB" +
"l\n\030tech.ydb.proto.discoveryB\017DiscoveryPr" +
"otosZ © 2015 - 2025 Weber Informatics LLC | Privacy Policy