Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// 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
*
* 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)
*
*
* 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
*
* 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)
*
* 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
*
**
* 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
*
**
* 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
*
*
* 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;
}
/**
*
* 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
*
* 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 (!getNameBytes().isEmpty()) {
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 (!getNameBytes().isEmpty()) {
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
*
*
* 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();
/**
*
*
* 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_ ;
/**
*
*
* 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
*
* 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 (!getNameBytes().isEmpty()) {
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 (!getNameBytes().isEmpty()) {
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
*
*
* 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
*
*
* 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
*