com.yandex.ydb.coordination.SessionRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
JDBC client implementation over Table client, single jar
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ydb/public/api/protos/ydb_coordination.proto
package com.yandex.ydb.coordination;
/**
*
**
* Session request message sent from client to server
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest}
*/
public final class SessionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionRequest)
SessionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SessionRequest.newBuilder() to construct.
private SessionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SessionRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SessionRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SessionRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.coordination.SessionRequest.PingPong.Builder subBuilder = null;
if (requestCase_ == 1) {
subBuilder = ((com.yandex.ydb.coordination.SessionRequest.PingPong) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.SessionRequest.PingPong.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionRequest.PingPong) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 1;
break;
}
case 18: {
com.yandex.ydb.coordination.SessionRequest.PingPong.Builder subBuilder = null;
if (requestCase_ == 2) {
subBuilder = ((com.yandex.ydb.coordination.SessionRequest.PingPong) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.SessionRequest.PingPong.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionRequest.PingPong) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 2;
break;
}
case 26: {
com.yandex.ydb.coordination.SessionRequest.SessionStart.Builder subBuilder = null;
if (requestCase_ == 3) {
subBuilder = ((com.yandex.ydb.coordination.SessionRequest.SessionStart) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.SessionRequest.SessionStart.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionRequest.SessionStart) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 3;
break;
}
case 34: {
com.yandex.ydb.coordination.SessionRequest.SessionStop.Builder subBuilder = null;
if (requestCase_ == 4) {
subBuilder = ((com.yandex.ydb.coordination.SessionRequest.SessionStop) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.SessionRequest.SessionStop.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionRequest.SessionStop) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 4;
break;
}
case 42: {
com.yandex.ydb.coordination.Unsupported.Builder subBuilder = null;
if (requestCase_ == 5) {
subBuilder = ((com.yandex.ydb.coordination.Unsupported) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.Unsupported.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.Unsupported) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 5;
break;
}
case 50: {
com.yandex.ydb.coordination.Unsupported.Builder subBuilder = null;
if (requestCase_ == 6) {
subBuilder = ((com.yandex.ydb.coordination.Unsupported) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.Unsupported.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.Unsupported) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 6;
break;
}
case 58: {
com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.Builder subBuilder = null;
if (requestCase_ == 7) {
subBuilder = ((com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 7;
break;
}
case 66: {
com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.Builder subBuilder = null;
if (requestCase_ == 8) {
subBuilder = ((com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 8;
break;
}
case 74: {
com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.Builder subBuilder = null;
if (requestCase_ == 9) {
subBuilder = ((com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 9;
break;
}
case 82: {
com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.Builder subBuilder = null;
if (requestCase_ == 10) {
subBuilder = ((com.yandex.ydb.coordination.SessionRequest.CreateSemaphore) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionRequest.CreateSemaphore) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 10;
break;
}
case 90: {
com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.Builder subBuilder = null;
if (requestCase_ == 11) {
subBuilder = ((com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 11;
break;
}
case 98: {
com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.Builder subBuilder = null;
if (requestCase_ == 12) {
subBuilder = ((com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 12;
break;
}
case 106: {
com.yandex.ydb.coordination.Unsupported.Builder subBuilder = null;
if (requestCase_ == 13) {
subBuilder = ((com.yandex.ydb.coordination.Unsupported) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.Unsupported.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.Unsupported) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 13;
break;
}
case 114: {
com.yandex.ydb.coordination.Unsupported.Builder subBuilder = null;
if (requestCase_ == 14) {
subBuilder = ((com.yandex.ydb.coordination.Unsupported) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.Unsupported.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.Unsupported) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 14;
break;
}
case 122: {
com.yandex.ydb.coordination.Unsupported.Builder subBuilder = null;
if (requestCase_ == 15) {
subBuilder = ((com.yandex.ydb.coordination.Unsupported) request_).toBuilder();
}
request_ =
input.readMessage(com.yandex.ydb.coordination.Unsupported.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.coordination.Unsupported) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 15;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.class, com.yandex.ydb.coordination.SessionRequest.Builder.class);
}
public interface PingPongOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionRequest.PingPong)
com.google.protobuf.MessageOrBuilder {
/**
*
* Opaque number specified in the ping message is echoed in the pong message
*
*
* uint64 opaque = 1;
* @return The opaque.
*/
long getOpaque();
}
/**
*
**
* Used for checking liveness of the connection
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.PingPong}
*/
public static final class PingPong extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionRequest.PingPong)
PingPongOrBuilder {
private static final long serialVersionUID = 0L;
// Use PingPong.newBuilder() to construct.
private PingPong(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PingPong() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PingPong();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PingPong(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
opaque_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_PingPong_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_PingPong_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.PingPong.class, com.yandex.ydb.coordination.SessionRequest.PingPong.Builder.class);
}
public static final int OPAQUE_FIELD_NUMBER = 1;
private long opaque_;
/**
*
* Opaque number specified in the ping message is echoed in the pong message
*
*
* uint64 opaque = 1;
* @return The opaque.
*/
@java.lang.Override
public long getOpaque() {
return opaque_;
}
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 (opaque_ != 0L) {
output.writeUInt64(1, opaque_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (opaque_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, opaque_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.coordination.SessionRequest.PingPong)) {
return super.equals(obj);
}
com.yandex.ydb.coordination.SessionRequest.PingPong other = (com.yandex.ydb.coordination.SessionRequest.PingPong) obj;
if (getOpaque()
!= other.getOpaque()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OPAQUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOpaque());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.coordination.SessionRequest.PingPong parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.PingPong parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.PingPong parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.PingPong parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.PingPong parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.PingPong parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.PingPong parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.PingPong parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.PingPong parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.PingPong parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.PingPong parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.PingPong parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.coordination.SessionRequest.PingPong 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;
}
/**
*
**
* Used for checking liveness of the connection
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.PingPong}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionRequest.PingPong)
com.yandex.ydb.coordination.SessionRequest.PingPongOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_PingPong_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_PingPong_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.PingPong.class, com.yandex.ydb.coordination.SessionRequest.PingPong.Builder.class);
}
// Construct using com.yandex.ydb.coordination.SessionRequest.PingPong.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
opaque_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_PingPong_descriptor;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.PingPong getDefaultInstanceForType() {
return com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.PingPong build() {
com.yandex.ydb.coordination.SessionRequest.PingPong result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.PingPong buildPartial() {
com.yandex.ydb.coordination.SessionRequest.PingPong result = new com.yandex.ydb.coordination.SessionRequest.PingPong(this);
result.opaque_ = opaque_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.coordination.SessionRequest.PingPong) {
return mergeFrom((com.yandex.ydb.coordination.SessionRequest.PingPong)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.coordination.SessionRequest.PingPong other) {
if (other == com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance()) return this;
if (other.getOpaque() != 0L) {
setOpaque(other.getOpaque());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.coordination.SessionRequest.PingPong parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.coordination.SessionRequest.PingPong) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long opaque_ ;
/**
*
* Opaque number specified in the ping message is echoed in the pong message
*
*
* uint64 opaque = 1;
* @return The opaque.
*/
@java.lang.Override
public long getOpaque() {
return opaque_;
}
/**
*
* Opaque number specified in the ping message is echoed in the pong message
*
*
* uint64 opaque = 1;
* @param value The opaque to set.
* @return This builder for chaining.
*/
public Builder setOpaque(long value) {
opaque_ = value;
onChanged();
return this;
}
/**
*
* Opaque number specified in the ping message is echoed in the pong message
*
*
* uint64 opaque = 1;
* @return This builder for chaining.
*/
public Builder clearOpaque() {
opaque_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Coordination.SessionRequest.PingPong)
}
// @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionRequest.PingPong)
private static final com.yandex.ydb.coordination.SessionRequest.PingPong DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionRequest.PingPong();
}
public static com.yandex.ydb.coordination.SessionRequest.PingPong getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PingPong parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PingPong(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.PingPong getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SessionStartOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionRequest.SessionStart)
com.google.protobuf.MessageOrBuilder {
/**
*
* Path to a coordination node
*
*
* string path = 1;
* @return The path.
*/
java.lang.String getPath();
/**
*
* Path to a coordination node
*
*
* string path = 1;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
/**
*
* Non-zero when restoring a session, 0 when creating a new session
*
*
* uint64 session_id = 2;
* @return The sessionId.
*/
long getSessionId();
/**
*
* Timeout in milliseconds during which client may restore a detached session
*
*
* uint64 timeout_millis = 3;
* @return The timeoutMillis.
*/
long getTimeoutMillis();
/**
*
* User-defined description that may be used to describe the client
*
*
* string description = 4;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* User-defined description that may be used to describe the client
*
*
* string description = 4;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Monotonically increasing sequence number generated by the client
* When concurrent SessionStart requests are detected the one with
* the biggest sequence number will succeed
*
*
* uint64 seq_no = 5;
* @return The seqNo.
*/
long getSeqNo();
/**
*
* Random bytes used to protect session from restore by other clients (max. 16 bytes)
*
*
* bytes protection_key = 6;
* @return The protectionKey.
*/
com.google.protobuf.ByteString getProtectionKey();
}
/**
*
**
* First message used to start/restore a session
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.SessionStart}
*/
public static final class SessionStart extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionRequest.SessionStart)
SessionStartOrBuilder {
private static final long serialVersionUID = 0L;
// Use SessionStart.newBuilder() to construct.
private SessionStart(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SessionStart() {
path_ = "";
description_ = "";
protectionKey_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SessionStart();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SessionStart(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
case 16: {
sessionId_ = input.readUInt64();
break;
}
case 24: {
timeoutMillis_ = input.readUInt64();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 40: {
seqNo_ = input.readUInt64();
break;
}
case 50: {
protectionKey_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_SessionStart_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_SessionStart_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.SessionStart.class, com.yandex.ydb.coordination.SessionRequest.SessionStart.Builder.class);
}
public static final int PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object path_;
/**
*
* Path to a coordination node
*
*
* string path = 1;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
}
}
/**
*
* Path to a coordination node
*
*
* string path = 1;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SESSION_ID_FIELD_NUMBER = 2;
private long sessionId_;
/**
*
* Non-zero when restoring a session, 0 when creating a new session
*
*
* uint64 session_id = 2;
* @return The sessionId.
*/
@java.lang.Override
public long getSessionId() {
return sessionId_;
}
public static final int TIMEOUT_MILLIS_FIELD_NUMBER = 3;
private long timeoutMillis_;
/**
*
* Timeout in milliseconds during which client may restore a detached session
*
*
* uint64 timeout_millis = 3;
* @return The timeoutMillis.
*/
@java.lang.Override
public long getTimeoutMillis() {
return timeoutMillis_;
}
public static final int DESCRIPTION_FIELD_NUMBER = 4;
private volatile java.lang.Object description_;
/**
*
* User-defined description that may be used to describe the client
*
*
* string description = 4;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* User-defined description that may be used to describe the client
*
*
* string description = 4;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SEQ_NO_FIELD_NUMBER = 5;
private long seqNo_;
/**
*
* Monotonically increasing sequence number generated by the client
* When concurrent SessionStart requests are detected the one with
* the biggest sequence number will succeed
*
*
* uint64 seq_no = 5;
* @return The seqNo.
*/
@java.lang.Override
public long getSeqNo() {
return seqNo_;
}
public static final int PROTECTION_KEY_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString protectionKey_;
/**
*
* Random bytes used to protect session from restore by other clients (max. 16 bytes)
*
*
* bytes protection_key = 6;
* @return The protectionKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProtectionKey() {
return protectionKey_;
}
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(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_);
}
if (sessionId_ != 0L) {
output.writeUInt64(2, sessionId_);
}
if (timeoutMillis_ != 0L) {
output.writeUInt64(3, timeoutMillis_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
}
if (seqNo_ != 0L) {
output.writeUInt64(5, seqNo_);
}
if (!protectionKey_.isEmpty()) {
output.writeBytes(6, protectionKey_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_);
}
if (sessionId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, sessionId_);
}
if (timeoutMillis_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, timeoutMillis_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
}
if (seqNo_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, seqNo_);
}
if (!protectionKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, protectionKey_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.coordination.SessionRequest.SessionStart)) {
return super.equals(obj);
}
com.yandex.ydb.coordination.SessionRequest.SessionStart other = (com.yandex.ydb.coordination.SessionRequest.SessionStart) obj;
if (!getPath()
.equals(other.getPath())) return false;
if (getSessionId()
!= other.getSessionId()) return false;
if (getTimeoutMillis()
!= other.getTimeoutMillis()) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (getSeqNo()
!= other.getSeqNo()) return false;
if (!getProtectionKey()
.equals(other.getProtectionKey())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSessionId());
hash = (37 * hash) + TIMEOUT_MILLIS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimeoutMillis());
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + SEQ_NO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSeqNo());
hash = (37 * hash) + PROTECTION_KEY_FIELD_NUMBER;
hash = (53 * hash) + getProtectionKey().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStart parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStart parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStart parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStart parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStart parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStart parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStart parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStart parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStart parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStart parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStart parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStart parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.coordination.SessionRequest.SessionStart 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;
}
/**
*
**
* First message used to start/restore a session
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.SessionStart}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionRequest.SessionStart)
com.yandex.ydb.coordination.SessionRequest.SessionStartOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_SessionStart_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_SessionStart_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.SessionStart.class, com.yandex.ydb.coordination.SessionRequest.SessionStart.Builder.class);
}
// Construct using com.yandex.ydb.coordination.SessionRequest.SessionStart.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
path_ = "";
sessionId_ = 0L;
timeoutMillis_ = 0L;
description_ = "";
seqNo_ = 0L;
protectionKey_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_SessionStart_descriptor;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStart getDefaultInstanceForType() {
return com.yandex.ydb.coordination.SessionRequest.SessionStart.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStart build() {
com.yandex.ydb.coordination.SessionRequest.SessionStart result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStart buildPartial() {
com.yandex.ydb.coordination.SessionRequest.SessionStart result = new com.yandex.ydb.coordination.SessionRequest.SessionStart(this);
result.path_ = path_;
result.sessionId_ = sessionId_;
result.timeoutMillis_ = timeoutMillis_;
result.description_ = description_;
result.seqNo_ = seqNo_;
result.protectionKey_ = protectionKey_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.coordination.SessionRequest.SessionStart) {
return mergeFrom((com.yandex.ydb.coordination.SessionRequest.SessionStart)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.coordination.SessionRequest.SessionStart other) {
if (other == com.yandex.ydb.coordination.SessionRequest.SessionStart.getDefaultInstance()) return this;
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
if (other.getSessionId() != 0L) {
setSessionId(other.getSessionId());
}
if (other.getTimeoutMillis() != 0L) {
setTimeoutMillis(other.getTimeoutMillis());
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.getSeqNo() != 0L) {
setSeqNo(other.getSeqNo());
}
if (other.getProtectionKey() != com.google.protobuf.ByteString.EMPTY) {
setProtectionKey(other.getProtectionKey());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.coordination.SessionRequest.SessionStart parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.coordination.SessionRequest.SessionStart) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object path_ = "";
/**
*
* Path to a coordination node
*
*
* string path = 1;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Path to a coordination node
*
*
* string path = 1;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Path to a coordination node
*
*
* string path = 1;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
*
* Path to a coordination node
*
*
* string path = 1;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* Path to a coordination node
*
*
* string path = 1;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
onChanged();
return this;
}
private long sessionId_ ;
/**
*
* Non-zero when restoring a session, 0 when creating a new session
*
*
* uint64 session_id = 2;
* @return The sessionId.
*/
@java.lang.Override
public long getSessionId() {
return sessionId_;
}
/**
*
* Non-zero when restoring a session, 0 when creating a new session
*
*
* uint64 session_id = 2;
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(long value) {
sessionId_ = value;
onChanged();
return this;
}
/**
*
* Non-zero when restoring a session, 0 when creating a new session
*
*
* uint64 session_id = 2;
* @return This builder for chaining.
*/
public Builder clearSessionId() {
sessionId_ = 0L;
onChanged();
return this;
}
private long timeoutMillis_ ;
/**
*
* Timeout in milliseconds during which client may restore a detached session
*
*
* uint64 timeout_millis = 3;
* @return The timeoutMillis.
*/
@java.lang.Override
public long getTimeoutMillis() {
return timeoutMillis_;
}
/**
*
* Timeout in milliseconds during which client may restore a detached session
*
*
* uint64 timeout_millis = 3;
* @param value The timeoutMillis to set.
* @return This builder for chaining.
*/
public Builder setTimeoutMillis(long value) {
timeoutMillis_ = value;
onChanged();
return this;
}
/**
*
* Timeout in milliseconds during which client may restore a detached session
*
*
* uint64 timeout_millis = 3;
* @return This builder for chaining.
*/
public Builder clearTimeoutMillis() {
timeoutMillis_ = 0L;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* User-defined description that may be used to describe the client
*
*
* string description = 4;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* User-defined description that may be used to describe the client
*
*
* string description = 4;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* User-defined description that may be used to describe the client
*
*
* string description = 4;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* User-defined description that may be used to describe the client
*
*
* string description = 4;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* User-defined description that may be used to describe the client
*
*
* string description = 4;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private long seqNo_ ;
/**
*
* Monotonically increasing sequence number generated by the client
* When concurrent SessionStart requests are detected the one with
* the biggest sequence number will succeed
*
*
* uint64 seq_no = 5;
* @return The seqNo.
*/
@java.lang.Override
public long getSeqNo() {
return seqNo_;
}
/**
*
* Monotonically increasing sequence number generated by the client
* When concurrent SessionStart requests are detected the one with
* the biggest sequence number will succeed
*
*
* uint64 seq_no = 5;
* @param value The seqNo to set.
* @return This builder for chaining.
*/
public Builder setSeqNo(long value) {
seqNo_ = value;
onChanged();
return this;
}
/**
*
* Monotonically increasing sequence number generated by the client
* When concurrent SessionStart requests are detected the one with
* the biggest sequence number will succeed
*
*
* uint64 seq_no = 5;
* @return This builder for chaining.
*/
public Builder clearSeqNo() {
seqNo_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString protectionKey_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Random bytes used to protect session from restore by other clients (max. 16 bytes)
*
*
* bytes protection_key = 6;
* @return The protectionKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProtectionKey() {
return protectionKey_;
}
/**
*
* Random bytes used to protect session from restore by other clients (max. 16 bytes)
*
*
* bytes protection_key = 6;
* @param value The protectionKey to set.
* @return This builder for chaining.
*/
public Builder setProtectionKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
protectionKey_ = value;
onChanged();
return this;
}
/**
*
* Random bytes used to protect session from restore by other clients (max. 16 bytes)
*
*
* bytes protection_key = 6;
* @return This builder for chaining.
*/
public Builder clearProtectionKey() {
protectionKey_ = getDefaultInstance().getProtectionKey();
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.Coordination.SessionRequest.SessionStart)
}
// @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionRequest.SessionStart)
private static final com.yandex.ydb.coordination.SessionRequest.SessionStart DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionRequest.SessionStart();
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStart getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SessionStart parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SessionStart(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStart getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SessionStopOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionRequest.SessionStop)
com.google.protobuf.MessageOrBuilder {
}
/**
*
**
* Last message used to cleanly stop session before its timeout expires
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.SessionStop}
*/
public static final class SessionStop extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionRequest.SessionStop)
SessionStopOrBuilder {
private static final long serialVersionUID = 0L;
// Use SessionStop.newBuilder() to construct.
private SessionStop(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SessionStop() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SessionStop();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SessionStop(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_SessionStop_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_SessionStop_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.SessionStop.class, com.yandex.ydb.coordination.SessionRequest.SessionStop.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.coordination.SessionRequest.SessionStop)) {
return super.equals(obj);
}
com.yandex.ydb.coordination.SessionRequest.SessionStop other = (com.yandex.ydb.coordination.SessionRequest.SessionStop) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStop parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStop parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStop parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStop parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStop parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStop parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStop parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStop parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStop parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStop parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStop parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStop parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.coordination.SessionRequest.SessionStop 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;
}
/**
*
**
* Last message used to cleanly stop session before its timeout expires
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.SessionStop}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionRequest.SessionStop)
com.yandex.ydb.coordination.SessionRequest.SessionStopOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_SessionStop_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_SessionStop_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.SessionStop.class, com.yandex.ydb.coordination.SessionRequest.SessionStop.Builder.class);
}
// Construct using com.yandex.ydb.coordination.SessionRequest.SessionStop.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_SessionStop_descriptor;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStop getDefaultInstanceForType() {
return com.yandex.ydb.coordination.SessionRequest.SessionStop.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStop build() {
com.yandex.ydb.coordination.SessionRequest.SessionStop result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStop buildPartial() {
com.yandex.ydb.coordination.SessionRequest.SessionStop result = new com.yandex.ydb.coordination.SessionRequest.SessionStop(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.coordination.SessionRequest.SessionStop) {
return mergeFrom((com.yandex.ydb.coordination.SessionRequest.SessionStop)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.coordination.SessionRequest.SessionStop other) {
if (other == com.yandex.ydb.coordination.SessionRequest.SessionStop.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.coordination.SessionRequest.SessionStop parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.coordination.SessionRequest.SessionStop) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Coordination.SessionRequest.SessionStop)
}
// @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionRequest.SessionStop)
private static final com.yandex.ydb.coordination.SessionRequest.SessionStop DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionRequest.SessionStop();
}
public static com.yandex.ydb.coordination.SessionRequest.SessionStop getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SessionStop parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SessionStop(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStop getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AcquireSemaphoreOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionRequest.AcquireSemaphore)
com.google.protobuf.MessageOrBuilder {
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
long getReqId();
/**
*
* Name of the semaphore to acquire
*
*
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the semaphore to acquire
*
*
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Timeout in milliseconds after which operation will fail
* if it's still waiting in the waiters queue
*
*
* uint64 timeout_millis = 3;
* @return The timeoutMillis.
*/
long getTimeoutMillis();
/**
*
* Number of tokens to acquire on the semaphore
*
*
* uint64 count = 4;
* @return The count.
*/
long getCount();
/**
*
* User-defined binary data that may be attached to the operation
*
*
* bytes data = 5;
* @return The data.
*/
com.google.protobuf.ByteString getData();
/**
*
* Ephemeral semaphores are created with the first acquire operation
* and automatically deleted with the last release operation
*
*
* bool ephemeral = 6;
* @return The ephemeral.
*/
boolean getEphemeral();
}
/**
*
**
* Used to acquire a semaphore
* WARNING: a single session cannot acquire the same semaphore multiple times
* Later requests override previous operations with the same semaphore,
* e.g. to reduce acquired count, change timeout or attached data.
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.AcquireSemaphore}
*/
public static final class AcquireSemaphore extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionRequest.AcquireSemaphore)
AcquireSemaphoreOrBuilder {
private static final long serialVersionUID = 0L;
// Use AcquireSemaphore.newBuilder() to construct.
private AcquireSemaphore(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AcquireSemaphore() {
name_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AcquireSemaphore();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AcquireSemaphore(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
reqId_ = input.readUInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 24: {
timeoutMillis_ = input.readUInt64();
break;
}
case 32: {
count_ = input.readUInt64();
break;
}
case 42: {
data_ = input.readBytes();
break;
}
case 48: {
ephemeral_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_AcquireSemaphore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_AcquireSemaphore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.class, com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.Builder.class);
}
public static final int REQ_ID_FIELD_NUMBER = 1;
private long reqId_;
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
@java.lang.Override
public long getReqId() {
return reqId_;
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the semaphore to acquire
*
*
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the semaphore to acquire
*
*
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMEOUT_MILLIS_FIELD_NUMBER = 3;
private long timeoutMillis_;
/**
*
* Timeout in milliseconds after which operation will fail
* if it's still waiting in the waiters queue
*
*
* uint64 timeout_millis = 3;
* @return The timeoutMillis.
*/
@java.lang.Override
public long getTimeoutMillis() {
return timeoutMillis_;
}
public static final int COUNT_FIELD_NUMBER = 4;
private long count_;
/**
*
* Number of tokens to acquire on the semaphore
*
*
* uint64 count = 4;
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
public static final int DATA_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString data_;
/**
*
* User-defined binary data that may be attached to the operation
*
*
* bytes data = 5;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int EPHEMERAL_FIELD_NUMBER = 6;
private boolean ephemeral_;
/**
*
* Ephemeral semaphores are created with the first acquire operation
* and automatically deleted with the last release operation
*
*
* bool ephemeral = 6;
* @return The ephemeral.
*/
@java.lang.Override
public boolean getEphemeral() {
return ephemeral_;
}
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 (reqId_ != 0L) {
output.writeUInt64(1, reqId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (timeoutMillis_ != 0L) {
output.writeUInt64(3, timeoutMillis_);
}
if (count_ != 0L) {
output.writeUInt64(4, count_);
}
if (!data_.isEmpty()) {
output.writeBytes(5, data_);
}
if (ephemeral_ != false) {
output.writeBool(6, ephemeral_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (reqId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, reqId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (timeoutMillis_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, timeoutMillis_);
}
if (count_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, count_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, data_);
}
if (ephemeral_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, ephemeral_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore)) {
return super.equals(obj);
}
com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore other = (com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore) obj;
if (getReqId()
!= other.getReqId()) return false;
if (!getName()
.equals(other.getName())) return false;
if (getTimeoutMillis()
!= other.getTimeoutMillis()) return false;
if (getCount()
!= other.getCount()) return false;
if (!getData()
.equals(other.getData())) return false;
if (getEphemeral()
!= other.getEphemeral()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REQ_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReqId());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + TIMEOUT_MILLIS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimeoutMillis());
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCount());
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + EPHEMERAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEphemeral());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore 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;
}
/**
*
**
* Used to acquire a semaphore
* WARNING: a single session cannot acquire the same semaphore multiple times
* Later requests override previous operations with the same semaphore,
* e.g. to reduce acquired count, change timeout or attached data.
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.AcquireSemaphore}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionRequest.AcquireSemaphore)
com.yandex.ydb.coordination.SessionRequest.AcquireSemaphoreOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_AcquireSemaphore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_AcquireSemaphore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.class, com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.Builder.class);
}
// Construct using com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
reqId_ = 0L;
name_ = "";
timeoutMillis_ = 0L;
count_ = 0L;
data_ = com.google.protobuf.ByteString.EMPTY;
ephemeral_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_AcquireSemaphore_descriptor;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore getDefaultInstanceForType() {
return com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore build() {
com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore buildPartial() {
com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore result = new com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore(this);
result.reqId_ = reqId_;
result.name_ = name_;
result.timeoutMillis_ = timeoutMillis_;
result.count_ = count_;
result.data_ = data_;
result.ephemeral_ = ephemeral_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore) {
return mergeFrom((com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore other) {
if (other == com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.getDefaultInstance()) return this;
if (other.getReqId() != 0L) {
setReqId(other.getReqId());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getTimeoutMillis() != 0L) {
setTimeoutMillis(other.getTimeoutMillis());
}
if (other.getCount() != 0L) {
setCount(other.getCount());
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (other.getEphemeral() != false) {
setEphemeral(other.getEphemeral());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long reqId_ ;
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
@java.lang.Override
public long getReqId() {
return reqId_;
}
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @param value The reqId to set.
* @return This builder for chaining.
*/
public Builder setReqId(long value) {
reqId_ = value;
onChanged();
return this;
}
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return This builder for chaining.
*/
public Builder clearReqId() {
reqId_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the semaphore to acquire
*
*
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the semaphore to acquire
*
*
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the semaphore to acquire
*
*
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the semaphore to acquire
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the semaphore to acquire
*
*
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private long timeoutMillis_ ;
/**
*
* Timeout in milliseconds after which operation will fail
* if it's still waiting in the waiters queue
*
*
* uint64 timeout_millis = 3;
* @return The timeoutMillis.
*/
@java.lang.Override
public long getTimeoutMillis() {
return timeoutMillis_;
}
/**
*
* Timeout in milliseconds after which operation will fail
* if it's still waiting in the waiters queue
*
*
* uint64 timeout_millis = 3;
* @param value The timeoutMillis to set.
* @return This builder for chaining.
*/
public Builder setTimeoutMillis(long value) {
timeoutMillis_ = value;
onChanged();
return this;
}
/**
*
* Timeout in milliseconds after which operation will fail
* if it's still waiting in the waiters queue
*
*
* uint64 timeout_millis = 3;
* @return This builder for chaining.
*/
public Builder clearTimeoutMillis() {
timeoutMillis_ = 0L;
onChanged();
return this;
}
private long count_ ;
/**
*
* Number of tokens to acquire on the semaphore
*
*
* uint64 count = 4;
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
/**
*
* Number of tokens to acquire on the semaphore
*
*
* uint64 count = 4;
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(long value) {
count_ = value;
onChanged();
return this;
}
/**
*
* Number of tokens to acquire on the semaphore
*
*
* uint64 count = 4;
* @return This builder for chaining.
*/
public Builder clearCount() {
count_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* User-defined binary data that may be attached to the operation
*
*
* bytes data = 5;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* User-defined binary data that may be attached to the operation
*
*
* bytes data = 5;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* User-defined binary data that may be attached to the operation
*
*
* bytes data = 5;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private boolean ephemeral_ ;
/**
*
* Ephemeral semaphores are created with the first acquire operation
* and automatically deleted with the last release operation
*
*
* bool ephemeral = 6;
* @return The ephemeral.
*/
@java.lang.Override
public boolean getEphemeral() {
return ephemeral_;
}
/**
*
* Ephemeral semaphores are created with the first acquire operation
* and automatically deleted with the last release operation
*
*
* bool ephemeral = 6;
* @param value The ephemeral to set.
* @return This builder for chaining.
*/
public Builder setEphemeral(boolean value) {
ephemeral_ = value;
onChanged();
return this;
}
/**
*
* Ephemeral semaphores are created with the first acquire operation
* and automatically deleted with the last release operation
*
*
* bool ephemeral = 6;
* @return This builder for chaining.
*/
public Builder clearEphemeral() {
ephemeral_ = 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.Coordination.SessionRequest.AcquireSemaphore)
}
// @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionRequest.AcquireSemaphore)
private static final com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore();
}
public static com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AcquireSemaphore parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AcquireSemaphore(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReleaseSemaphoreOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionRequest.ReleaseSemaphore)
com.google.protobuf.MessageOrBuilder {
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
long getReqId();
/**
*
* Name of the semaphore to release
*
*
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the semaphore to release
*
*
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
*
**
* Used to release a semaphore
* WARNING: a single session cannot release the same semaphore multiple times
* The release operation will either remove current session from waiters
* queue or release an already owned semaphore.
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.ReleaseSemaphore}
*/
public static final class ReleaseSemaphore extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionRequest.ReleaseSemaphore)
ReleaseSemaphoreOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReleaseSemaphore.newBuilder() to construct.
private ReleaseSemaphore(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReleaseSemaphore() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReleaseSemaphore();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReleaseSemaphore(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
reqId_ = input.readUInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_ReleaseSemaphore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_ReleaseSemaphore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.class, com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.Builder.class);
}
public static final int REQ_ID_FIELD_NUMBER = 1;
private long reqId_;
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
@java.lang.Override
public long getReqId() {
return reqId_;
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the semaphore to release
*
*
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the semaphore to release
*
*
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (reqId_ != 0L) {
output.writeUInt64(1, reqId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (reqId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, reqId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore)) {
return super.equals(obj);
}
com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore other = (com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore) obj;
if (getReqId()
!= other.getReqId()) return false;
if (!getName()
.equals(other.getName())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REQ_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReqId());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore 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;
}
/**
*
**
* Used to release a semaphore
* WARNING: a single session cannot release the same semaphore multiple times
* The release operation will either remove current session from waiters
* queue or release an already owned semaphore.
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.ReleaseSemaphore}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionRequest.ReleaseSemaphore)
com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphoreOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_ReleaseSemaphore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_ReleaseSemaphore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.class, com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.Builder.class);
}
// Construct using com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
reqId_ = 0L;
name_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_ReleaseSemaphore_descriptor;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore getDefaultInstanceForType() {
return com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore build() {
com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore buildPartial() {
com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore result = new com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore(this);
result.reqId_ = reqId_;
result.name_ = name_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore) {
return mergeFrom((com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore other) {
if (other == com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.getDefaultInstance()) return this;
if (other.getReqId() != 0L) {
setReqId(other.getReqId());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long reqId_ ;
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
@java.lang.Override
public long getReqId() {
return reqId_;
}
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @param value The reqId to set.
* @return This builder for chaining.
*/
public Builder setReqId(long value) {
reqId_ = value;
onChanged();
return this;
}
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return This builder for chaining.
*/
public Builder clearReqId() {
reqId_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the semaphore to release
*
*
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the semaphore to release
*
*
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the semaphore to release
*
*
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the semaphore to release
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the semaphore to release
*
*
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
@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.Coordination.SessionRequest.ReleaseSemaphore)
}
// @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionRequest.ReleaseSemaphore)
private static final com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore();
}
public static com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReleaseSemaphore parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReleaseSemaphore(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DescribeSemaphoreOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionRequest.DescribeSemaphore)
com.google.protobuf.MessageOrBuilder {
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
long getReqId();
/**
*
* Name of the semaphore to describe
*
*
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the semaphore to describe
*
*
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Response will include owners list if true
*
*
* bool include_owners = 3;
* @return The includeOwners.
*/
boolean getIncludeOwners();
/**
*
* Response will include waiters list if true
*
*
* bool include_waiters = 4;
* @return The includeWaiters.
*/
boolean getIncludeWaiters();
/**
*
* Watch for changes in semaphore data
*
*
* bool watch_data = 5;
* @return The watchData.
*/
boolean getWatchData();
/**
*
* Watch for changes in semaphore owners (including owners data)
*
*
* bool watch_owners = 6;
* @return The watchOwners.
*/
boolean getWatchOwners();
}
/**
*
**
* Used to describe semaphores and watch them for changes
* WARNING: a describe operation will cancel previous watches on the same semaphore
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.DescribeSemaphore}
*/
public static final class DescribeSemaphore extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionRequest.DescribeSemaphore)
DescribeSemaphoreOrBuilder {
private static final long serialVersionUID = 0L;
// Use DescribeSemaphore.newBuilder() to construct.
private DescribeSemaphore(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DescribeSemaphore() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DescribeSemaphore();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DescribeSemaphore(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
reqId_ = input.readUInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 24: {
includeOwners_ = input.readBool();
break;
}
case 32: {
includeWaiters_ = input.readBool();
break;
}
case 40: {
watchData_ = input.readBool();
break;
}
case 48: {
watchOwners_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_DescribeSemaphore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_DescribeSemaphore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.class, com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.Builder.class);
}
public static final int REQ_ID_FIELD_NUMBER = 1;
private long reqId_;
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
@java.lang.Override
public long getReqId() {
return reqId_;
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the semaphore to describe
*
*
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the semaphore to describe
*
*
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INCLUDE_OWNERS_FIELD_NUMBER = 3;
private boolean includeOwners_;
/**
*
* Response will include owners list if true
*
*
* bool include_owners = 3;
* @return The includeOwners.
*/
@java.lang.Override
public boolean getIncludeOwners() {
return includeOwners_;
}
public static final int INCLUDE_WAITERS_FIELD_NUMBER = 4;
private boolean includeWaiters_;
/**
*
* Response will include waiters list if true
*
*
* bool include_waiters = 4;
* @return The includeWaiters.
*/
@java.lang.Override
public boolean getIncludeWaiters() {
return includeWaiters_;
}
public static final int WATCH_DATA_FIELD_NUMBER = 5;
private boolean watchData_;
/**
*
* Watch for changes in semaphore data
*
*
* bool watch_data = 5;
* @return The watchData.
*/
@java.lang.Override
public boolean getWatchData() {
return watchData_;
}
public static final int WATCH_OWNERS_FIELD_NUMBER = 6;
private boolean watchOwners_;
/**
*
* Watch for changes in semaphore owners (including owners data)
*
*
* bool watch_owners = 6;
* @return The watchOwners.
*/
@java.lang.Override
public boolean getWatchOwners() {
return watchOwners_;
}
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 (reqId_ != 0L) {
output.writeUInt64(1, reqId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (includeOwners_ != false) {
output.writeBool(3, includeOwners_);
}
if (includeWaiters_ != false) {
output.writeBool(4, includeWaiters_);
}
if (watchData_ != false) {
output.writeBool(5, watchData_);
}
if (watchOwners_ != false) {
output.writeBool(6, watchOwners_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (reqId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, reqId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (includeOwners_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, includeOwners_);
}
if (includeWaiters_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, includeWaiters_);
}
if (watchData_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, watchData_);
}
if (watchOwners_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, watchOwners_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore)) {
return super.equals(obj);
}
com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore other = (com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore) obj;
if (getReqId()
!= other.getReqId()) return false;
if (!getName()
.equals(other.getName())) return false;
if (getIncludeOwners()
!= other.getIncludeOwners()) return false;
if (getIncludeWaiters()
!= other.getIncludeWaiters()) return false;
if (getWatchData()
!= other.getWatchData()) return false;
if (getWatchOwners()
!= other.getWatchOwners()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REQ_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReqId());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + INCLUDE_OWNERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIncludeOwners());
hash = (37 * hash) + INCLUDE_WAITERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIncludeWaiters());
hash = (37 * hash) + WATCH_DATA_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getWatchData());
hash = (37 * hash) + WATCH_OWNERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getWatchOwners());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore 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;
}
/**
*
**
* Used to describe semaphores and watch them for changes
* WARNING: a describe operation will cancel previous watches on the same semaphore
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.DescribeSemaphore}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionRequest.DescribeSemaphore)
com.yandex.ydb.coordination.SessionRequest.DescribeSemaphoreOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_DescribeSemaphore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_DescribeSemaphore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.class, com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.Builder.class);
}
// Construct using com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
reqId_ = 0L;
name_ = "";
includeOwners_ = false;
includeWaiters_ = false;
watchData_ = false;
watchOwners_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_DescribeSemaphore_descriptor;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore getDefaultInstanceForType() {
return com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore build() {
com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore buildPartial() {
com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore result = new com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore(this);
result.reqId_ = reqId_;
result.name_ = name_;
result.includeOwners_ = includeOwners_;
result.includeWaiters_ = includeWaiters_;
result.watchData_ = watchData_;
result.watchOwners_ = watchOwners_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore) {
return mergeFrom((com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore other) {
if (other == com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.getDefaultInstance()) return this;
if (other.getReqId() != 0L) {
setReqId(other.getReqId());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getIncludeOwners() != false) {
setIncludeOwners(other.getIncludeOwners());
}
if (other.getIncludeWaiters() != false) {
setIncludeWaiters(other.getIncludeWaiters());
}
if (other.getWatchData() != false) {
setWatchData(other.getWatchData());
}
if (other.getWatchOwners() != false) {
setWatchOwners(other.getWatchOwners());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long reqId_ ;
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
@java.lang.Override
public long getReqId() {
return reqId_;
}
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @param value The reqId to set.
* @return This builder for chaining.
*/
public Builder setReqId(long value) {
reqId_ = value;
onChanged();
return this;
}
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return This builder for chaining.
*/
public Builder clearReqId() {
reqId_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the semaphore to describe
*
*
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the semaphore to describe
*
*
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the semaphore to describe
*
*
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the semaphore to describe
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the semaphore to describe
*
*
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private boolean includeOwners_ ;
/**
*
* Response will include owners list if true
*
*
* bool include_owners = 3;
* @return The includeOwners.
*/
@java.lang.Override
public boolean getIncludeOwners() {
return includeOwners_;
}
/**
*
* Response will include owners list if true
*
*
* bool include_owners = 3;
* @param value The includeOwners to set.
* @return This builder for chaining.
*/
public Builder setIncludeOwners(boolean value) {
includeOwners_ = value;
onChanged();
return this;
}
/**
*
* Response will include owners list if true
*
*
* bool include_owners = 3;
* @return This builder for chaining.
*/
public Builder clearIncludeOwners() {
includeOwners_ = false;
onChanged();
return this;
}
private boolean includeWaiters_ ;
/**
*
* Response will include waiters list if true
*
*
* bool include_waiters = 4;
* @return The includeWaiters.
*/
@java.lang.Override
public boolean getIncludeWaiters() {
return includeWaiters_;
}
/**
*
* Response will include waiters list if true
*
*
* bool include_waiters = 4;
* @param value The includeWaiters to set.
* @return This builder for chaining.
*/
public Builder setIncludeWaiters(boolean value) {
includeWaiters_ = value;
onChanged();
return this;
}
/**
*
* Response will include waiters list if true
*
*
* bool include_waiters = 4;
* @return This builder for chaining.
*/
public Builder clearIncludeWaiters() {
includeWaiters_ = false;
onChanged();
return this;
}
private boolean watchData_ ;
/**
*
* Watch for changes in semaphore data
*
*
* bool watch_data = 5;
* @return The watchData.
*/
@java.lang.Override
public boolean getWatchData() {
return watchData_;
}
/**
*
* Watch for changes in semaphore data
*
*
* bool watch_data = 5;
* @param value The watchData to set.
* @return This builder for chaining.
*/
public Builder setWatchData(boolean value) {
watchData_ = value;
onChanged();
return this;
}
/**
*
* Watch for changes in semaphore data
*
*
* bool watch_data = 5;
* @return This builder for chaining.
*/
public Builder clearWatchData() {
watchData_ = false;
onChanged();
return this;
}
private boolean watchOwners_ ;
/**
*
* Watch for changes in semaphore owners (including owners data)
*
*
* bool watch_owners = 6;
* @return The watchOwners.
*/
@java.lang.Override
public boolean getWatchOwners() {
return watchOwners_;
}
/**
*
* Watch for changes in semaphore owners (including owners data)
*
*
* bool watch_owners = 6;
* @param value The watchOwners to set.
* @return This builder for chaining.
*/
public Builder setWatchOwners(boolean value) {
watchOwners_ = value;
onChanged();
return this;
}
/**
*
* Watch for changes in semaphore owners (including owners data)
*
*
* bool watch_owners = 6;
* @return This builder for chaining.
*/
public Builder clearWatchOwners() {
watchOwners_ = 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.Coordination.SessionRequest.DescribeSemaphore)
}
// @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionRequest.DescribeSemaphore)
private static final com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore();
}
public static com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DescribeSemaphore parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DescribeSemaphore(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateSemaphoreOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionRequest.CreateSemaphore)
com.google.protobuf.MessageOrBuilder {
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
long getReqId();
/**
*
* Name of the semaphore to create
*
*
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the semaphore to create
*
*
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Number of tokens that may be acquired by sessions
*
*
* uint64 limit = 3;
* @return The limit.
*/
long getLimit();
/**
*
* User-defined data that is attached to the semaphore
*
*
* bytes data = 4;
* @return The data.
*/
com.google.protobuf.ByteString getData();
}
/**
*
**
* Used to create a new semaphore
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.CreateSemaphore}
*/
public static final class CreateSemaphore extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionRequest.CreateSemaphore)
CreateSemaphoreOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateSemaphore.newBuilder() to construct.
private CreateSemaphore(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateSemaphore() {
name_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateSemaphore();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateSemaphore(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
reqId_ = input.readUInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 24: {
limit_ = input.readUInt64();
break;
}
case 34: {
data_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_CreateSemaphore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_CreateSemaphore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.class, com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.Builder.class);
}
public static final int REQ_ID_FIELD_NUMBER = 1;
private long reqId_;
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
@java.lang.Override
public long getReqId() {
return reqId_;
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the semaphore to create
*
*
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the semaphore to create
*
*
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LIMIT_FIELD_NUMBER = 3;
private long limit_;
/**
*
* Number of tokens that may be acquired by sessions
*
*
* uint64 limit = 3;
* @return The limit.
*/
@java.lang.Override
public long getLimit() {
return limit_;
}
public static final int DATA_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString data_;
/**
*
* User-defined data that is attached to the semaphore
*
*
* bytes data = 4;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
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 (reqId_ != 0L) {
output.writeUInt64(1, reqId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (limit_ != 0L) {
output.writeUInt64(3, limit_);
}
if (!data_.isEmpty()) {
output.writeBytes(4, data_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (reqId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, reqId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (limit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, limit_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, data_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.coordination.SessionRequest.CreateSemaphore)) {
return super.equals(obj);
}
com.yandex.ydb.coordination.SessionRequest.CreateSemaphore other = (com.yandex.ydb.coordination.SessionRequest.CreateSemaphore) obj;
if (getReqId()
!= other.getReqId()) return false;
if (!getName()
.equals(other.getName())) return false;
if (getLimit()
!= other.getLimit()) return false;
if (!getData()
.equals(other.getData())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REQ_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReqId());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLimit());
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.coordination.SessionRequest.CreateSemaphore parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.CreateSemaphore parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.CreateSemaphore parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.CreateSemaphore parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.CreateSemaphore parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.CreateSemaphore parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.CreateSemaphore parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.CreateSemaphore parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.CreateSemaphore parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.CreateSemaphore parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.CreateSemaphore parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.CreateSemaphore parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.coordination.SessionRequest.CreateSemaphore 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;
}
/**
*
**
* Used to create a new semaphore
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.CreateSemaphore}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionRequest.CreateSemaphore)
com.yandex.ydb.coordination.SessionRequest.CreateSemaphoreOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_CreateSemaphore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_CreateSemaphore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.class, com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.Builder.class);
}
// Construct using com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
reqId_ = 0L;
name_ = "";
limit_ = 0L;
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_CreateSemaphore_descriptor;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.CreateSemaphore getDefaultInstanceForType() {
return com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.CreateSemaphore build() {
com.yandex.ydb.coordination.SessionRequest.CreateSemaphore result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.CreateSemaphore buildPartial() {
com.yandex.ydb.coordination.SessionRequest.CreateSemaphore result = new com.yandex.ydb.coordination.SessionRequest.CreateSemaphore(this);
result.reqId_ = reqId_;
result.name_ = name_;
result.limit_ = limit_;
result.data_ = data_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.coordination.SessionRequest.CreateSemaphore) {
return mergeFrom((com.yandex.ydb.coordination.SessionRequest.CreateSemaphore)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.coordination.SessionRequest.CreateSemaphore other) {
if (other == com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.getDefaultInstance()) return this;
if (other.getReqId() != 0L) {
setReqId(other.getReqId());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getLimit() != 0L) {
setLimit(other.getLimit());
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.coordination.SessionRequest.CreateSemaphore parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.coordination.SessionRequest.CreateSemaphore) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long reqId_ ;
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
@java.lang.Override
public long getReqId() {
return reqId_;
}
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @param value The reqId to set.
* @return This builder for chaining.
*/
public Builder setReqId(long value) {
reqId_ = value;
onChanged();
return this;
}
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return This builder for chaining.
*/
public Builder clearReqId() {
reqId_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the semaphore to create
*
*
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the semaphore to create
*
*
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the semaphore to create
*
*
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the semaphore to create
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the semaphore to create
*
*
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private long limit_ ;
/**
*
* Number of tokens that may be acquired by sessions
*
*
* uint64 limit = 3;
* @return The limit.
*/
@java.lang.Override
public long getLimit() {
return limit_;
}
/**
*
* Number of tokens that may be acquired by sessions
*
*
* uint64 limit = 3;
* @param value The limit to set.
* @return This builder for chaining.
*/
public Builder setLimit(long value) {
limit_ = value;
onChanged();
return this;
}
/**
*
* Number of tokens that may be acquired by sessions
*
*
* uint64 limit = 3;
* @return This builder for chaining.
*/
public Builder clearLimit() {
limit_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* User-defined data that is attached to the semaphore
*
*
* bytes data = 4;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* User-defined data that is attached to the semaphore
*
*
* bytes data = 4;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* User-defined data that is attached to the semaphore
*
*
* bytes data = 4;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
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.Coordination.SessionRequest.CreateSemaphore)
}
// @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionRequest.CreateSemaphore)
private static final com.yandex.ydb.coordination.SessionRequest.CreateSemaphore DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionRequest.CreateSemaphore();
}
public static com.yandex.ydb.coordination.SessionRequest.CreateSemaphore getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateSemaphore parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateSemaphore(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.CreateSemaphore getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateSemaphoreOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionRequest.UpdateSemaphore)
com.google.protobuf.MessageOrBuilder {
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
long getReqId();
/**
*
* Name of the semaphore to update
*
*
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the semaphore to update
*
*
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* User-defined data that is attached to the semaphore
*
*
* bytes data = 3;
* @return The data.
*/
com.google.protobuf.ByteString getData();
}
/**
*
**
* Used to change semaphore data
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.UpdateSemaphore}
*/
public static final class UpdateSemaphore extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionRequest.UpdateSemaphore)
UpdateSemaphoreOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateSemaphore.newBuilder() to construct.
private UpdateSemaphore(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateSemaphore() {
name_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateSemaphore();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateSemaphore(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
reqId_ = input.readUInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
data_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_UpdateSemaphore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_UpdateSemaphore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.class, com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.Builder.class);
}
public static final int REQ_ID_FIELD_NUMBER = 1;
private long reqId_;
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
@java.lang.Override
public long getReqId() {
return reqId_;
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the semaphore to update
*
*
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the semaphore to update
*
*
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString data_;
/**
*
* User-defined data that is attached to the semaphore
*
*
* bytes data = 3;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
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 (reqId_ != 0L) {
output.writeUInt64(1, reqId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!data_.isEmpty()) {
output.writeBytes(3, data_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (reqId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, reqId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, data_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore)) {
return super.equals(obj);
}
com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore other = (com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore) obj;
if (getReqId()
!= other.getReqId()) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getData()
.equals(other.getData())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REQ_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReqId());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore 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;
}
/**
*
**
* Used to change semaphore data
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.UpdateSemaphore}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionRequest.UpdateSemaphore)
com.yandex.ydb.coordination.SessionRequest.UpdateSemaphoreOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_UpdateSemaphore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_UpdateSemaphore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.class, com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.Builder.class);
}
// Construct using com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
reqId_ = 0L;
name_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_UpdateSemaphore_descriptor;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore getDefaultInstanceForType() {
return com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore build() {
com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore buildPartial() {
com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore result = new com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore(this);
result.reqId_ = reqId_;
result.name_ = name_;
result.data_ = data_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore) {
return mergeFrom((com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore other) {
if (other == com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.getDefaultInstance()) return this;
if (other.getReqId() != 0L) {
setReqId(other.getReqId());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long reqId_ ;
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
@java.lang.Override
public long getReqId() {
return reqId_;
}
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @param value The reqId to set.
* @return This builder for chaining.
*/
public Builder setReqId(long value) {
reqId_ = value;
onChanged();
return this;
}
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return This builder for chaining.
*/
public Builder clearReqId() {
reqId_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the semaphore to update
*
*
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the semaphore to update
*
*
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the semaphore to update
*
*
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the semaphore to update
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the semaphore to update
*
*
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* User-defined data that is attached to the semaphore
*
*
* bytes data = 3;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* User-defined data that is attached to the semaphore
*
*
* bytes data = 3;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* User-defined data that is attached to the semaphore
*
*
* bytes data = 3;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
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.Coordination.SessionRequest.UpdateSemaphore)
}
// @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionRequest.UpdateSemaphore)
private static final com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore();
}
public static com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateSemaphore parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateSemaphore(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteSemaphoreOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionRequest.DeleteSemaphore)
com.google.protobuf.MessageOrBuilder {
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
long getReqId();
/**
*
* Name of the semaphore to delete
*
*
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the semaphore to delete
*
*
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Will delete semaphore even if currently acquired by sessions
*
*
* bool force = 3;
* @return The force.
*/
boolean getForce();
}
/**
*
**
* Used to delete an existing semaphore
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.DeleteSemaphore}
*/
public static final class DeleteSemaphore extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionRequest.DeleteSemaphore)
DeleteSemaphoreOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteSemaphore.newBuilder() to construct.
private DeleteSemaphore(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteSemaphore() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteSemaphore();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteSemaphore(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
reqId_ = input.readUInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 24: {
force_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_DeleteSemaphore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_DeleteSemaphore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.class, com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.Builder.class);
}
public static final int REQ_ID_FIELD_NUMBER = 1;
private long reqId_;
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
@java.lang.Override
public long getReqId() {
return reqId_;
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the semaphore to delete
*
*
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the semaphore to delete
*
*
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FORCE_FIELD_NUMBER = 3;
private boolean force_;
/**
*
* Will delete semaphore even if currently acquired by sessions
*
*
* bool force = 3;
* @return The force.
*/
@java.lang.Override
public boolean getForce() {
return force_;
}
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 (reqId_ != 0L) {
output.writeUInt64(1, reqId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (force_ != false) {
output.writeBool(3, force_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (reqId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, reqId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (force_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, force_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore)) {
return super.equals(obj);
}
com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore other = (com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore) obj;
if (getReqId()
!= other.getReqId()) return false;
if (!getName()
.equals(other.getName())) return false;
if (getForce()
!= other.getForce()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REQ_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReqId());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + FORCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getForce());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore 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;
}
/**
*
**
* Used to delete an existing semaphore
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest.DeleteSemaphore}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionRequest.DeleteSemaphore)
com.yandex.ydb.coordination.SessionRequest.DeleteSemaphoreOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_DeleteSemaphore_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_DeleteSemaphore_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.class, com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.Builder.class);
}
// Construct using com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
reqId_ = 0L;
name_ = "";
force_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_DeleteSemaphore_descriptor;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore getDefaultInstanceForType() {
return com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore build() {
com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore buildPartial() {
com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore result = new com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore(this);
result.reqId_ = reqId_;
result.name_ = name_;
result.force_ = force_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore) {
return mergeFrom((com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore other) {
if (other == com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.getDefaultInstance()) return this;
if (other.getReqId() != 0L) {
setReqId(other.getReqId());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getForce() != false) {
setForce(other.getForce());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long reqId_ ;
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return The reqId.
*/
@java.lang.Override
public long getReqId() {
return reqId_;
}
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @param value The reqId to set.
* @return This builder for chaining.
*/
public Builder setReqId(long value) {
reqId_ = value;
onChanged();
return this;
}
/**
*
* Client-defined request id, echoed in the response
*
*
* uint64 req_id = 1;
* @return This builder for chaining.
*/
public Builder clearReqId() {
reqId_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the semaphore to delete
*
*
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the semaphore to delete
*
*
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the semaphore to delete
*
*
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the semaphore to delete
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the semaphore to delete
*
*
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private boolean force_ ;
/**
*
* Will delete semaphore even if currently acquired by sessions
*
*
* bool force = 3;
* @return The force.
*/
@java.lang.Override
public boolean getForce() {
return force_;
}
/**
*
* Will delete semaphore even if currently acquired by sessions
*
*
* bool force = 3;
* @param value The force to set.
* @return This builder for chaining.
*/
public Builder setForce(boolean value) {
force_ = value;
onChanged();
return this;
}
/**
*
* Will delete semaphore even if currently acquired by sessions
*
*
* bool force = 3;
* @return This builder for chaining.
*/
public Builder clearForce() {
force_ = 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.Coordination.SessionRequest.DeleteSemaphore)
}
// @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionRequest.DeleteSemaphore)
private static final com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore();
}
public static com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteSemaphore parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteSemaphore(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int requestCase_ = 0;
private java.lang.Object request_;
public enum RequestCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
PING(1),
PONG(2),
SESSION_START(3),
SESSION_STOP(4),
UNSUPPORTED_5(5),
UNSUPPORTED_6(6),
ACQUIRE_SEMAPHORE(7),
RELEASE_SEMAPHORE(8),
DESCRIBE_SEMAPHORE(9),
CREATE_SEMAPHORE(10),
UPDATE_SEMAPHORE(11),
DELETE_SEMAPHORE(12),
UNSUPPORTED_13(13),
UNSUPPORTED_14(14),
UNSUPPORTED_15(15),
REQUEST_NOT_SET(0);
private final int value;
private RequestCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RequestCase valueOf(int value) {
return forNumber(value);
}
public static RequestCase forNumber(int value) {
switch (value) {
case 1: return PING;
case 2: return PONG;
case 3: return SESSION_START;
case 4: return SESSION_STOP;
case 5: return UNSUPPORTED_5;
case 6: return UNSUPPORTED_6;
case 7: return ACQUIRE_SEMAPHORE;
case 8: return RELEASE_SEMAPHORE;
case 9: return DESCRIBE_SEMAPHORE;
case 10: return CREATE_SEMAPHORE;
case 11: return UPDATE_SEMAPHORE;
case 12: return DELETE_SEMAPHORE;
case 13: return UNSUPPORTED_13;
case 14: return UNSUPPORTED_14;
case 15: return UNSUPPORTED_15;
case 0: return REQUEST_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public RequestCase
getRequestCase() {
return RequestCase.forNumber(
requestCase_);
}
public static final int PING_FIELD_NUMBER = 1;
/**
* .Ydb.Coordination.SessionRequest.PingPong ping = 1;
* @return Whether the ping field is set.
*/
@java.lang.Override
public boolean hasPing() {
return requestCase_ == 1;
}
/**
* .Ydb.Coordination.SessionRequest.PingPong ping = 1;
* @return The ping.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.PingPong getPing() {
if (requestCase_ == 1) {
return (com.yandex.ydb.coordination.SessionRequest.PingPong) request_;
}
return com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance();
}
/**
* .Ydb.Coordination.SessionRequest.PingPong ping = 1;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.PingPongOrBuilder getPingOrBuilder() {
if (requestCase_ == 1) {
return (com.yandex.ydb.coordination.SessionRequest.PingPong) request_;
}
return com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance();
}
public static final int PONG_FIELD_NUMBER = 2;
/**
* .Ydb.Coordination.SessionRequest.PingPong pong = 2;
* @return Whether the pong field is set.
*/
@java.lang.Override
public boolean hasPong() {
return requestCase_ == 2;
}
/**
* .Ydb.Coordination.SessionRequest.PingPong pong = 2;
* @return The pong.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.PingPong getPong() {
if (requestCase_ == 2) {
return (com.yandex.ydb.coordination.SessionRequest.PingPong) request_;
}
return com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance();
}
/**
* .Ydb.Coordination.SessionRequest.PingPong pong = 2;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.PingPongOrBuilder getPongOrBuilder() {
if (requestCase_ == 2) {
return (com.yandex.ydb.coordination.SessionRequest.PingPong) request_;
}
return com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance();
}
public static final int SESSION_START_FIELD_NUMBER = 3;
/**
* .Ydb.Coordination.SessionRequest.SessionStart session_start = 3;
* @return Whether the sessionStart field is set.
*/
@java.lang.Override
public boolean hasSessionStart() {
return requestCase_ == 3;
}
/**
* .Ydb.Coordination.SessionRequest.SessionStart session_start = 3;
* @return The sessionStart.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStart getSessionStart() {
if (requestCase_ == 3) {
return (com.yandex.ydb.coordination.SessionRequest.SessionStart) request_;
}
return com.yandex.ydb.coordination.SessionRequest.SessionStart.getDefaultInstance();
}
/**
* .Ydb.Coordination.SessionRequest.SessionStart session_start = 3;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStartOrBuilder getSessionStartOrBuilder() {
if (requestCase_ == 3) {
return (com.yandex.ydb.coordination.SessionRequest.SessionStart) request_;
}
return com.yandex.ydb.coordination.SessionRequest.SessionStart.getDefaultInstance();
}
public static final int SESSION_STOP_FIELD_NUMBER = 4;
/**
* .Ydb.Coordination.SessionRequest.SessionStop session_stop = 4;
* @return Whether the sessionStop field is set.
*/
@java.lang.Override
public boolean hasSessionStop() {
return requestCase_ == 4;
}
/**
* .Ydb.Coordination.SessionRequest.SessionStop session_stop = 4;
* @return The sessionStop.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStop getSessionStop() {
if (requestCase_ == 4) {
return (com.yandex.ydb.coordination.SessionRequest.SessionStop) request_;
}
return com.yandex.ydb.coordination.SessionRequest.SessionStop.getDefaultInstance();
}
/**
* .Ydb.Coordination.SessionRequest.SessionStop session_stop = 4;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStopOrBuilder getSessionStopOrBuilder() {
if (requestCase_ == 4) {
return (com.yandex.ydb.coordination.SessionRequest.SessionStop) request_;
}
return com.yandex.ydb.coordination.SessionRequest.SessionStop.getDefaultInstance();
}
public static final int UNSUPPORTED_5_FIELD_NUMBER = 5;
/**
* .Ydb.Coordination.Unsupported unsupported_5 = 5;
* @return Whether the unsupported5 field is set.
*/
@java.lang.Override
public boolean hasUnsupported5() {
return requestCase_ == 5;
}
/**
* .Ydb.Coordination.Unsupported unsupported_5 = 5;
* @return The unsupported5.
*/
@java.lang.Override
public com.yandex.ydb.coordination.Unsupported getUnsupported5() {
if (requestCase_ == 5) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
/**
* .Ydb.Coordination.Unsupported unsupported_5 = 5;
*/
@java.lang.Override
public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported5OrBuilder() {
if (requestCase_ == 5) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
public static final int UNSUPPORTED_6_FIELD_NUMBER = 6;
/**
* .Ydb.Coordination.Unsupported unsupported_6 = 6;
* @return Whether the unsupported6 field is set.
*/
@java.lang.Override
public boolean hasUnsupported6() {
return requestCase_ == 6;
}
/**
* .Ydb.Coordination.Unsupported unsupported_6 = 6;
* @return The unsupported6.
*/
@java.lang.Override
public com.yandex.ydb.coordination.Unsupported getUnsupported6() {
if (requestCase_ == 6) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
/**
* .Ydb.Coordination.Unsupported unsupported_6 = 6;
*/
@java.lang.Override
public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported6OrBuilder() {
if (requestCase_ == 6) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
public static final int ACQUIRE_SEMAPHORE_FIELD_NUMBER = 7;
/**
* .Ydb.Coordination.SessionRequest.AcquireSemaphore acquire_semaphore = 7;
* @return Whether the acquireSemaphore field is set.
*/
@java.lang.Override
public boolean hasAcquireSemaphore() {
return requestCase_ == 7;
}
/**
* .Ydb.Coordination.SessionRequest.AcquireSemaphore acquire_semaphore = 7;
* @return The acquireSemaphore.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore getAcquireSemaphore() {
if (requestCase_ == 7) {
return (com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.getDefaultInstance();
}
/**
* .Ydb.Coordination.SessionRequest.AcquireSemaphore acquire_semaphore = 7;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.AcquireSemaphoreOrBuilder getAcquireSemaphoreOrBuilder() {
if (requestCase_ == 7) {
return (com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.getDefaultInstance();
}
public static final int RELEASE_SEMAPHORE_FIELD_NUMBER = 8;
/**
* .Ydb.Coordination.SessionRequest.ReleaseSemaphore release_semaphore = 8;
* @return Whether the releaseSemaphore field is set.
*/
@java.lang.Override
public boolean hasReleaseSemaphore() {
return requestCase_ == 8;
}
/**
* .Ydb.Coordination.SessionRequest.ReleaseSemaphore release_semaphore = 8;
* @return The releaseSemaphore.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore getReleaseSemaphore() {
if (requestCase_ == 8) {
return (com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.getDefaultInstance();
}
/**
* .Ydb.Coordination.SessionRequest.ReleaseSemaphore release_semaphore = 8;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphoreOrBuilder getReleaseSemaphoreOrBuilder() {
if (requestCase_ == 8) {
return (com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.getDefaultInstance();
}
public static final int DESCRIBE_SEMAPHORE_FIELD_NUMBER = 9;
/**
* .Ydb.Coordination.SessionRequest.DescribeSemaphore describe_semaphore = 9;
* @return Whether the describeSemaphore field is set.
*/
@java.lang.Override
public boolean hasDescribeSemaphore() {
return requestCase_ == 9;
}
/**
* .Ydb.Coordination.SessionRequest.DescribeSemaphore describe_semaphore = 9;
* @return The describeSemaphore.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore getDescribeSemaphore() {
if (requestCase_ == 9) {
return (com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.getDefaultInstance();
}
/**
* .Ydb.Coordination.SessionRequest.DescribeSemaphore describe_semaphore = 9;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DescribeSemaphoreOrBuilder getDescribeSemaphoreOrBuilder() {
if (requestCase_ == 9) {
return (com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.getDefaultInstance();
}
public static final int CREATE_SEMAPHORE_FIELD_NUMBER = 10;
/**
* .Ydb.Coordination.SessionRequest.CreateSemaphore create_semaphore = 10;
* @return Whether the createSemaphore field is set.
*/
@java.lang.Override
public boolean hasCreateSemaphore() {
return requestCase_ == 10;
}
/**
* .Ydb.Coordination.SessionRequest.CreateSemaphore create_semaphore = 10;
* @return The createSemaphore.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.CreateSemaphore getCreateSemaphore() {
if (requestCase_ == 10) {
return (com.yandex.ydb.coordination.SessionRequest.CreateSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.getDefaultInstance();
}
/**
* .Ydb.Coordination.SessionRequest.CreateSemaphore create_semaphore = 10;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.CreateSemaphoreOrBuilder getCreateSemaphoreOrBuilder() {
if (requestCase_ == 10) {
return (com.yandex.ydb.coordination.SessionRequest.CreateSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.getDefaultInstance();
}
public static final int UPDATE_SEMAPHORE_FIELD_NUMBER = 11;
/**
* .Ydb.Coordination.SessionRequest.UpdateSemaphore update_semaphore = 11;
* @return Whether the updateSemaphore field is set.
*/
@java.lang.Override
public boolean hasUpdateSemaphore() {
return requestCase_ == 11;
}
/**
* .Ydb.Coordination.SessionRequest.UpdateSemaphore update_semaphore = 11;
* @return The updateSemaphore.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore getUpdateSemaphore() {
if (requestCase_ == 11) {
return (com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.getDefaultInstance();
}
/**
* .Ydb.Coordination.SessionRequest.UpdateSemaphore update_semaphore = 11;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.UpdateSemaphoreOrBuilder getUpdateSemaphoreOrBuilder() {
if (requestCase_ == 11) {
return (com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.getDefaultInstance();
}
public static final int DELETE_SEMAPHORE_FIELD_NUMBER = 12;
/**
* .Ydb.Coordination.SessionRequest.DeleteSemaphore delete_semaphore = 12;
* @return Whether the deleteSemaphore field is set.
*/
@java.lang.Override
public boolean hasDeleteSemaphore() {
return requestCase_ == 12;
}
/**
* .Ydb.Coordination.SessionRequest.DeleteSemaphore delete_semaphore = 12;
* @return The deleteSemaphore.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore getDeleteSemaphore() {
if (requestCase_ == 12) {
return (com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.getDefaultInstance();
}
/**
* .Ydb.Coordination.SessionRequest.DeleteSemaphore delete_semaphore = 12;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DeleteSemaphoreOrBuilder getDeleteSemaphoreOrBuilder() {
if (requestCase_ == 12) {
return (com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.getDefaultInstance();
}
public static final int UNSUPPORTED_13_FIELD_NUMBER = 13;
/**
* .Ydb.Coordination.Unsupported unsupported_13 = 13;
* @return Whether the unsupported13 field is set.
*/
@java.lang.Override
public boolean hasUnsupported13() {
return requestCase_ == 13;
}
/**
* .Ydb.Coordination.Unsupported unsupported_13 = 13;
* @return The unsupported13.
*/
@java.lang.Override
public com.yandex.ydb.coordination.Unsupported getUnsupported13() {
if (requestCase_ == 13) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
/**
* .Ydb.Coordination.Unsupported unsupported_13 = 13;
*/
@java.lang.Override
public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported13OrBuilder() {
if (requestCase_ == 13) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
public static final int UNSUPPORTED_14_FIELD_NUMBER = 14;
/**
* .Ydb.Coordination.Unsupported unsupported_14 = 14;
* @return Whether the unsupported14 field is set.
*/
@java.lang.Override
public boolean hasUnsupported14() {
return requestCase_ == 14;
}
/**
* .Ydb.Coordination.Unsupported unsupported_14 = 14;
* @return The unsupported14.
*/
@java.lang.Override
public com.yandex.ydb.coordination.Unsupported getUnsupported14() {
if (requestCase_ == 14) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
/**
* .Ydb.Coordination.Unsupported unsupported_14 = 14;
*/
@java.lang.Override
public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported14OrBuilder() {
if (requestCase_ == 14) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
public static final int UNSUPPORTED_15_FIELD_NUMBER = 15;
/**
* .Ydb.Coordination.Unsupported unsupported_15 = 15;
* @return Whether the unsupported15 field is set.
*/
@java.lang.Override
public boolean hasUnsupported15() {
return requestCase_ == 15;
}
/**
* .Ydb.Coordination.Unsupported unsupported_15 = 15;
* @return The unsupported15.
*/
@java.lang.Override
public com.yandex.ydb.coordination.Unsupported getUnsupported15() {
if (requestCase_ == 15) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
/**
* .Ydb.Coordination.Unsupported unsupported_15 = 15;
*/
@java.lang.Override
public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported15OrBuilder() {
if (requestCase_ == 15) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (requestCase_ == 1) {
output.writeMessage(1, (com.yandex.ydb.coordination.SessionRequest.PingPong) request_);
}
if (requestCase_ == 2) {
output.writeMessage(2, (com.yandex.ydb.coordination.SessionRequest.PingPong) request_);
}
if (requestCase_ == 3) {
output.writeMessage(3, (com.yandex.ydb.coordination.SessionRequest.SessionStart) request_);
}
if (requestCase_ == 4) {
output.writeMessage(4, (com.yandex.ydb.coordination.SessionRequest.SessionStop) request_);
}
if (requestCase_ == 5) {
output.writeMessage(5, (com.yandex.ydb.coordination.Unsupported) request_);
}
if (requestCase_ == 6) {
output.writeMessage(6, (com.yandex.ydb.coordination.Unsupported) request_);
}
if (requestCase_ == 7) {
output.writeMessage(7, (com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore) request_);
}
if (requestCase_ == 8) {
output.writeMessage(8, (com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore) request_);
}
if (requestCase_ == 9) {
output.writeMessage(9, (com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore) request_);
}
if (requestCase_ == 10) {
output.writeMessage(10, (com.yandex.ydb.coordination.SessionRequest.CreateSemaphore) request_);
}
if (requestCase_ == 11) {
output.writeMessage(11, (com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore) request_);
}
if (requestCase_ == 12) {
output.writeMessage(12, (com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore) request_);
}
if (requestCase_ == 13) {
output.writeMessage(13, (com.yandex.ydb.coordination.Unsupported) request_);
}
if (requestCase_ == 14) {
output.writeMessage(14, (com.yandex.ydb.coordination.Unsupported) request_);
}
if (requestCase_ == 15) {
output.writeMessage(15, (com.yandex.ydb.coordination.Unsupported) request_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (requestCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.yandex.ydb.coordination.SessionRequest.PingPong) request_);
}
if (requestCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.yandex.ydb.coordination.SessionRequest.PingPong) request_);
}
if (requestCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.yandex.ydb.coordination.SessionRequest.SessionStart) request_);
}
if (requestCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.yandex.ydb.coordination.SessionRequest.SessionStop) request_);
}
if (requestCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.yandex.ydb.coordination.Unsupported) request_);
}
if (requestCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.yandex.ydb.coordination.Unsupported) request_);
}
if (requestCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore) request_);
}
if (requestCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore) request_);
}
if (requestCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore) request_);
}
if (requestCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (com.yandex.ydb.coordination.SessionRequest.CreateSemaphore) request_);
}
if (requestCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore) request_);
}
if (requestCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore) request_);
}
if (requestCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (com.yandex.ydb.coordination.Unsupported) request_);
}
if (requestCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, (com.yandex.ydb.coordination.Unsupported) request_);
}
if (requestCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (com.yandex.ydb.coordination.Unsupported) request_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.coordination.SessionRequest)) {
return super.equals(obj);
}
com.yandex.ydb.coordination.SessionRequest other = (com.yandex.ydb.coordination.SessionRequest) obj;
if (!getRequestCase().equals(other.getRequestCase())) return false;
switch (requestCase_) {
case 1:
if (!getPing()
.equals(other.getPing())) return false;
break;
case 2:
if (!getPong()
.equals(other.getPong())) return false;
break;
case 3:
if (!getSessionStart()
.equals(other.getSessionStart())) return false;
break;
case 4:
if (!getSessionStop()
.equals(other.getSessionStop())) return false;
break;
case 5:
if (!getUnsupported5()
.equals(other.getUnsupported5())) return false;
break;
case 6:
if (!getUnsupported6()
.equals(other.getUnsupported6())) return false;
break;
case 7:
if (!getAcquireSemaphore()
.equals(other.getAcquireSemaphore())) return false;
break;
case 8:
if (!getReleaseSemaphore()
.equals(other.getReleaseSemaphore())) return false;
break;
case 9:
if (!getDescribeSemaphore()
.equals(other.getDescribeSemaphore())) return false;
break;
case 10:
if (!getCreateSemaphore()
.equals(other.getCreateSemaphore())) return false;
break;
case 11:
if (!getUpdateSemaphore()
.equals(other.getUpdateSemaphore())) return false;
break;
case 12:
if (!getDeleteSemaphore()
.equals(other.getDeleteSemaphore())) return false;
break;
case 13:
if (!getUnsupported13()
.equals(other.getUnsupported13())) return false;
break;
case 14:
if (!getUnsupported14()
.equals(other.getUnsupported14())) return false;
break;
case 15:
if (!getUnsupported15()
.equals(other.getUnsupported15())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (requestCase_) {
case 1:
hash = (37 * hash) + PING_FIELD_NUMBER;
hash = (53 * hash) + getPing().hashCode();
break;
case 2:
hash = (37 * hash) + PONG_FIELD_NUMBER;
hash = (53 * hash) + getPong().hashCode();
break;
case 3:
hash = (37 * hash) + SESSION_START_FIELD_NUMBER;
hash = (53 * hash) + getSessionStart().hashCode();
break;
case 4:
hash = (37 * hash) + SESSION_STOP_FIELD_NUMBER;
hash = (53 * hash) + getSessionStop().hashCode();
break;
case 5:
hash = (37 * hash) + UNSUPPORTED_5_FIELD_NUMBER;
hash = (53 * hash) + getUnsupported5().hashCode();
break;
case 6:
hash = (37 * hash) + UNSUPPORTED_6_FIELD_NUMBER;
hash = (53 * hash) + getUnsupported6().hashCode();
break;
case 7:
hash = (37 * hash) + ACQUIRE_SEMAPHORE_FIELD_NUMBER;
hash = (53 * hash) + getAcquireSemaphore().hashCode();
break;
case 8:
hash = (37 * hash) + RELEASE_SEMAPHORE_FIELD_NUMBER;
hash = (53 * hash) + getReleaseSemaphore().hashCode();
break;
case 9:
hash = (37 * hash) + DESCRIBE_SEMAPHORE_FIELD_NUMBER;
hash = (53 * hash) + getDescribeSemaphore().hashCode();
break;
case 10:
hash = (37 * hash) + CREATE_SEMAPHORE_FIELD_NUMBER;
hash = (53 * hash) + getCreateSemaphore().hashCode();
break;
case 11:
hash = (37 * hash) + UPDATE_SEMAPHORE_FIELD_NUMBER;
hash = (53 * hash) + getUpdateSemaphore().hashCode();
break;
case 12:
hash = (37 * hash) + DELETE_SEMAPHORE_FIELD_NUMBER;
hash = (53 * hash) + getDeleteSemaphore().hashCode();
break;
case 13:
hash = (37 * hash) + UNSUPPORTED_13_FIELD_NUMBER;
hash = (53 * hash) + getUnsupported13().hashCode();
break;
case 14:
hash = (37 * hash) + UNSUPPORTED_14_FIELD_NUMBER;
hash = (53 * hash) + getUnsupported14().hashCode();
break;
case 15:
hash = (37 * hash) + UNSUPPORTED_15_FIELD_NUMBER;
hash = (53 * hash) + getUnsupported15().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.coordination.SessionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.coordination.SessionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.coordination.SessionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.coordination.SessionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.coordination.SessionRequest 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;
}
/**
*
**
* Session request message sent from client to server
*
*
* Protobuf type {@code Ydb.Coordination.SessionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionRequest)
com.yandex.ydb.coordination.SessionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.coordination.SessionRequest.class, com.yandex.ydb.coordination.SessionRequest.Builder.class);
}
// Construct using com.yandex.ydb.coordination.SessionRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
requestCase_ = 0;
request_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest getDefaultInstanceForType() {
return com.yandex.ydb.coordination.SessionRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest build() {
com.yandex.ydb.coordination.SessionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest buildPartial() {
com.yandex.ydb.coordination.SessionRequest result = new com.yandex.ydb.coordination.SessionRequest(this);
if (requestCase_ == 1) {
if (pingBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = pingBuilder_.build();
}
}
if (requestCase_ == 2) {
if (pongBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = pongBuilder_.build();
}
}
if (requestCase_ == 3) {
if (sessionStartBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = sessionStartBuilder_.build();
}
}
if (requestCase_ == 4) {
if (sessionStopBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = sessionStopBuilder_.build();
}
}
if (requestCase_ == 5) {
if (unsupported5Builder_ == null) {
result.request_ = request_;
} else {
result.request_ = unsupported5Builder_.build();
}
}
if (requestCase_ == 6) {
if (unsupported6Builder_ == null) {
result.request_ = request_;
} else {
result.request_ = unsupported6Builder_.build();
}
}
if (requestCase_ == 7) {
if (acquireSemaphoreBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = acquireSemaphoreBuilder_.build();
}
}
if (requestCase_ == 8) {
if (releaseSemaphoreBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = releaseSemaphoreBuilder_.build();
}
}
if (requestCase_ == 9) {
if (describeSemaphoreBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = describeSemaphoreBuilder_.build();
}
}
if (requestCase_ == 10) {
if (createSemaphoreBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = createSemaphoreBuilder_.build();
}
}
if (requestCase_ == 11) {
if (updateSemaphoreBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = updateSemaphoreBuilder_.build();
}
}
if (requestCase_ == 12) {
if (deleteSemaphoreBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = deleteSemaphoreBuilder_.build();
}
}
if (requestCase_ == 13) {
if (unsupported13Builder_ == null) {
result.request_ = request_;
} else {
result.request_ = unsupported13Builder_.build();
}
}
if (requestCase_ == 14) {
if (unsupported14Builder_ == null) {
result.request_ = request_;
} else {
result.request_ = unsupported14Builder_.build();
}
}
if (requestCase_ == 15) {
if (unsupported15Builder_ == null) {
result.request_ = request_;
} else {
result.request_ = unsupported15Builder_.build();
}
}
result.requestCase_ = requestCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.coordination.SessionRequest) {
return mergeFrom((com.yandex.ydb.coordination.SessionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.coordination.SessionRequest other) {
if (other == com.yandex.ydb.coordination.SessionRequest.getDefaultInstance()) return this;
switch (other.getRequestCase()) {
case PING: {
mergePing(other.getPing());
break;
}
case PONG: {
mergePong(other.getPong());
break;
}
case SESSION_START: {
mergeSessionStart(other.getSessionStart());
break;
}
case SESSION_STOP: {
mergeSessionStop(other.getSessionStop());
break;
}
case UNSUPPORTED_5: {
mergeUnsupported5(other.getUnsupported5());
break;
}
case UNSUPPORTED_6: {
mergeUnsupported6(other.getUnsupported6());
break;
}
case ACQUIRE_SEMAPHORE: {
mergeAcquireSemaphore(other.getAcquireSemaphore());
break;
}
case RELEASE_SEMAPHORE: {
mergeReleaseSemaphore(other.getReleaseSemaphore());
break;
}
case DESCRIBE_SEMAPHORE: {
mergeDescribeSemaphore(other.getDescribeSemaphore());
break;
}
case CREATE_SEMAPHORE: {
mergeCreateSemaphore(other.getCreateSemaphore());
break;
}
case UPDATE_SEMAPHORE: {
mergeUpdateSemaphore(other.getUpdateSemaphore());
break;
}
case DELETE_SEMAPHORE: {
mergeDeleteSemaphore(other.getDeleteSemaphore());
break;
}
case UNSUPPORTED_13: {
mergeUnsupported13(other.getUnsupported13());
break;
}
case UNSUPPORTED_14: {
mergeUnsupported14(other.getUnsupported14());
break;
}
case UNSUPPORTED_15: {
mergeUnsupported15(other.getUnsupported15());
break;
}
case REQUEST_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.coordination.SessionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.coordination.SessionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int requestCase_ = 0;
private java.lang.Object request_;
public RequestCase
getRequestCase() {
return RequestCase.forNumber(
requestCase_);
}
public Builder clearRequest() {
requestCase_ = 0;
request_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.PingPong, com.yandex.ydb.coordination.SessionRequest.PingPong.Builder, com.yandex.ydb.coordination.SessionRequest.PingPongOrBuilder> pingBuilder_;
/**
* .Ydb.Coordination.SessionRequest.PingPong ping = 1;
* @return Whether the ping field is set.
*/
@java.lang.Override
public boolean hasPing() {
return requestCase_ == 1;
}
/**
* .Ydb.Coordination.SessionRequest.PingPong ping = 1;
* @return The ping.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.PingPong getPing() {
if (pingBuilder_ == null) {
if (requestCase_ == 1) {
return (com.yandex.ydb.coordination.SessionRequest.PingPong) request_;
}
return com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance();
} else {
if (requestCase_ == 1) {
return pingBuilder_.getMessage();
}
return com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.PingPong ping = 1;
*/
public Builder setPing(com.yandex.ydb.coordination.SessionRequest.PingPong value) {
if (pingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
pingBuilder_.setMessage(value);
}
requestCase_ = 1;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.PingPong ping = 1;
*/
public Builder setPing(
com.yandex.ydb.coordination.SessionRequest.PingPong.Builder builderForValue) {
if (pingBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
pingBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 1;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.PingPong ping = 1;
*/
public Builder mergePing(com.yandex.ydb.coordination.SessionRequest.PingPong value) {
if (pingBuilder_ == null) {
if (requestCase_ == 1 &&
request_ != com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.SessionRequest.PingPong.newBuilder((com.yandex.ydb.coordination.SessionRequest.PingPong) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 1) {
pingBuilder_.mergeFrom(value);
}
pingBuilder_.setMessage(value);
}
requestCase_ = 1;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.PingPong ping = 1;
*/
public Builder clearPing() {
if (pingBuilder_ == null) {
if (requestCase_ == 1) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 1) {
requestCase_ = 0;
request_ = null;
}
pingBuilder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.SessionRequest.PingPong ping = 1;
*/
public com.yandex.ydb.coordination.SessionRequest.PingPong.Builder getPingBuilder() {
return getPingFieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.SessionRequest.PingPong ping = 1;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.PingPongOrBuilder getPingOrBuilder() {
if ((requestCase_ == 1) && (pingBuilder_ != null)) {
return pingBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 1) {
return (com.yandex.ydb.coordination.SessionRequest.PingPong) request_;
}
return com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.PingPong ping = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.PingPong, com.yandex.ydb.coordination.SessionRequest.PingPong.Builder, com.yandex.ydb.coordination.SessionRequest.PingPongOrBuilder>
getPingFieldBuilder() {
if (pingBuilder_ == null) {
if (!(requestCase_ == 1)) {
request_ = com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance();
}
pingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.PingPong, com.yandex.ydb.coordination.SessionRequest.PingPong.Builder, com.yandex.ydb.coordination.SessionRequest.PingPongOrBuilder>(
(com.yandex.ydb.coordination.SessionRequest.PingPong) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 1;
onChanged();;
return pingBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.PingPong, com.yandex.ydb.coordination.SessionRequest.PingPong.Builder, com.yandex.ydb.coordination.SessionRequest.PingPongOrBuilder> pongBuilder_;
/**
* .Ydb.Coordination.SessionRequest.PingPong pong = 2;
* @return Whether the pong field is set.
*/
@java.lang.Override
public boolean hasPong() {
return requestCase_ == 2;
}
/**
* .Ydb.Coordination.SessionRequest.PingPong pong = 2;
* @return The pong.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.PingPong getPong() {
if (pongBuilder_ == null) {
if (requestCase_ == 2) {
return (com.yandex.ydb.coordination.SessionRequest.PingPong) request_;
}
return com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance();
} else {
if (requestCase_ == 2) {
return pongBuilder_.getMessage();
}
return com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.PingPong pong = 2;
*/
public Builder setPong(com.yandex.ydb.coordination.SessionRequest.PingPong value) {
if (pongBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
pongBuilder_.setMessage(value);
}
requestCase_ = 2;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.PingPong pong = 2;
*/
public Builder setPong(
com.yandex.ydb.coordination.SessionRequest.PingPong.Builder builderForValue) {
if (pongBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
pongBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 2;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.PingPong pong = 2;
*/
public Builder mergePong(com.yandex.ydb.coordination.SessionRequest.PingPong value) {
if (pongBuilder_ == null) {
if (requestCase_ == 2 &&
request_ != com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.SessionRequest.PingPong.newBuilder((com.yandex.ydb.coordination.SessionRequest.PingPong) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 2) {
pongBuilder_.mergeFrom(value);
}
pongBuilder_.setMessage(value);
}
requestCase_ = 2;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.PingPong pong = 2;
*/
public Builder clearPong() {
if (pongBuilder_ == null) {
if (requestCase_ == 2) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 2) {
requestCase_ = 0;
request_ = null;
}
pongBuilder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.SessionRequest.PingPong pong = 2;
*/
public com.yandex.ydb.coordination.SessionRequest.PingPong.Builder getPongBuilder() {
return getPongFieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.SessionRequest.PingPong pong = 2;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.PingPongOrBuilder getPongOrBuilder() {
if ((requestCase_ == 2) && (pongBuilder_ != null)) {
return pongBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 2) {
return (com.yandex.ydb.coordination.SessionRequest.PingPong) request_;
}
return com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.PingPong pong = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.PingPong, com.yandex.ydb.coordination.SessionRequest.PingPong.Builder, com.yandex.ydb.coordination.SessionRequest.PingPongOrBuilder>
getPongFieldBuilder() {
if (pongBuilder_ == null) {
if (!(requestCase_ == 2)) {
request_ = com.yandex.ydb.coordination.SessionRequest.PingPong.getDefaultInstance();
}
pongBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.PingPong, com.yandex.ydb.coordination.SessionRequest.PingPong.Builder, com.yandex.ydb.coordination.SessionRequest.PingPongOrBuilder>(
(com.yandex.ydb.coordination.SessionRequest.PingPong) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 2;
onChanged();;
return pongBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.SessionStart, com.yandex.ydb.coordination.SessionRequest.SessionStart.Builder, com.yandex.ydb.coordination.SessionRequest.SessionStartOrBuilder> sessionStartBuilder_;
/**
* .Ydb.Coordination.SessionRequest.SessionStart session_start = 3;
* @return Whether the sessionStart field is set.
*/
@java.lang.Override
public boolean hasSessionStart() {
return requestCase_ == 3;
}
/**
* .Ydb.Coordination.SessionRequest.SessionStart session_start = 3;
* @return The sessionStart.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStart getSessionStart() {
if (sessionStartBuilder_ == null) {
if (requestCase_ == 3) {
return (com.yandex.ydb.coordination.SessionRequest.SessionStart) request_;
}
return com.yandex.ydb.coordination.SessionRequest.SessionStart.getDefaultInstance();
} else {
if (requestCase_ == 3) {
return sessionStartBuilder_.getMessage();
}
return com.yandex.ydb.coordination.SessionRequest.SessionStart.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.SessionStart session_start = 3;
*/
public Builder setSessionStart(com.yandex.ydb.coordination.SessionRequest.SessionStart value) {
if (sessionStartBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
sessionStartBuilder_.setMessage(value);
}
requestCase_ = 3;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.SessionStart session_start = 3;
*/
public Builder setSessionStart(
com.yandex.ydb.coordination.SessionRequest.SessionStart.Builder builderForValue) {
if (sessionStartBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
sessionStartBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 3;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.SessionStart session_start = 3;
*/
public Builder mergeSessionStart(com.yandex.ydb.coordination.SessionRequest.SessionStart value) {
if (sessionStartBuilder_ == null) {
if (requestCase_ == 3 &&
request_ != com.yandex.ydb.coordination.SessionRequest.SessionStart.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.SessionRequest.SessionStart.newBuilder((com.yandex.ydb.coordination.SessionRequest.SessionStart) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 3) {
sessionStartBuilder_.mergeFrom(value);
}
sessionStartBuilder_.setMessage(value);
}
requestCase_ = 3;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.SessionStart session_start = 3;
*/
public Builder clearSessionStart() {
if (sessionStartBuilder_ == null) {
if (requestCase_ == 3) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 3) {
requestCase_ = 0;
request_ = null;
}
sessionStartBuilder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.SessionRequest.SessionStart session_start = 3;
*/
public com.yandex.ydb.coordination.SessionRequest.SessionStart.Builder getSessionStartBuilder() {
return getSessionStartFieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.SessionRequest.SessionStart session_start = 3;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStartOrBuilder getSessionStartOrBuilder() {
if ((requestCase_ == 3) && (sessionStartBuilder_ != null)) {
return sessionStartBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 3) {
return (com.yandex.ydb.coordination.SessionRequest.SessionStart) request_;
}
return com.yandex.ydb.coordination.SessionRequest.SessionStart.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.SessionStart session_start = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.SessionStart, com.yandex.ydb.coordination.SessionRequest.SessionStart.Builder, com.yandex.ydb.coordination.SessionRequest.SessionStartOrBuilder>
getSessionStartFieldBuilder() {
if (sessionStartBuilder_ == null) {
if (!(requestCase_ == 3)) {
request_ = com.yandex.ydb.coordination.SessionRequest.SessionStart.getDefaultInstance();
}
sessionStartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.SessionStart, com.yandex.ydb.coordination.SessionRequest.SessionStart.Builder, com.yandex.ydb.coordination.SessionRequest.SessionStartOrBuilder>(
(com.yandex.ydb.coordination.SessionRequest.SessionStart) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 3;
onChanged();;
return sessionStartBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.SessionStop, com.yandex.ydb.coordination.SessionRequest.SessionStop.Builder, com.yandex.ydb.coordination.SessionRequest.SessionStopOrBuilder> sessionStopBuilder_;
/**
* .Ydb.Coordination.SessionRequest.SessionStop session_stop = 4;
* @return Whether the sessionStop field is set.
*/
@java.lang.Override
public boolean hasSessionStop() {
return requestCase_ == 4;
}
/**
* .Ydb.Coordination.SessionRequest.SessionStop session_stop = 4;
* @return The sessionStop.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStop getSessionStop() {
if (sessionStopBuilder_ == null) {
if (requestCase_ == 4) {
return (com.yandex.ydb.coordination.SessionRequest.SessionStop) request_;
}
return com.yandex.ydb.coordination.SessionRequest.SessionStop.getDefaultInstance();
} else {
if (requestCase_ == 4) {
return sessionStopBuilder_.getMessage();
}
return com.yandex.ydb.coordination.SessionRequest.SessionStop.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.SessionStop session_stop = 4;
*/
public Builder setSessionStop(com.yandex.ydb.coordination.SessionRequest.SessionStop value) {
if (sessionStopBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
sessionStopBuilder_.setMessage(value);
}
requestCase_ = 4;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.SessionStop session_stop = 4;
*/
public Builder setSessionStop(
com.yandex.ydb.coordination.SessionRequest.SessionStop.Builder builderForValue) {
if (sessionStopBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
sessionStopBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 4;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.SessionStop session_stop = 4;
*/
public Builder mergeSessionStop(com.yandex.ydb.coordination.SessionRequest.SessionStop value) {
if (sessionStopBuilder_ == null) {
if (requestCase_ == 4 &&
request_ != com.yandex.ydb.coordination.SessionRequest.SessionStop.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.SessionRequest.SessionStop.newBuilder((com.yandex.ydb.coordination.SessionRequest.SessionStop) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 4) {
sessionStopBuilder_.mergeFrom(value);
}
sessionStopBuilder_.setMessage(value);
}
requestCase_ = 4;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.SessionStop session_stop = 4;
*/
public Builder clearSessionStop() {
if (sessionStopBuilder_ == null) {
if (requestCase_ == 4) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 4) {
requestCase_ = 0;
request_ = null;
}
sessionStopBuilder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.SessionRequest.SessionStop session_stop = 4;
*/
public com.yandex.ydb.coordination.SessionRequest.SessionStop.Builder getSessionStopBuilder() {
return getSessionStopFieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.SessionRequest.SessionStop session_stop = 4;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.SessionStopOrBuilder getSessionStopOrBuilder() {
if ((requestCase_ == 4) && (sessionStopBuilder_ != null)) {
return sessionStopBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 4) {
return (com.yandex.ydb.coordination.SessionRequest.SessionStop) request_;
}
return com.yandex.ydb.coordination.SessionRequest.SessionStop.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.SessionStop session_stop = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.SessionStop, com.yandex.ydb.coordination.SessionRequest.SessionStop.Builder, com.yandex.ydb.coordination.SessionRequest.SessionStopOrBuilder>
getSessionStopFieldBuilder() {
if (sessionStopBuilder_ == null) {
if (!(requestCase_ == 4)) {
request_ = com.yandex.ydb.coordination.SessionRequest.SessionStop.getDefaultInstance();
}
sessionStopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.SessionStop, com.yandex.ydb.coordination.SessionRequest.SessionStop.Builder, com.yandex.ydb.coordination.SessionRequest.SessionStopOrBuilder>(
(com.yandex.ydb.coordination.SessionRequest.SessionStop) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 4;
onChanged();;
return sessionStopBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> unsupported5Builder_;
/**
* .Ydb.Coordination.Unsupported unsupported_5 = 5;
* @return Whether the unsupported5 field is set.
*/
@java.lang.Override
public boolean hasUnsupported5() {
return requestCase_ == 5;
}
/**
* .Ydb.Coordination.Unsupported unsupported_5 = 5;
* @return The unsupported5.
*/
@java.lang.Override
public com.yandex.ydb.coordination.Unsupported getUnsupported5() {
if (unsupported5Builder_ == null) {
if (requestCase_ == 5) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
} else {
if (requestCase_ == 5) {
return unsupported5Builder_.getMessage();
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.Unsupported unsupported_5 = 5;
*/
public Builder setUnsupported5(com.yandex.ydb.coordination.Unsupported value) {
if (unsupported5Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
unsupported5Builder_.setMessage(value);
}
requestCase_ = 5;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_5 = 5;
*/
public Builder setUnsupported5(
com.yandex.ydb.coordination.Unsupported.Builder builderForValue) {
if (unsupported5Builder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
unsupported5Builder_.setMessage(builderForValue.build());
}
requestCase_ = 5;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_5 = 5;
*/
public Builder mergeUnsupported5(com.yandex.ydb.coordination.Unsupported value) {
if (unsupported5Builder_ == null) {
if (requestCase_ == 5 &&
request_ != com.yandex.ydb.coordination.Unsupported.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.Unsupported.newBuilder((com.yandex.ydb.coordination.Unsupported) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 5) {
unsupported5Builder_.mergeFrom(value);
}
unsupported5Builder_.setMessage(value);
}
requestCase_ = 5;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_5 = 5;
*/
public Builder clearUnsupported5() {
if (unsupported5Builder_ == null) {
if (requestCase_ == 5) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 5) {
requestCase_ = 0;
request_ = null;
}
unsupported5Builder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_5 = 5;
*/
public com.yandex.ydb.coordination.Unsupported.Builder getUnsupported5Builder() {
return getUnsupported5FieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.Unsupported unsupported_5 = 5;
*/
@java.lang.Override
public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported5OrBuilder() {
if ((requestCase_ == 5) && (unsupported5Builder_ != null)) {
return unsupported5Builder_.getMessageOrBuilder();
} else {
if (requestCase_ == 5) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.Unsupported unsupported_5 = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>
getUnsupported5FieldBuilder() {
if (unsupported5Builder_ == null) {
if (!(requestCase_ == 5)) {
request_ = com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
unsupported5Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>(
(com.yandex.ydb.coordination.Unsupported) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 5;
onChanged();;
return unsupported5Builder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> unsupported6Builder_;
/**
* .Ydb.Coordination.Unsupported unsupported_6 = 6;
* @return Whether the unsupported6 field is set.
*/
@java.lang.Override
public boolean hasUnsupported6() {
return requestCase_ == 6;
}
/**
* .Ydb.Coordination.Unsupported unsupported_6 = 6;
* @return The unsupported6.
*/
@java.lang.Override
public com.yandex.ydb.coordination.Unsupported getUnsupported6() {
if (unsupported6Builder_ == null) {
if (requestCase_ == 6) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
} else {
if (requestCase_ == 6) {
return unsupported6Builder_.getMessage();
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.Unsupported unsupported_6 = 6;
*/
public Builder setUnsupported6(com.yandex.ydb.coordination.Unsupported value) {
if (unsupported6Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
unsupported6Builder_.setMessage(value);
}
requestCase_ = 6;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_6 = 6;
*/
public Builder setUnsupported6(
com.yandex.ydb.coordination.Unsupported.Builder builderForValue) {
if (unsupported6Builder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
unsupported6Builder_.setMessage(builderForValue.build());
}
requestCase_ = 6;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_6 = 6;
*/
public Builder mergeUnsupported6(com.yandex.ydb.coordination.Unsupported value) {
if (unsupported6Builder_ == null) {
if (requestCase_ == 6 &&
request_ != com.yandex.ydb.coordination.Unsupported.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.Unsupported.newBuilder((com.yandex.ydb.coordination.Unsupported) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 6) {
unsupported6Builder_.mergeFrom(value);
}
unsupported6Builder_.setMessage(value);
}
requestCase_ = 6;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_6 = 6;
*/
public Builder clearUnsupported6() {
if (unsupported6Builder_ == null) {
if (requestCase_ == 6) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 6) {
requestCase_ = 0;
request_ = null;
}
unsupported6Builder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_6 = 6;
*/
public com.yandex.ydb.coordination.Unsupported.Builder getUnsupported6Builder() {
return getUnsupported6FieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.Unsupported unsupported_6 = 6;
*/
@java.lang.Override
public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported6OrBuilder() {
if ((requestCase_ == 6) && (unsupported6Builder_ != null)) {
return unsupported6Builder_.getMessageOrBuilder();
} else {
if (requestCase_ == 6) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.Unsupported unsupported_6 = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>
getUnsupported6FieldBuilder() {
if (unsupported6Builder_ == null) {
if (!(requestCase_ == 6)) {
request_ = com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
unsupported6Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>(
(com.yandex.ydb.coordination.Unsupported) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 6;
onChanged();;
return unsupported6Builder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore, com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.AcquireSemaphoreOrBuilder> acquireSemaphoreBuilder_;
/**
* .Ydb.Coordination.SessionRequest.AcquireSemaphore acquire_semaphore = 7;
* @return Whether the acquireSemaphore field is set.
*/
@java.lang.Override
public boolean hasAcquireSemaphore() {
return requestCase_ == 7;
}
/**
* .Ydb.Coordination.SessionRequest.AcquireSemaphore acquire_semaphore = 7;
* @return The acquireSemaphore.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore getAcquireSemaphore() {
if (acquireSemaphoreBuilder_ == null) {
if (requestCase_ == 7) {
return (com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.getDefaultInstance();
} else {
if (requestCase_ == 7) {
return acquireSemaphoreBuilder_.getMessage();
}
return com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.AcquireSemaphore acquire_semaphore = 7;
*/
public Builder setAcquireSemaphore(com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore value) {
if (acquireSemaphoreBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
acquireSemaphoreBuilder_.setMessage(value);
}
requestCase_ = 7;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.AcquireSemaphore acquire_semaphore = 7;
*/
public Builder setAcquireSemaphore(
com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.Builder builderForValue) {
if (acquireSemaphoreBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
acquireSemaphoreBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 7;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.AcquireSemaphore acquire_semaphore = 7;
*/
public Builder mergeAcquireSemaphore(com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore value) {
if (acquireSemaphoreBuilder_ == null) {
if (requestCase_ == 7 &&
request_ != com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.newBuilder((com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 7) {
acquireSemaphoreBuilder_.mergeFrom(value);
}
acquireSemaphoreBuilder_.setMessage(value);
}
requestCase_ = 7;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.AcquireSemaphore acquire_semaphore = 7;
*/
public Builder clearAcquireSemaphore() {
if (acquireSemaphoreBuilder_ == null) {
if (requestCase_ == 7) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 7) {
requestCase_ = 0;
request_ = null;
}
acquireSemaphoreBuilder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.SessionRequest.AcquireSemaphore acquire_semaphore = 7;
*/
public com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.Builder getAcquireSemaphoreBuilder() {
return getAcquireSemaphoreFieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.SessionRequest.AcquireSemaphore acquire_semaphore = 7;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.AcquireSemaphoreOrBuilder getAcquireSemaphoreOrBuilder() {
if ((requestCase_ == 7) && (acquireSemaphoreBuilder_ != null)) {
return acquireSemaphoreBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 7) {
return (com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.AcquireSemaphore acquire_semaphore = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore, com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.AcquireSemaphoreOrBuilder>
getAcquireSemaphoreFieldBuilder() {
if (acquireSemaphoreBuilder_ == null) {
if (!(requestCase_ == 7)) {
request_ = com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.getDefaultInstance();
}
acquireSemaphoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore, com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.AcquireSemaphoreOrBuilder>(
(com.yandex.ydb.coordination.SessionRequest.AcquireSemaphore) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 7;
onChanged();;
return acquireSemaphoreBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore, com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphoreOrBuilder> releaseSemaphoreBuilder_;
/**
* .Ydb.Coordination.SessionRequest.ReleaseSemaphore release_semaphore = 8;
* @return Whether the releaseSemaphore field is set.
*/
@java.lang.Override
public boolean hasReleaseSemaphore() {
return requestCase_ == 8;
}
/**
* .Ydb.Coordination.SessionRequest.ReleaseSemaphore release_semaphore = 8;
* @return The releaseSemaphore.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore getReleaseSemaphore() {
if (releaseSemaphoreBuilder_ == null) {
if (requestCase_ == 8) {
return (com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.getDefaultInstance();
} else {
if (requestCase_ == 8) {
return releaseSemaphoreBuilder_.getMessage();
}
return com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.ReleaseSemaphore release_semaphore = 8;
*/
public Builder setReleaseSemaphore(com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore value) {
if (releaseSemaphoreBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
releaseSemaphoreBuilder_.setMessage(value);
}
requestCase_ = 8;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.ReleaseSemaphore release_semaphore = 8;
*/
public Builder setReleaseSemaphore(
com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.Builder builderForValue) {
if (releaseSemaphoreBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
releaseSemaphoreBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 8;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.ReleaseSemaphore release_semaphore = 8;
*/
public Builder mergeReleaseSemaphore(com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore value) {
if (releaseSemaphoreBuilder_ == null) {
if (requestCase_ == 8 &&
request_ != com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.newBuilder((com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 8) {
releaseSemaphoreBuilder_.mergeFrom(value);
}
releaseSemaphoreBuilder_.setMessage(value);
}
requestCase_ = 8;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.ReleaseSemaphore release_semaphore = 8;
*/
public Builder clearReleaseSemaphore() {
if (releaseSemaphoreBuilder_ == null) {
if (requestCase_ == 8) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 8) {
requestCase_ = 0;
request_ = null;
}
releaseSemaphoreBuilder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.SessionRequest.ReleaseSemaphore release_semaphore = 8;
*/
public com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.Builder getReleaseSemaphoreBuilder() {
return getReleaseSemaphoreFieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.SessionRequest.ReleaseSemaphore release_semaphore = 8;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphoreOrBuilder getReleaseSemaphoreOrBuilder() {
if ((requestCase_ == 8) && (releaseSemaphoreBuilder_ != null)) {
return releaseSemaphoreBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 8) {
return (com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.ReleaseSemaphore release_semaphore = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore, com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphoreOrBuilder>
getReleaseSemaphoreFieldBuilder() {
if (releaseSemaphoreBuilder_ == null) {
if (!(requestCase_ == 8)) {
request_ = com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.getDefaultInstance();
}
releaseSemaphoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore, com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphoreOrBuilder>(
(com.yandex.ydb.coordination.SessionRequest.ReleaseSemaphore) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 8;
onChanged();;
return releaseSemaphoreBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore, com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.DescribeSemaphoreOrBuilder> describeSemaphoreBuilder_;
/**
* .Ydb.Coordination.SessionRequest.DescribeSemaphore describe_semaphore = 9;
* @return Whether the describeSemaphore field is set.
*/
@java.lang.Override
public boolean hasDescribeSemaphore() {
return requestCase_ == 9;
}
/**
* .Ydb.Coordination.SessionRequest.DescribeSemaphore describe_semaphore = 9;
* @return The describeSemaphore.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore getDescribeSemaphore() {
if (describeSemaphoreBuilder_ == null) {
if (requestCase_ == 9) {
return (com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.getDefaultInstance();
} else {
if (requestCase_ == 9) {
return describeSemaphoreBuilder_.getMessage();
}
return com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.DescribeSemaphore describe_semaphore = 9;
*/
public Builder setDescribeSemaphore(com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore value) {
if (describeSemaphoreBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
describeSemaphoreBuilder_.setMessage(value);
}
requestCase_ = 9;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.DescribeSemaphore describe_semaphore = 9;
*/
public Builder setDescribeSemaphore(
com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.Builder builderForValue) {
if (describeSemaphoreBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
describeSemaphoreBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 9;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.DescribeSemaphore describe_semaphore = 9;
*/
public Builder mergeDescribeSemaphore(com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore value) {
if (describeSemaphoreBuilder_ == null) {
if (requestCase_ == 9 &&
request_ != com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.newBuilder((com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 9) {
describeSemaphoreBuilder_.mergeFrom(value);
}
describeSemaphoreBuilder_.setMessage(value);
}
requestCase_ = 9;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.DescribeSemaphore describe_semaphore = 9;
*/
public Builder clearDescribeSemaphore() {
if (describeSemaphoreBuilder_ == null) {
if (requestCase_ == 9) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 9) {
requestCase_ = 0;
request_ = null;
}
describeSemaphoreBuilder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.SessionRequest.DescribeSemaphore describe_semaphore = 9;
*/
public com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.Builder getDescribeSemaphoreBuilder() {
return getDescribeSemaphoreFieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.SessionRequest.DescribeSemaphore describe_semaphore = 9;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DescribeSemaphoreOrBuilder getDescribeSemaphoreOrBuilder() {
if ((requestCase_ == 9) && (describeSemaphoreBuilder_ != null)) {
return describeSemaphoreBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 9) {
return (com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.DescribeSemaphore describe_semaphore = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore, com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.DescribeSemaphoreOrBuilder>
getDescribeSemaphoreFieldBuilder() {
if (describeSemaphoreBuilder_ == null) {
if (!(requestCase_ == 9)) {
request_ = com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.getDefaultInstance();
}
describeSemaphoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore, com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.DescribeSemaphoreOrBuilder>(
(com.yandex.ydb.coordination.SessionRequest.DescribeSemaphore) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 9;
onChanged();;
return describeSemaphoreBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.CreateSemaphore, com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.CreateSemaphoreOrBuilder> createSemaphoreBuilder_;
/**
* .Ydb.Coordination.SessionRequest.CreateSemaphore create_semaphore = 10;
* @return Whether the createSemaphore field is set.
*/
@java.lang.Override
public boolean hasCreateSemaphore() {
return requestCase_ == 10;
}
/**
* .Ydb.Coordination.SessionRequest.CreateSemaphore create_semaphore = 10;
* @return The createSemaphore.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.CreateSemaphore getCreateSemaphore() {
if (createSemaphoreBuilder_ == null) {
if (requestCase_ == 10) {
return (com.yandex.ydb.coordination.SessionRequest.CreateSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.getDefaultInstance();
} else {
if (requestCase_ == 10) {
return createSemaphoreBuilder_.getMessage();
}
return com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.CreateSemaphore create_semaphore = 10;
*/
public Builder setCreateSemaphore(com.yandex.ydb.coordination.SessionRequest.CreateSemaphore value) {
if (createSemaphoreBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
createSemaphoreBuilder_.setMessage(value);
}
requestCase_ = 10;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.CreateSemaphore create_semaphore = 10;
*/
public Builder setCreateSemaphore(
com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.Builder builderForValue) {
if (createSemaphoreBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
createSemaphoreBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 10;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.CreateSemaphore create_semaphore = 10;
*/
public Builder mergeCreateSemaphore(com.yandex.ydb.coordination.SessionRequest.CreateSemaphore value) {
if (createSemaphoreBuilder_ == null) {
if (requestCase_ == 10 &&
request_ != com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.newBuilder((com.yandex.ydb.coordination.SessionRequest.CreateSemaphore) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 10) {
createSemaphoreBuilder_.mergeFrom(value);
}
createSemaphoreBuilder_.setMessage(value);
}
requestCase_ = 10;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.CreateSemaphore create_semaphore = 10;
*/
public Builder clearCreateSemaphore() {
if (createSemaphoreBuilder_ == null) {
if (requestCase_ == 10) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 10) {
requestCase_ = 0;
request_ = null;
}
createSemaphoreBuilder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.SessionRequest.CreateSemaphore create_semaphore = 10;
*/
public com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.Builder getCreateSemaphoreBuilder() {
return getCreateSemaphoreFieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.SessionRequest.CreateSemaphore create_semaphore = 10;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.CreateSemaphoreOrBuilder getCreateSemaphoreOrBuilder() {
if ((requestCase_ == 10) && (createSemaphoreBuilder_ != null)) {
return createSemaphoreBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 10) {
return (com.yandex.ydb.coordination.SessionRequest.CreateSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.CreateSemaphore create_semaphore = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.CreateSemaphore, com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.CreateSemaphoreOrBuilder>
getCreateSemaphoreFieldBuilder() {
if (createSemaphoreBuilder_ == null) {
if (!(requestCase_ == 10)) {
request_ = com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.getDefaultInstance();
}
createSemaphoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.CreateSemaphore, com.yandex.ydb.coordination.SessionRequest.CreateSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.CreateSemaphoreOrBuilder>(
(com.yandex.ydb.coordination.SessionRequest.CreateSemaphore) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 10;
onChanged();;
return createSemaphoreBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore, com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.UpdateSemaphoreOrBuilder> updateSemaphoreBuilder_;
/**
* .Ydb.Coordination.SessionRequest.UpdateSemaphore update_semaphore = 11;
* @return Whether the updateSemaphore field is set.
*/
@java.lang.Override
public boolean hasUpdateSemaphore() {
return requestCase_ == 11;
}
/**
* .Ydb.Coordination.SessionRequest.UpdateSemaphore update_semaphore = 11;
* @return The updateSemaphore.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore getUpdateSemaphore() {
if (updateSemaphoreBuilder_ == null) {
if (requestCase_ == 11) {
return (com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.getDefaultInstance();
} else {
if (requestCase_ == 11) {
return updateSemaphoreBuilder_.getMessage();
}
return com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.UpdateSemaphore update_semaphore = 11;
*/
public Builder setUpdateSemaphore(com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore value) {
if (updateSemaphoreBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
updateSemaphoreBuilder_.setMessage(value);
}
requestCase_ = 11;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.UpdateSemaphore update_semaphore = 11;
*/
public Builder setUpdateSemaphore(
com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.Builder builderForValue) {
if (updateSemaphoreBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
updateSemaphoreBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 11;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.UpdateSemaphore update_semaphore = 11;
*/
public Builder mergeUpdateSemaphore(com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore value) {
if (updateSemaphoreBuilder_ == null) {
if (requestCase_ == 11 &&
request_ != com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.newBuilder((com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 11) {
updateSemaphoreBuilder_.mergeFrom(value);
}
updateSemaphoreBuilder_.setMessage(value);
}
requestCase_ = 11;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.UpdateSemaphore update_semaphore = 11;
*/
public Builder clearUpdateSemaphore() {
if (updateSemaphoreBuilder_ == null) {
if (requestCase_ == 11) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 11) {
requestCase_ = 0;
request_ = null;
}
updateSemaphoreBuilder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.SessionRequest.UpdateSemaphore update_semaphore = 11;
*/
public com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.Builder getUpdateSemaphoreBuilder() {
return getUpdateSemaphoreFieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.SessionRequest.UpdateSemaphore update_semaphore = 11;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.UpdateSemaphoreOrBuilder getUpdateSemaphoreOrBuilder() {
if ((requestCase_ == 11) && (updateSemaphoreBuilder_ != null)) {
return updateSemaphoreBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 11) {
return (com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.UpdateSemaphore update_semaphore = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore, com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.UpdateSemaphoreOrBuilder>
getUpdateSemaphoreFieldBuilder() {
if (updateSemaphoreBuilder_ == null) {
if (!(requestCase_ == 11)) {
request_ = com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.getDefaultInstance();
}
updateSemaphoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore, com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.UpdateSemaphoreOrBuilder>(
(com.yandex.ydb.coordination.SessionRequest.UpdateSemaphore) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 11;
onChanged();;
return updateSemaphoreBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore, com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.DeleteSemaphoreOrBuilder> deleteSemaphoreBuilder_;
/**
* .Ydb.Coordination.SessionRequest.DeleteSemaphore delete_semaphore = 12;
* @return Whether the deleteSemaphore field is set.
*/
@java.lang.Override
public boolean hasDeleteSemaphore() {
return requestCase_ == 12;
}
/**
* .Ydb.Coordination.SessionRequest.DeleteSemaphore delete_semaphore = 12;
* @return The deleteSemaphore.
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore getDeleteSemaphore() {
if (deleteSemaphoreBuilder_ == null) {
if (requestCase_ == 12) {
return (com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.getDefaultInstance();
} else {
if (requestCase_ == 12) {
return deleteSemaphoreBuilder_.getMessage();
}
return com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.DeleteSemaphore delete_semaphore = 12;
*/
public Builder setDeleteSemaphore(com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore value) {
if (deleteSemaphoreBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
deleteSemaphoreBuilder_.setMessage(value);
}
requestCase_ = 12;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.DeleteSemaphore delete_semaphore = 12;
*/
public Builder setDeleteSemaphore(
com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.Builder builderForValue) {
if (deleteSemaphoreBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
deleteSemaphoreBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 12;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.DeleteSemaphore delete_semaphore = 12;
*/
public Builder mergeDeleteSemaphore(com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore value) {
if (deleteSemaphoreBuilder_ == null) {
if (requestCase_ == 12 &&
request_ != com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.newBuilder((com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 12) {
deleteSemaphoreBuilder_.mergeFrom(value);
}
deleteSemaphoreBuilder_.setMessage(value);
}
requestCase_ = 12;
return this;
}
/**
* .Ydb.Coordination.SessionRequest.DeleteSemaphore delete_semaphore = 12;
*/
public Builder clearDeleteSemaphore() {
if (deleteSemaphoreBuilder_ == null) {
if (requestCase_ == 12) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 12) {
requestCase_ = 0;
request_ = null;
}
deleteSemaphoreBuilder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.SessionRequest.DeleteSemaphore delete_semaphore = 12;
*/
public com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.Builder getDeleteSemaphoreBuilder() {
return getDeleteSemaphoreFieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.SessionRequest.DeleteSemaphore delete_semaphore = 12;
*/
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest.DeleteSemaphoreOrBuilder getDeleteSemaphoreOrBuilder() {
if ((requestCase_ == 12) && (deleteSemaphoreBuilder_ != null)) {
return deleteSemaphoreBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 12) {
return (com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore) request_;
}
return com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.SessionRequest.DeleteSemaphore delete_semaphore = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore, com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.DeleteSemaphoreOrBuilder>
getDeleteSemaphoreFieldBuilder() {
if (deleteSemaphoreBuilder_ == null) {
if (!(requestCase_ == 12)) {
request_ = com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.getDefaultInstance();
}
deleteSemaphoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore, com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore.Builder, com.yandex.ydb.coordination.SessionRequest.DeleteSemaphoreOrBuilder>(
(com.yandex.ydb.coordination.SessionRequest.DeleteSemaphore) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 12;
onChanged();;
return deleteSemaphoreBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> unsupported13Builder_;
/**
* .Ydb.Coordination.Unsupported unsupported_13 = 13;
* @return Whether the unsupported13 field is set.
*/
@java.lang.Override
public boolean hasUnsupported13() {
return requestCase_ == 13;
}
/**
* .Ydb.Coordination.Unsupported unsupported_13 = 13;
* @return The unsupported13.
*/
@java.lang.Override
public com.yandex.ydb.coordination.Unsupported getUnsupported13() {
if (unsupported13Builder_ == null) {
if (requestCase_ == 13) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
} else {
if (requestCase_ == 13) {
return unsupported13Builder_.getMessage();
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.Unsupported unsupported_13 = 13;
*/
public Builder setUnsupported13(com.yandex.ydb.coordination.Unsupported value) {
if (unsupported13Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
unsupported13Builder_.setMessage(value);
}
requestCase_ = 13;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_13 = 13;
*/
public Builder setUnsupported13(
com.yandex.ydb.coordination.Unsupported.Builder builderForValue) {
if (unsupported13Builder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
unsupported13Builder_.setMessage(builderForValue.build());
}
requestCase_ = 13;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_13 = 13;
*/
public Builder mergeUnsupported13(com.yandex.ydb.coordination.Unsupported value) {
if (unsupported13Builder_ == null) {
if (requestCase_ == 13 &&
request_ != com.yandex.ydb.coordination.Unsupported.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.Unsupported.newBuilder((com.yandex.ydb.coordination.Unsupported) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 13) {
unsupported13Builder_.mergeFrom(value);
}
unsupported13Builder_.setMessage(value);
}
requestCase_ = 13;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_13 = 13;
*/
public Builder clearUnsupported13() {
if (unsupported13Builder_ == null) {
if (requestCase_ == 13) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 13) {
requestCase_ = 0;
request_ = null;
}
unsupported13Builder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_13 = 13;
*/
public com.yandex.ydb.coordination.Unsupported.Builder getUnsupported13Builder() {
return getUnsupported13FieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.Unsupported unsupported_13 = 13;
*/
@java.lang.Override
public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported13OrBuilder() {
if ((requestCase_ == 13) && (unsupported13Builder_ != null)) {
return unsupported13Builder_.getMessageOrBuilder();
} else {
if (requestCase_ == 13) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.Unsupported unsupported_13 = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>
getUnsupported13FieldBuilder() {
if (unsupported13Builder_ == null) {
if (!(requestCase_ == 13)) {
request_ = com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
unsupported13Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>(
(com.yandex.ydb.coordination.Unsupported) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 13;
onChanged();;
return unsupported13Builder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> unsupported14Builder_;
/**
* .Ydb.Coordination.Unsupported unsupported_14 = 14;
* @return Whether the unsupported14 field is set.
*/
@java.lang.Override
public boolean hasUnsupported14() {
return requestCase_ == 14;
}
/**
* .Ydb.Coordination.Unsupported unsupported_14 = 14;
* @return The unsupported14.
*/
@java.lang.Override
public com.yandex.ydb.coordination.Unsupported getUnsupported14() {
if (unsupported14Builder_ == null) {
if (requestCase_ == 14) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
} else {
if (requestCase_ == 14) {
return unsupported14Builder_.getMessage();
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.Unsupported unsupported_14 = 14;
*/
public Builder setUnsupported14(com.yandex.ydb.coordination.Unsupported value) {
if (unsupported14Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
unsupported14Builder_.setMessage(value);
}
requestCase_ = 14;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_14 = 14;
*/
public Builder setUnsupported14(
com.yandex.ydb.coordination.Unsupported.Builder builderForValue) {
if (unsupported14Builder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
unsupported14Builder_.setMessage(builderForValue.build());
}
requestCase_ = 14;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_14 = 14;
*/
public Builder mergeUnsupported14(com.yandex.ydb.coordination.Unsupported value) {
if (unsupported14Builder_ == null) {
if (requestCase_ == 14 &&
request_ != com.yandex.ydb.coordination.Unsupported.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.Unsupported.newBuilder((com.yandex.ydb.coordination.Unsupported) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 14) {
unsupported14Builder_.mergeFrom(value);
}
unsupported14Builder_.setMessage(value);
}
requestCase_ = 14;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_14 = 14;
*/
public Builder clearUnsupported14() {
if (unsupported14Builder_ == null) {
if (requestCase_ == 14) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 14) {
requestCase_ = 0;
request_ = null;
}
unsupported14Builder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_14 = 14;
*/
public com.yandex.ydb.coordination.Unsupported.Builder getUnsupported14Builder() {
return getUnsupported14FieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.Unsupported unsupported_14 = 14;
*/
@java.lang.Override
public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported14OrBuilder() {
if ((requestCase_ == 14) && (unsupported14Builder_ != null)) {
return unsupported14Builder_.getMessageOrBuilder();
} else {
if (requestCase_ == 14) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.Unsupported unsupported_14 = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>
getUnsupported14FieldBuilder() {
if (unsupported14Builder_ == null) {
if (!(requestCase_ == 14)) {
request_ = com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
unsupported14Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>(
(com.yandex.ydb.coordination.Unsupported) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 14;
onChanged();;
return unsupported14Builder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> unsupported15Builder_;
/**
* .Ydb.Coordination.Unsupported unsupported_15 = 15;
* @return Whether the unsupported15 field is set.
*/
@java.lang.Override
public boolean hasUnsupported15() {
return requestCase_ == 15;
}
/**
* .Ydb.Coordination.Unsupported unsupported_15 = 15;
* @return The unsupported15.
*/
@java.lang.Override
public com.yandex.ydb.coordination.Unsupported getUnsupported15() {
if (unsupported15Builder_ == null) {
if (requestCase_ == 15) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
} else {
if (requestCase_ == 15) {
return unsupported15Builder_.getMessage();
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.Unsupported unsupported_15 = 15;
*/
public Builder setUnsupported15(com.yandex.ydb.coordination.Unsupported value) {
if (unsupported15Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
unsupported15Builder_.setMessage(value);
}
requestCase_ = 15;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_15 = 15;
*/
public Builder setUnsupported15(
com.yandex.ydb.coordination.Unsupported.Builder builderForValue) {
if (unsupported15Builder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
unsupported15Builder_.setMessage(builderForValue.build());
}
requestCase_ = 15;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_15 = 15;
*/
public Builder mergeUnsupported15(com.yandex.ydb.coordination.Unsupported value) {
if (unsupported15Builder_ == null) {
if (requestCase_ == 15 &&
request_ != com.yandex.ydb.coordination.Unsupported.getDefaultInstance()) {
request_ = com.yandex.ydb.coordination.Unsupported.newBuilder((com.yandex.ydb.coordination.Unsupported) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 15) {
unsupported15Builder_.mergeFrom(value);
}
unsupported15Builder_.setMessage(value);
}
requestCase_ = 15;
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_15 = 15;
*/
public Builder clearUnsupported15() {
if (unsupported15Builder_ == null) {
if (requestCase_ == 15) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 15) {
requestCase_ = 0;
request_ = null;
}
unsupported15Builder_.clear();
}
return this;
}
/**
* .Ydb.Coordination.Unsupported unsupported_15 = 15;
*/
public com.yandex.ydb.coordination.Unsupported.Builder getUnsupported15Builder() {
return getUnsupported15FieldBuilder().getBuilder();
}
/**
* .Ydb.Coordination.Unsupported unsupported_15 = 15;
*/
@java.lang.Override
public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported15OrBuilder() {
if ((requestCase_ == 15) && (unsupported15Builder_ != null)) {
return unsupported15Builder_.getMessageOrBuilder();
} else {
if (requestCase_ == 15) {
return (com.yandex.ydb.coordination.Unsupported) request_;
}
return com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
}
/**
* .Ydb.Coordination.Unsupported unsupported_15 = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>
getUnsupported15FieldBuilder() {
if (unsupported15Builder_ == null) {
if (!(requestCase_ == 15)) {
request_ = com.yandex.ydb.coordination.Unsupported.getDefaultInstance();
}
unsupported15Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>(
(com.yandex.ydb.coordination.Unsupported) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 15;
onChanged();;
return unsupported15Builder_;
}
@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.Coordination.SessionRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionRequest)
private static final com.yandex.ydb.coordination.SessionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionRequest();
}
public static com.yandex.ydb.coordination.SessionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SessionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SessionRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.coordination.SessionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}