All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yandex.ydb.coordination.SessionResponse Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ydb/public/api/protos/ydb_coordination.proto

package com.yandex.ydb.coordination;

/**
 * 
 **
 * Session response message sent from server to client
 * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse} */ public final class SessionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionResponse) SessionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use SessionResponse.newBuilder() to construct. private SessionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SessionResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SessionResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SessionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.yandex.ydb.coordination.SessionResponse.PingPong.Builder subBuilder = null; if (responseCase_ == 1) { subBuilder = ((com.yandex.ydb.coordination.SessionResponse.PingPong) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.SessionResponse.PingPong.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionResponse.PingPong) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 1; break; } case 18: { com.yandex.ydb.coordination.SessionResponse.PingPong.Builder subBuilder = null; if (responseCase_ == 2) { subBuilder = ((com.yandex.ydb.coordination.SessionResponse.PingPong) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.SessionResponse.PingPong.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionResponse.PingPong) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 2; break; } case 26: { com.yandex.ydb.coordination.SessionResponse.Failure.Builder subBuilder = null; if (responseCase_ == 3) { subBuilder = ((com.yandex.ydb.coordination.SessionResponse.Failure) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.SessionResponse.Failure.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionResponse.Failure) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 3; break; } case 34: { com.yandex.ydb.coordination.SessionResponse.SessionStarted.Builder subBuilder = null; if (responseCase_ == 4) { subBuilder = ((com.yandex.ydb.coordination.SessionResponse.SessionStarted) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.SessionResponse.SessionStarted.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionResponse.SessionStarted) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 4; break; } case 42: { com.yandex.ydb.coordination.SessionResponse.SessionStopped.Builder subBuilder = null; if (responseCase_ == 5) { subBuilder = ((com.yandex.ydb.coordination.SessionResponse.SessionStopped) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.SessionResponse.SessionStopped.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionResponse.SessionStopped) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 5; break; } case 50: { com.yandex.ydb.coordination.Unsupported.Builder subBuilder = null; if (responseCase_ == 6) { subBuilder = ((com.yandex.ydb.coordination.Unsupported) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.Unsupported.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.Unsupported) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 6; break; } case 58: { com.yandex.ydb.coordination.Unsupported.Builder subBuilder = null; if (responseCase_ == 7) { subBuilder = ((com.yandex.ydb.coordination.Unsupported) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.Unsupported.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.Unsupported) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 7; break; } case 66: { com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.Builder subBuilder = null; if (responseCase_ == 8) { subBuilder = ((com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 8; break; } case 74: { com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.Builder subBuilder = null; if (responseCase_ == 9) { subBuilder = ((com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 9; break; } case 82: { com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.Builder subBuilder = null; if (responseCase_ == 10) { subBuilder = ((com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 10; break; } case 90: { com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.Builder subBuilder = null; if (responseCase_ == 11) { subBuilder = ((com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 11; break; } case 98: { com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.Builder subBuilder = null; if (responseCase_ == 12) { subBuilder = ((com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 12; break; } case 106: { com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.Builder subBuilder = null; if (responseCase_ == 13) { subBuilder = ((com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 13; break; } case 114: { com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.Builder subBuilder = null; if (responseCase_ == 14) { subBuilder = ((com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 14; break; } case 122: { com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.Builder subBuilder = null; if (responseCase_ == 15) { subBuilder = ((com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 15; break; } case 130: { com.yandex.ydb.coordination.Unsupported.Builder subBuilder = null; if (responseCase_ == 16) { subBuilder = ((com.yandex.ydb.coordination.Unsupported) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.Unsupported.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.Unsupported) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 16; break; } case 138: { com.yandex.ydb.coordination.Unsupported.Builder subBuilder = null; if (responseCase_ == 17) { subBuilder = ((com.yandex.ydb.coordination.Unsupported) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.Unsupported.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.Unsupported) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 17; break; } case 146: { com.yandex.ydb.coordination.Unsupported.Builder subBuilder = null; if (responseCase_ == 18) { subBuilder = ((com.yandex.ydb.coordination.Unsupported) response_).toBuilder(); } response_ = input.readMessage(com.yandex.ydb.coordination.Unsupported.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.yandex.ydb.coordination.Unsupported) response_); response_ = subBuilder.buildPartial(); } responseCase_ = 18; 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_SessionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.class, com.yandex.ydb.coordination.SessionResponse.Builder.class); } public interface PingPongOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionResponse.PingPong) com.google.protobuf.MessageOrBuilder { /** *
     * Opaque number specified in the ping message is echoed in the pong message
     * 
* * uint64 opaque = 1; * @return The opaque. */ long getOpaque(); } /** *
   **
   * Used for checking liveness of the connection
   * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.PingPong} */ public static final class PingPong extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionResponse.PingPong) PingPongOrBuilder { private static final long serialVersionUID = 0L; // Use PingPong.newBuilder() to construct. private PingPong(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PingPong() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PingPong(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PingPong( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { opaque_ = input.readUInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_PingPong_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_PingPong_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.PingPong.class, com.yandex.ydb.coordination.SessionResponse.PingPong.Builder.class); } public static final int OPAQUE_FIELD_NUMBER = 1; private long opaque_; /** *
     * Opaque number specified in the ping message is echoed in the pong message
     * 
* * uint64 opaque = 1; * @return The opaque. */ @java.lang.Override public long getOpaque() { return opaque_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (opaque_ != 0L) { output.writeUInt64(1, opaque_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (opaque_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, opaque_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.coordination.SessionResponse.PingPong)) { return super.equals(obj); } com.yandex.ydb.coordination.SessionResponse.PingPong other = (com.yandex.ydb.coordination.SessionResponse.PingPong) obj; if (getOpaque() != other.getOpaque()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OPAQUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOpaque()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.coordination.SessionResponse.PingPong parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.PingPong parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.PingPong parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.PingPong parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.PingPong parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.PingPong parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.PingPong parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.PingPong parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.PingPong parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.PingPong parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.PingPong parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.PingPong parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.yandex.ydb.coordination.SessionResponse.PingPong prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     **
     * Used for checking liveness of the connection
     * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.PingPong} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionResponse.PingPong) com.yandex.ydb.coordination.SessionResponse.PingPongOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_PingPong_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_PingPong_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.PingPong.class, com.yandex.ydb.coordination.SessionResponse.PingPong.Builder.class); } // Construct using com.yandex.ydb.coordination.SessionResponse.PingPong.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); opaque_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_PingPong_descriptor; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.PingPong getDefaultInstanceForType() { return com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.PingPong build() { com.yandex.ydb.coordination.SessionResponse.PingPong result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.PingPong buildPartial() { com.yandex.ydb.coordination.SessionResponse.PingPong result = new com.yandex.ydb.coordination.SessionResponse.PingPong(this); result.opaque_ = opaque_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.yandex.ydb.coordination.SessionResponse.PingPong) { return mergeFrom((com.yandex.ydb.coordination.SessionResponse.PingPong)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.coordination.SessionResponse.PingPong other) { if (other == com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance()) return this; if (other.getOpaque() != 0L) { setOpaque(other.getOpaque()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.yandex.ydb.coordination.SessionResponse.PingPong parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.coordination.SessionResponse.PingPong) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long opaque_ ; /** *
       * Opaque number specified in the ping message is echoed in the pong message
       * 
* * uint64 opaque = 1; * @return The opaque. */ @java.lang.Override public long getOpaque() { return opaque_; } /** *
       * Opaque number specified in the ping message is echoed in the pong message
       * 
* * uint64 opaque = 1; * @param value The opaque to set. * @return This builder for chaining. */ public Builder setOpaque(long value) { opaque_ = value; onChanged(); return this; } /** *
       * Opaque number specified in the ping message is echoed in the pong message
       * 
* * uint64 opaque = 1; * @return This builder for chaining. */ public Builder clearOpaque() { opaque_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Ydb.Coordination.SessionResponse.PingPong) } // @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionResponse.PingPong) private static final com.yandex.ydb.coordination.SessionResponse.PingPong DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionResponse.PingPong(); } public static com.yandex.ydb.coordination.SessionResponse.PingPong getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PingPong parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PingPong(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.PingPong getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FailureOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionResponse.Failure) com.google.protobuf.MessageOrBuilder { /** * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ int getIssuesCount(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ java.util.List getIssuesOrBuilderList(); /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); } /** *
   **
   * Used to report connection and session level failures
   * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.Failure} */ public static final class Failure extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionResponse.Failure) FailureOrBuilder { private static final long serialVersionUID = 0L; // Use Failure.newBuilder() to construct. private Failure(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Failure() { status_ = 0; issues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Failure(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Failure( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } issues_.add( input.readMessage(com.yandex.ydb.YdbIssueMessage.IssueMessage.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_Failure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_Failure_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.Failure.class, com.yandex.ydb.coordination.SessionResponse.Failure.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private int status_; /** * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 2; private java.util.List issues_; /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(2, issues_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, issues_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.coordination.SessionResponse.Failure)) { return super.equals(obj); } com.yandex.ydb.coordination.SessionResponse.Failure other = (com.yandex.ydb.coordination.SessionResponse.Failure) obj; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) 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) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.coordination.SessionResponse.Failure parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.Failure 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.SessionResponse.Failure parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.Failure 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.SessionResponse.Failure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.Failure parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.Failure parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.Failure 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.SessionResponse.Failure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.Failure 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.SessionResponse.Failure parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.Failure 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.SessionResponse.Failure 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 report connection and session level failures
     * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.Failure} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionResponse.Failure) com.yandex.ydb.coordination.SessionResponse.FailureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_Failure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_Failure_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.Failure.class, com.yandex.ydb.coordination.SessionResponse.Failure.Builder.class); } // Construct using com.yandex.ydb.coordination.SessionResponse.Failure.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIssuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { issuesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_Failure_descriptor; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.Failure getDefaultInstanceForType() { return com.yandex.ydb.coordination.SessionResponse.Failure.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.Failure build() { com.yandex.ydb.coordination.SessionResponse.Failure result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.Failure buildPartial() { com.yandex.ydb.coordination.SessionResponse.Failure result = new com.yandex.ydb.coordination.SessionResponse.Failure(this); int from_bitField0_ = bitField0_; result.status_ = status_; if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000001); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.yandex.ydb.coordination.SessionResponse.Failure) { return mergeFrom((com.yandex.ydb.coordination.SessionResponse.Failure)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.coordination.SessionResponse.Failure other) { if (other == com.yandex.ydb.coordination.SessionResponse.Failure.getDefaultInstance()) return this; if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } 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.SessionResponse.Failure parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.coordination.SessionResponse.Failure) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int status_ = 0; /** * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 1; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 1; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues(com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } @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.SessionResponse.Failure) } // @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionResponse.Failure) private static final com.yandex.ydb.coordination.SessionResponse.Failure DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionResponse.Failure(); } public static com.yandex.ydb.coordination.SessionResponse.Failure getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Failure parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Failure(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.SessionResponse.Failure getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SessionStartedOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionResponse.SessionStarted) com.google.protobuf.MessageOrBuilder { /** *
     * A server generation id that may be used for restoring the session
     * 
* * uint64 session_id = 1; * @return The sessionId. */ long getSessionId(); /** *
     * Timeout in milliseconds that will be used by the server
     * 
* * uint64 timeout_millis = 2; * @return The timeoutMillis. */ long getTimeoutMillis(); } /** *
   **
   * Used to report a successful session create/restore operation
   * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.SessionStarted} */ public static final class SessionStarted extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionResponse.SessionStarted) SessionStartedOrBuilder { private static final long serialVersionUID = 0L; // Use SessionStarted.newBuilder() to construct. private SessionStarted(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SessionStarted() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SessionStarted(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SessionStarted( 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: { sessionId_ = input.readUInt64(); break; } case 16: { timeoutMillis_ = input.readUInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_SessionStarted_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_SessionStarted_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.SessionStarted.class, com.yandex.ydb.coordination.SessionResponse.SessionStarted.Builder.class); } public static final int SESSION_ID_FIELD_NUMBER = 1; private long sessionId_; /** *
     * A server generation id that may be used for restoring the session
     * 
* * uint64 session_id = 1; * @return The sessionId. */ @java.lang.Override public long getSessionId() { return sessionId_; } public static final int TIMEOUT_MILLIS_FIELD_NUMBER = 2; private long timeoutMillis_; /** *
     * Timeout in milliseconds that will be used by the server
     * 
* * uint64 timeout_millis = 2; * @return The timeoutMillis. */ @java.lang.Override public long getTimeoutMillis() { return timeoutMillis_; } 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 (sessionId_ != 0L) { output.writeUInt64(1, sessionId_); } if (timeoutMillis_ != 0L) { output.writeUInt64(2, timeoutMillis_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, sessionId_); } if (timeoutMillis_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, timeoutMillis_); } 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.SessionResponse.SessionStarted)) { return super.equals(obj); } com.yandex.ydb.coordination.SessionResponse.SessionStarted other = (com.yandex.ydb.coordination.SessionResponse.SessionStarted) obj; if (getSessionId() != other.getSessionId()) return false; if (getTimeoutMillis() != other.getTimeoutMillis()) 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) + SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSessionId()); hash = (37 * hash) + TIMEOUT_MILLIS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeoutMillis()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.coordination.SessionResponse.SessionStarted parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.SessionStarted 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.SessionResponse.SessionStarted parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.SessionStarted 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.SessionResponse.SessionStarted parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.SessionStarted parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.SessionStarted parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.SessionStarted 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.SessionResponse.SessionStarted parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.SessionStarted 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.SessionResponse.SessionStarted parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.SessionStarted 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.SessionResponse.SessionStarted 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 report a successful session create/restore operation
     * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.SessionStarted} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionResponse.SessionStarted) com.yandex.ydb.coordination.SessionResponse.SessionStartedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_SessionStarted_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_SessionStarted_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.SessionStarted.class, com.yandex.ydb.coordination.SessionResponse.SessionStarted.Builder.class); } // Construct using com.yandex.ydb.coordination.SessionResponse.SessionStarted.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(); sessionId_ = 0L; timeoutMillis_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_SessionStarted_descriptor; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.SessionStarted getDefaultInstanceForType() { return com.yandex.ydb.coordination.SessionResponse.SessionStarted.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.SessionStarted build() { com.yandex.ydb.coordination.SessionResponse.SessionStarted result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.SessionStarted buildPartial() { com.yandex.ydb.coordination.SessionResponse.SessionStarted result = new com.yandex.ydb.coordination.SessionResponse.SessionStarted(this); result.sessionId_ = sessionId_; result.timeoutMillis_ = timeoutMillis_; 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.SessionResponse.SessionStarted) { return mergeFrom((com.yandex.ydb.coordination.SessionResponse.SessionStarted)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.coordination.SessionResponse.SessionStarted other) { if (other == com.yandex.ydb.coordination.SessionResponse.SessionStarted.getDefaultInstance()) return this; if (other.getSessionId() != 0L) { setSessionId(other.getSessionId()); } if (other.getTimeoutMillis() != 0L) { setTimeoutMillis(other.getTimeoutMillis()); } 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.SessionResponse.SessionStarted parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.coordination.SessionResponse.SessionStarted) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long sessionId_ ; /** *
       * A server generation id that may be used for restoring the session
       * 
* * uint64 session_id = 1; * @return The sessionId. */ @java.lang.Override public long getSessionId() { return sessionId_; } /** *
       * A server generation id that may be used for restoring the session
       * 
* * uint64 session_id = 1; * @param value The sessionId to set. * @return This builder for chaining. */ public Builder setSessionId(long value) { sessionId_ = value; onChanged(); return this; } /** *
       * A server generation id that may be used for restoring the session
       * 
* * uint64 session_id = 1; * @return This builder for chaining. */ public Builder clearSessionId() { sessionId_ = 0L; onChanged(); return this; } private long timeoutMillis_ ; /** *
       * Timeout in milliseconds that will be used by the server
       * 
* * uint64 timeout_millis = 2; * @return The timeoutMillis. */ @java.lang.Override public long getTimeoutMillis() { return timeoutMillis_; } /** *
       * Timeout in milliseconds that will be used by the server
       * 
* * uint64 timeout_millis = 2; * @param value The timeoutMillis to set. * @return This builder for chaining. */ public Builder setTimeoutMillis(long value) { timeoutMillis_ = value; onChanged(); return this; } /** *
       * Timeout in milliseconds that will be used by the server
       * 
* * uint64 timeout_millis = 2; * @return This builder for chaining. */ public Builder clearTimeoutMillis() { timeoutMillis_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Ydb.Coordination.SessionResponse.SessionStarted) } // @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionResponse.SessionStarted) private static final com.yandex.ydb.coordination.SessionResponse.SessionStarted DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionResponse.SessionStarted(); } public static com.yandex.ydb.coordination.SessionResponse.SessionStarted getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SessionStarted parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SessionStarted(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.SessionResponse.SessionStarted getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SessionStoppedOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionResponse.SessionStopped) com.google.protobuf.MessageOrBuilder { /** * uint64 session_id = 1; * @return The sessionId. */ long getSessionId(); } /** *
   **
   * Used to report a successful graceful termination of the session
   * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.SessionStopped} */ public static final class SessionStopped extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionResponse.SessionStopped) SessionStoppedOrBuilder { private static final long serialVersionUID = 0L; // Use SessionStopped.newBuilder() to construct. private SessionStopped(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SessionStopped() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SessionStopped(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SessionStopped( 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: { sessionId_ = input.readUInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_SessionStopped_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_SessionStopped_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.SessionStopped.class, com.yandex.ydb.coordination.SessionResponse.SessionStopped.Builder.class); } public static final int SESSION_ID_FIELD_NUMBER = 1; private long sessionId_; /** * uint64 session_id = 1; * @return The sessionId. */ @java.lang.Override public long getSessionId() { return sessionId_; } 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 (sessionId_ != 0L) { output.writeUInt64(1, sessionId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sessionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, sessionId_); } 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.SessionResponse.SessionStopped)) { return super.equals(obj); } com.yandex.ydb.coordination.SessionResponse.SessionStopped other = (com.yandex.ydb.coordination.SessionResponse.SessionStopped) obj; if (getSessionId() != other.getSessionId()) 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) + SESSION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSessionId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.coordination.SessionResponse.SessionStopped parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.SessionStopped 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.SessionResponse.SessionStopped parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.SessionStopped 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.SessionResponse.SessionStopped parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.SessionStopped parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.SessionStopped parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.SessionStopped 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.SessionResponse.SessionStopped parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.SessionStopped 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.SessionResponse.SessionStopped parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.SessionStopped 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.SessionResponse.SessionStopped 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 report a successful graceful termination of the session
     * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.SessionStopped} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionResponse.SessionStopped) com.yandex.ydb.coordination.SessionResponse.SessionStoppedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_SessionStopped_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_SessionStopped_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.SessionStopped.class, com.yandex.ydb.coordination.SessionResponse.SessionStopped.Builder.class); } // Construct using com.yandex.ydb.coordination.SessionResponse.SessionStopped.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(); sessionId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_SessionStopped_descriptor; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.SessionStopped getDefaultInstanceForType() { return com.yandex.ydb.coordination.SessionResponse.SessionStopped.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.SessionStopped build() { com.yandex.ydb.coordination.SessionResponse.SessionStopped result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.SessionStopped buildPartial() { com.yandex.ydb.coordination.SessionResponse.SessionStopped result = new com.yandex.ydb.coordination.SessionResponse.SessionStopped(this); result.sessionId_ = sessionId_; 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.SessionResponse.SessionStopped) { return mergeFrom((com.yandex.ydb.coordination.SessionResponse.SessionStopped)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.coordination.SessionResponse.SessionStopped other) { if (other == com.yandex.ydb.coordination.SessionResponse.SessionStopped.getDefaultInstance()) return this; if (other.getSessionId() != 0L) { setSessionId(other.getSessionId()); } 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.SessionResponse.SessionStopped parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.coordination.SessionResponse.SessionStopped) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long sessionId_ ; /** * uint64 session_id = 1; * @return The sessionId. */ @java.lang.Override public long getSessionId() { return sessionId_; } /** * uint64 session_id = 1; * @param value The sessionId to set. * @return This builder for chaining. */ public Builder setSessionId(long value) { sessionId_ = value; onChanged(); return this; } /** * uint64 session_id = 1; * @return This builder for chaining. */ public Builder clearSessionId() { sessionId_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Ydb.Coordination.SessionResponse.SessionStopped) } // @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionResponse.SessionStopped) private static final com.yandex.ydb.coordination.SessionResponse.SessionStopped DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionResponse.SessionStopped(); } public static com.yandex.ydb.coordination.SessionResponse.SessionStopped getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SessionStopped parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SessionStopped(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.SessionResponse.SessionStopped getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AcquireSemaphorePendingOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionResponse.AcquireSemaphorePending) com.google.protobuf.MessageOrBuilder { /** * uint64 req_id = 1; * @return The reqId. */ long getReqId(); } /** *
   **
   * Used by the server to report when an acquire operation is added to the waiters queue
   * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.AcquireSemaphorePending} */ public static final class AcquireSemaphorePending extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionResponse.AcquireSemaphorePending) AcquireSemaphorePendingOrBuilder { private static final long serialVersionUID = 0L; // Use AcquireSemaphorePending.newBuilder() to construct. private AcquireSemaphorePending(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AcquireSemaphorePending() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AcquireSemaphorePending(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AcquireSemaphorePending( 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; } 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_SessionResponse_AcquireSemaphorePending_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_AcquireSemaphorePending_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.class, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.Builder.class); } public static final int REQ_ID_FIELD_NUMBER = 1; private long reqId_; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } 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_); } 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_); } 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.SessionResponse.AcquireSemaphorePending)) { return super.equals(obj); } com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending other = (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending) obj; if (getReqId() != other.getReqId()) 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending 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.SessionResponse.AcquireSemaphorePending parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending 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.SessionResponse.AcquireSemaphorePending parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending 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.SessionResponse.AcquireSemaphorePending parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending 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.SessionResponse.AcquireSemaphorePending parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending 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.SessionResponse.AcquireSemaphorePending 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 by the server to report when an acquire operation is added to the waiters queue
     * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.AcquireSemaphorePending} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionResponse.AcquireSemaphorePending) com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePendingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_AcquireSemaphorePending_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_AcquireSemaphorePending_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.class, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.Builder.class); } // Construct using com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.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; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_AcquireSemaphorePending_descriptor; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending getDefaultInstanceForType() { return com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending build() { com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending buildPartial() { com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending result = new com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending(this); result.reqId_ = reqId_; 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.SessionResponse.AcquireSemaphorePending) { return mergeFrom((com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending other) { if (other == com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.getDefaultInstance()) return this; if (other.getReqId() != 0L) { setReqId(other.getReqId()); } 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.SessionResponse.AcquireSemaphorePending parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long reqId_ ; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } /** * 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; } /** * uint64 req_id = 1; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Ydb.Coordination.SessionResponse.AcquireSemaphorePending) } // @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionResponse.AcquireSemaphorePending) private static final com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending(); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AcquireSemaphorePending parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AcquireSemaphorePending(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.SessionResponse.AcquireSemaphorePending getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AcquireSemaphoreResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionResponse.AcquireSemaphoreResult) com.google.protobuf.MessageOrBuilder { /** * uint64 req_id = 1; * @return The reqId. */ long getReqId(); /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ int getIssuesCount(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ java.util.List getIssuesOrBuilderList(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); /** *
     * True if semaphore was acquired, false if acquire timed out
     * 
* * bool acquired = 4; * @return The acquired. */ boolean getAcquired(); } /** *
   **
   * Used by the server to report the result of an acquire operation
   * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.AcquireSemaphoreResult} */ public static final class AcquireSemaphoreResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionResponse.AcquireSemaphoreResult) AcquireSemaphoreResultOrBuilder { private static final long serialVersionUID = 0L; // Use AcquireSemaphoreResult.newBuilder() to construct. private AcquireSemaphoreResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AcquireSemaphoreResult() { status_ = 0; issues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AcquireSemaphoreResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AcquireSemaphoreResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { reqId_ = input.readUInt64(); break; } case 16: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } issues_.add( input.readMessage(com.yandex.ydb.YdbIssueMessage.IssueMessage.parser(), extensionRegistry)); break; } case 32: { acquired_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_AcquireSemaphoreResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_AcquireSemaphoreResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.class, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.Builder.class); } public static final int REQ_ID_FIELD_NUMBER = 1; private long reqId_; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 3; private java.util.List issues_; /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } public static final int ACQUIRED_FIELD_NUMBER = 4; private boolean acquired_; /** *
     * True if semaphore was acquired, false if acquire timed out
     * 
* * bool acquired = 4; * @return The acquired. */ @java.lang.Override public boolean getAcquired() { return acquired_; } 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 (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(3, issues_.get(i)); } if (acquired_ != false) { output.writeBool(4, acquired_); } 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 (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, issues_.get(i)); } if (acquired_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, acquired_); } 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.SessionResponse.AcquireSemaphoreResult)) { return super.equals(obj); } com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult other = (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult) obj; if (getReqId() != other.getReqId()) return false; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) return false; if (getAcquired() != other.getAcquired()) 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) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } hash = (37 * hash) + ACQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAcquired()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult 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.SessionResponse.AcquireSemaphoreResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult 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.SessionResponse.AcquireSemaphoreResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult 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.SessionResponse.AcquireSemaphoreResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult 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.SessionResponse.AcquireSemaphoreResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult 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.SessionResponse.AcquireSemaphoreResult 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 by the server to report the result of an acquire operation
     * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.AcquireSemaphoreResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionResponse.AcquireSemaphoreResult) com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_AcquireSemaphoreResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_AcquireSemaphoreResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.class, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.Builder.class); } // Construct using com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIssuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); reqId_ = 0L; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { issuesBuilder_.clear(); } acquired_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_AcquireSemaphoreResult_descriptor; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult getDefaultInstanceForType() { return com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult build() { com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult buildPartial() { com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult result = new com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult(this); int from_bitField0_ = bitField0_; result.reqId_ = reqId_; result.status_ = status_; if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000001); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } result.acquired_ = acquired_; 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.SessionResponse.AcquireSemaphoreResult) { return mergeFrom((com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult other) { if (other == com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.getDefaultInstance()) return this; if (other.getReqId() != 0L) { setReqId(other.getReqId()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } if (other.getAcquired() != false) { setAcquired(other.getAcquired()); } 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.SessionResponse.AcquireSemaphoreResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long reqId_ ; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } /** * 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; } /** * uint64 req_id = 1; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = 0L; onChanged(); return this; } private int status_ = 0; /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 2; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 2; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues(com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } private boolean acquired_ ; /** *
       * True if semaphore was acquired, false if acquire timed out
       * 
* * bool acquired = 4; * @return The acquired. */ @java.lang.Override public boolean getAcquired() { return acquired_; } /** *
       * True if semaphore was acquired, false if acquire timed out
       * 
* * bool acquired = 4; * @param value The acquired to set. * @return This builder for chaining. */ public Builder setAcquired(boolean value) { acquired_ = value; onChanged(); return this; } /** *
       * True if semaphore was acquired, false if acquire timed out
       * 
* * bool acquired = 4; * @return This builder for chaining. */ public Builder clearAcquired() { acquired_ = 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.SessionResponse.AcquireSemaphoreResult) } // @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionResponse.AcquireSemaphoreResult) private static final com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult(); } public static com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AcquireSemaphoreResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AcquireSemaphoreResult(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.SessionResponse.AcquireSemaphoreResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReleaseSemaphoreResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult) com.google.protobuf.MessageOrBuilder { /** * uint64 req_id = 1; * @return The reqId. */ long getReqId(); /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ int getIssuesCount(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ java.util.List getIssuesOrBuilderList(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); /** *
     * True if semaphore was released, false if there was no active acquire operation
     * 
* * bool released = 4; * @return The released. */ boolean getReleased(); } /** *
   **
   * Used by the server to report the result of a release operation
   * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult} */ public static final class ReleaseSemaphoreResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult) ReleaseSemaphoreResultOrBuilder { private static final long serialVersionUID = 0L; // Use ReleaseSemaphoreResult.newBuilder() to construct. private ReleaseSemaphoreResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReleaseSemaphoreResult() { status_ = 0; issues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReleaseSemaphoreResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReleaseSemaphoreResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { reqId_ = input.readUInt64(); break; } case 16: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } issues_.add( input.readMessage(com.yandex.ydb.YdbIssueMessage.IssueMessage.parser(), extensionRegistry)); break; } case 32: { released_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_ReleaseSemaphoreResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_ReleaseSemaphoreResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.class, com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.Builder.class); } public static final int REQ_ID_FIELD_NUMBER = 1; private long reqId_; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 3; private java.util.List issues_; /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } public static final int RELEASED_FIELD_NUMBER = 4; private boolean released_; /** *
     * True if semaphore was released, false if there was no active acquire operation
     * 
* * bool released = 4; * @return The released. */ @java.lang.Override public boolean getReleased() { return released_; } 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 (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(3, issues_.get(i)); } if (released_ != false) { output.writeBool(4, released_); } 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 (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, issues_.get(i)); } if (released_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, released_); } 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.SessionResponse.ReleaseSemaphoreResult)) { return super.equals(obj); } com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult other = (com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult) obj; if (getReqId() != other.getReqId()) return false; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) return false; if (getReleased() != other.getReleased()) 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) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } hash = (37 * hash) + RELEASED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReleased()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult 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.SessionResponse.ReleaseSemaphoreResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult 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.SessionResponse.ReleaseSemaphoreResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult 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.SessionResponse.ReleaseSemaphoreResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult 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.SessionResponse.ReleaseSemaphoreResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult 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.SessionResponse.ReleaseSemaphoreResult 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 by the server to report the result of a release operation
     * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult) com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_ReleaseSemaphoreResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_ReleaseSemaphoreResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.class, com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.Builder.class); } // Construct using com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIssuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); reqId_ = 0L; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { issuesBuilder_.clear(); } released_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_ReleaseSemaphoreResult_descriptor; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult getDefaultInstanceForType() { return com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult build() { com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult buildPartial() { com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult result = new com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult(this); int from_bitField0_ = bitField0_; result.reqId_ = reqId_; result.status_ = status_; if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000001); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } result.released_ = released_; 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.SessionResponse.ReleaseSemaphoreResult) { return mergeFrom((com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult other) { if (other == com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.getDefaultInstance()) return this; if (other.getReqId() != 0L) { setReqId(other.getReqId()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } if (other.getReleased() != false) { setReleased(other.getReleased()); } 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.SessionResponse.ReleaseSemaphoreResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long reqId_ ; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } /** * 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; } /** * uint64 req_id = 1; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = 0L; onChanged(); return this; } private int status_ = 0; /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 2; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 2; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues(com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } private boolean released_ ; /** *
       * True if semaphore was released, false if there was no active acquire operation
       * 
* * bool released = 4; * @return The released. */ @java.lang.Override public boolean getReleased() { return released_; } /** *
       * True if semaphore was released, false if there was no active acquire operation
       * 
* * bool released = 4; * @param value The released to set. * @return This builder for chaining. */ public Builder setReleased(boolean value) { released_ = value; onChanged(); return this; } /** *
       * True if semaphore was released, false if there was no active acquire operation
       * 
* * bool released = 4; * @return This builder for chaining. */ public Builder clearReleased() { released_ = 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.SessionResponse.ReleaseSemaphoreResult) } // @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult) private static final com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult(); } public static com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReleaseSemaphoreResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReleaseSemaphoreResult(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.SessionResponse.ReleaseSemaphoreResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DescribeSemaphoreResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionResponse.DescribeSemaphoreResult) com.google.protobuf.MessageOrBuilder { /** * uint64 req_id = 1; * @return The reqId. */ long getReqId(); /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ int getIssuesCount(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ java.util.List getIssuesOrBuilderList(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; * @return Whether the semaphoreDescription field is set. */ boolean hasSemaphoreDescription(); /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; * @return The semaphoreDescription. */ com.yandex.ydb.coordination.SemaphoreDescription getSemaphoreDescription(); /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; */ com.yandex.ydb.coordination.SemaphoreDescriptionOrBuilder getSemaphoreDescriptionOrBuilder(); /** *
     * True if a watch has been added for the semaphore
     * 
* * bool watch_added = 5; * @return The watchAdded. */ boolean getWatchAdded(); } /** *
   **
   * The result of the describe operation
   * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.DescribeSemaphoreResult} */ public static final class DescribeSemaphoreResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionResponse.DescribeSemaphoreResult) DescribeSemaphoreResultOrBuilder { private static final long serialVersionUID = 0L; // Use DescribeSemaphoreResult.newBuilder() to construct. private DescribeSemaphoreResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DescribeSemaphoreResult() { status_ = 0; issues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DescribeSemaphoreResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DescribeSemaphoreResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { reqId_ = input.readUInt64(); break; } case 16: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } issues_.add( input.readMessage(com.yandex.ydb.YdbIssueMessage.IssueMessage.parser(), extensionRegistry)); break; } case 34: { com.yandex.ydb.coordination.SemaphoreDescription.Builder subBuilder = null; if (semaphoreDescription_ != null) { subBuilder = semaphoreDescription_.toBuilder(); } semaphoreDescription_ = input.readMessage(com.yandex.ydb.coordination.SemaphoreDescription.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(semaphoreDescription_); semaphoreDescription_ = subBuilder.buildPartial(); } break; } case 40: { watchAdded_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_DescribeSemaphoreResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_DescribeSemaphoreResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.class, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.Builder.class); } public static final int REQ_ID_FIELD_NUMBER = 1; private long reqId_; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 3; private java.util.List issues_; /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } public static final int SEMAPHORE_DESCRIPTION_FIELD_NUMBER = 4; private com.yandex.ydb.coordination.SemaphoreDescription semaphoreDescription_; /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; * @return Whether the semaphoreDescription field is set. */ @java.lang.Override public boolean hasSemaphoreDescription() { return semaphoreDescription_ != null; } /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; * @return The semaphoreDescription. */ @java.lang.Override public com.yandex.ydb.coordination.SemaphoreDescription getSemaphoreDescription() { return semaphoreDescription_ == null ? com.yandex.ydb.coordination.SemaphoreDescription.getDefaultInstance() : semaphoreDescription_; } /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; */ @java.lang.Override public com.yandex.ydb.coordination.SemaphoreDescriptionOrBuilder getSemaphoreDescriptionOrBuilder() { return getSemaphoreDescription(); } public static final int WATCH_ADDED_FIELD_NUMBER = 5; private boolean watchAdded_; /** *
     * True if a watch has been added for the semaphore
     * 
* * bool watch_added = 5; * @return The watchAdded. */ @java.lang.Override public boolean getWatchAdded() { return watchAdded_; } 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 (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(3, issues_.get(i)); } if (semaphoreDescription_ != null) { output.writeMessage(4, getSemaphoreDescription()); } if (watchAdded_ != false) { output.writeBool(5, watchAdded_); } 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 (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, issues_.get(i)); } if (semaphoreDescription_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSemaphoreDescription()); } if (watchAdded_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, watchAdded_); } 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.SessionResponse.DescribeSemaphoreResult)) { return super.equals(obj); } com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult other = (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult) obj; if (getReqId() != other.getReqId()) return false; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) return false; if (hasSemaphoreDescription() != other.hasSemaphoreDescription()) return false; if (hasSemaphoreDescription()) { if (!getSemaphoreDescription() .equals(other.getSemaphoreDescription())) return false; } if (getWatchAdded() != other.getWatchAdded()) 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) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } if (hasSemaphoreDescription()) { hash = (37 * hash) + SEMAPHORE_DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSemaphoreDescription().hashCode(); } hash = (37 * hash) + WATCH_ADDED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getWatchAdded()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult 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.SessionResponse.DescribeSemaphoreResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult 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.SessionResponse.DescribeSemaphoreResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult 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.SessionResponse.DescribeSemaphoreResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult 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.SessionResponse.DescribeSemaphoreResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult 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.SessionResponse.DescribeSemaphoreResult 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; } /** *
     **
     * The result of the describe operation
     * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.DescribeSemaphoreResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionResponse.DescribeSemaphoreResult) com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_DescribeSemaphoreResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_DescribeSemaphoreResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.class, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.Builder.class); } // Construct using com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIssuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); reqId_ = 0L; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { issuesBuilder_.clear(); } if (semaphoreDescriptionBuilder_ == null) { semaphoreDescription_ = null; } else { semaphoreDescription_ = null; semaphoreDescriptionBuilder_ = null; } watchAdded_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_DescribeSemaphoreResult_descriptor; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult getDefaultInstanceForType() { return com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult build() { com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult buildPartial() { com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult result = new com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult(this); int from_bitField0_ = bitField0_; result.reqId_ = reqId_; result.status_ = status_; if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000001); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } if (semaphoreDescriptionBuilder_ == null) { result.semaphoreDescription_ = semaphoreDescription_; } else { result.semaphoreDescription_ = semaphoreDescriptionBuilder_.build(); } result.watchAdded_ = watchAdded_; 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.SessionResponse.DescribeSemaphoreResult) { return mergeFrom((com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult other) { if (other == com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.getDefaultInstance()) return this; if (other.getReqId() != 0L) { setReqId(other.getReqId()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } if (other.hasSemaphoreDescription()) { mergeSemaphoreDescription(other.getSemaphoreDescription()); } if (other.getWatchAdded() != false) { setWatchAdded(other.getWatchAdded()); } 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.SessionResponse.DescribeSemaphoreResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long reqId_ ; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } /** * 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; } /** * uint64 req_id = 1; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = 0L; onChanged(); return this; } private int status_ = 0; /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 2; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 2; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues(com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } private com.yandex.ydb.coordination.SemaphoreDescription semaphoreDescription_; private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SemaphoreDescription, com.yandex.ydb.coordination.SemaphoreDescription.Builder, com.yandex.ydb.coordination.SemaphoreDescriptionOrBuilder> semaphoreDescriptionBuilder_; /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; * @return Whether the semaphoreDescription field is set. */ public boolean hasSemaphoreDescription() { return semaphoreDescriptionBuilder_ != null || semaphoreDescription_ != null; } /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; * @return The semaphoreDescription. */ public com.yandex.ydb.coordination.SemaphoreDescription getSemaphoreDescription() { if (semaphoreDescriptionBuilder_ == null) { return semaphoreDescription_ == null ? com.yandex.ydb.coordination.SemaphoreDescription.getDefaultInstance() : semaphoreDescription_; } else { return semaphoreDescriptionBuilder_.getMessage(); } } /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; */ public Builder setSemaphoreDescription(com.yandex.ydb.coordination.SemaphoreDescription value) { if (semaphoreDescriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } semaphoreDescription_ = value; onChanged(); } else { semaphoreDescriptionBuilder_.setMessage(value); } return this; } /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; */ public Builder setSemaphoreDescription( com.yandex.ydb.coordination.SemaphoreDescription.Builder builderForValue) { if (semaphoreDescriptionBuilder_ == null) { semaphoreDescription_ = builderForValue.build(); onChanged(); } else { semaphoreDescriptionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; */ public Builder mergeSemaphoreDescription(com.yandex.ydb.coordination.SemaphoreDescription value) { if (semaphoreDescriptionBuilder_ == null) { if (semaphoreDescription_ != null) { semaphoreDescription_ = com.yandex.ydb.coordination.SemaphoreDescription.newBuilder(semaphoreDescription_).mergeFrom(value).buildPartial(); } else { semaphoreDescription_ = value; } onChanged(); } else { semaphoreDescriptionBuilder_.mergeFrom(value); } return this; } /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; */ public Builder clearSemaphoreDescription() { if (semaphoreDescriptionBuilder_ == null) { semaphoreDescription_ = null; onChanged(); } else { semaphoreDescription_ = null; semaphoreDescriptionBuilder_ = null; } return this; } /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; */ public com.yandex.ydb.coordination.SemaphoreDescription.Builder getSemaphoreDescriptionBuilder() { onChanged(); return getSemaphoreDescriptionFieldBuilder().getBuilder(); } /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; */ public com.yandex.ydb.coordination.SemaphoreDescriptionOrBuilder getSemaphoreDescriptionOrBuilder() { if (semaphoreDescriptionBuilder_ != null) { return semaphoreDescriptionBuilder_.getMessageOrBuilder(); } else { return semaphoreDescription_ == null ? com.yandex.ydb.coordination.SemaphoreDescription.getDefaultInstance() : semaphoreDescription_; } } /** * .Ydb.Coordination.SemaphoreDescription semaphore_description = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SemaphoreDescription, com.yandex.ydb.coordination.SemaphoreDescription.Builder, com.yandex.ydb.coordination.SemaphoreDescriptionOrBuilder> getSemaphoreDescriptionFieldBuilder() { if (semaphoreDescriptionBuilder_ == null) { semaphoreDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SemaphoreDescription, com.yandex.ydb.coordination.SemaphoreDescription.Builder, com.yandex.ydb.coordination.SemaphoreDescriptionOrBuilder>( getSemaphoreDescription(), getParentForChildren(), isClean()); semaphoreDescription_ = null; } return semaphoreDescriptionBuilder_; } private boolean watchAdded_ ; /** *
       * True if a watch has been added for the semaphore
       * 
* * bool watch_added = 5; * @return The watchAdded. */ @java.lang.Override public boolean getWatchAdded() { return watchAdded_; } /** *
       * True if a watch has been added for the semaphore
       * 
* * bool watch_added = 5; * @param value The watchAdded to set. * @return This builder for chaining. */ public Builder setWatchAdded(boolean value) { watchAdded_ = value; onChanged(); return this; } /** *
       * True if a watch has been added for the semaphore
       * 
* * bool watch_added = 5; * @return This builder for chaining. */ public Builder clearWatchAdded() { watchAdded_ = 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.SessionResponse.DescribeSemaphoreResult) } // @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionResponse.DescribeSemaphoreResult) private static final com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult(); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DescribeSemaphoreResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DescribeSemaphoreResult(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.SessionResponse.DescribeSemaphoreResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DescribeSemaphoreChangedOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged) com.google.protobuf.MessageOrBuilder { /** * uint64 req_id = 1; * @return The reqId. */ long getReqId(); /** * bool data_changed = 2; * @return The dataChanged. */ boolean getDataChanged(); /** * bool owners_changed = 3; * @return The ownersChanged. */ boolean getOwnersChanged(); } /** *
   **
   * Used to report a change in the watched semaphore
   * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged} */ public static final class DescribeSemaphoreChanged extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged) DescribeSemaphoreChangedOrBuilder { private static final long serialVersionUID = 0L; // Use DescribeSemaphoreChanged.newBuilder() to construct. private DescribeSemaphoreChanged(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DescribeSemaphoreChanged() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DescribeSemaphoreChanged(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DescribeSemaphoreChanged( 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 16: { dataChanged_ = input.readBool(); break; } case 24: { ownersChanged_ = 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_SessionResponse_DescribeSemaphoreChanged_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_DescribeSemaphoreChanged_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.class, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.Builder.class); } public static final int REQ_ID_FIELD_NUMBER = 1; private long reqId_; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } public static final int DATA_CHANGED_FIELD_NUMBER = 2; private boolean dataChanged_; /** * bool data_changed = 2; * @return The dataChanged. */ @java.lang.Override public boolean getDataChanged() { return dataChanged_; } public static final int OWNERS_CHANGED_FIELD_NUMBER = 3; private boolean ownersChanged_; /** * bool owners_changed = 3; * @return The ownersChanged. */ @java.lang.Override public boolean getOwnersChanged() { return ownersChanged_; } 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 (dataChanged_ != false) { output.writeBool(2, dataChanged_); } if (ownersChanged_ != false) { output.writeBool(3, ownersChanged_); } 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 (dataChanged_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, dataChanged_); } if (ownersChanged_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, ownersChanged_); } 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.SessionResponse.DescribeSemaphoreChanged)) { return super.equals(obj); } com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged other = (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged) obj; if (getReqId() != other.getReqId()) return false; if (getDataChanged() != other.getDataChanged()) return false; if (getOwnersChanged() != other.getOwnersChanged()) 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) + DATA_CHANGED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDataChanged()); hash = (37 * hash) + OWNERS_CHANGED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getOwnersChanged()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged 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.SessionResponse.DescribeSemaphoreChanged parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged 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.SessionResponse.DescribeSemaphoreChanged parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged 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.SessionResponse.DescribeSemaphoreChanged parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged 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.SessionResponse.DescribeSemaphoreChanged parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged 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.SessionResponse.DescribeSemaphoreChanged 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 report a change in the watched semaphore
     * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged) com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChangedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_DescribeSemaphoreChanged_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_DescribeSemaphoreChanged_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.class, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.Builder.class); } // Construct using com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.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; dataChanged_ = false; ownersChanged_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_DescribeSemaphoreChanged_descriptor; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged getDefaultInstanceForType() { return com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged build() { com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged buildPartial() { com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged result = new com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged(this); result.reqId_ = reqId_; result.dataChanged_ = dataChanged_; result.ownersChanged_ = ownersChanged_; 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.SessionResponse.DescribeSemaphoreChanged) { return mergeFrom((com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged other) { if (other == com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.getDefaultInstance()) return this; if (other.getReqId() != 0L) { setReqId(other.getReqId()); } if (other.getDataChanged() != false) { setDataChanged(other.getDataChanged()); } if (other.getOwnersChanged() != false) { setOwnersChanged(other.getOwnersChanged()); } 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.SessionResponse.DescribeSemaphoreChanged parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long reqId_ ; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } /** * 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; } /** * uint64 req_id = 1; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = 0L; onChanged(); return this; } private boolean dataChanged_ ; /** * bool data_changed = 2; * @return The dataChanged. */ @java.lang.Override public boolean getDataChanged() { return dataChanged_; } /** * bool data_changed = 2; * @param value The dataChanged to set. * @return This builder for chaining. */ public Builder setDataChanged(boolean value) { dataChanged_ = value; onChanged(); return this; } /** * bool data_changed = 2; * @return This builder for chaining. */ public Builder clearDataChanged() { dataChanged_ = false; onChanged(); return this; } private boolean ownersChanged_ ; /** * bool owners_changed = 3; * @return The ownersChanged. */ @java.lang.Override public boolean getOwnersChanged() { return ownersChanged_; } /** * bool owners_changed = 3; * @param value The ownersChanged to set. * @return This builder for chaining. */ public Builder setOwnersChanged(boolean value) { ownersChanged_ = value; onChanged(); return this; } /** * bool owners_changed = 3; * @return This builder for chaining. */ public Builder clearOwnersChanged() { ownersChanged_ = 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.SessionResponse.DescribeSemaphoreChanged) } // @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged) private static final com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged(); } public static com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DescribeSemaphoreChanged parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DescribeSemaphoreChanged(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.SessionResponse.DescribeSemaphoreChanged getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateSemaphoreResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionResponse.CreateSemaphoreResult) com.google.protobuf.MessageOrBuilder { /** * uint64 req_id = 1; * @return The reqId. */ long getReqId(); /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ int getIssuesCount(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ java.util.List getIssuesOrBuilderList(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); } /** *
   **
   * The result of semaphore creation
   * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.CreateSemaphoreResult} */ public static final class CreateSemaphoreResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionResponse.CreateSemaphoreResult) CreateSemaphoreResultOrBuilder { private static final long serialVersionUID = 0L; // Use CreateSemaphoreResult.newBuilder() to construct. private CreateSemaphoreResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateSemaphoreResult() { status_ = 0; issues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateSemaphoreResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateSemaphoreResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { reqId_ = input.readUInt64(); break; } case 16: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } issues_.add( input.readMessage(com.yandex.ydb.YdbIssueMessage.IssueMessage.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_CreateSemaphoreResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_CreateSemaphoreResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.class, com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.Builder.class); } public static final int REQ_ID_FIELD_NUMBER = 1; private long reqId_; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 3; private java.util.List issues_; /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (reqId_ != 0L) { output.writeUInt64(1, reqId_); } if (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(3, issues_.get(i)); } 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 (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, issues_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult)) { return super.equals(obj); } com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult other = (com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult) obj; if (getReqId() != other.getReqId()) return false; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) 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) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult 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.SessionResponse.CreateSemaphoreResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult 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.SessionResponse.CreateSemaphoreResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult 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.SessionResponse.CreateSemaphoreResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult 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.SessionResponse.CreateSemaphoreResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult 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.SessionResponse.CreateSemaphoreResult 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; } /** *
     **
     * The result of semaphore creation
     * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.CreateSemaphoreResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionResponse.CreateSemaphoreResult) com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_CreateSemaphoreResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_CreateSemaphoreResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.class, com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.Builder.class); } // Construct using com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIssuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); reqId_ = 0L; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { issuesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_CreateSemaphoreResult_descriptor; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult getDefaultInstanceForType() { return com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult build() { com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult buildPartial() { com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult result = new com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult(this); int from_bitField0_ = bitField0_; result.reqId_ = reqId_; result.status_ = status_; if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000001); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult) { return mergeFrom((com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult other) { if (other == com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.getDefaultInstance()) return this; if (other.getReqId() != 0L) { setReqId(other.getReqId()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } 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.SessionResponse.CreateSemaphoreResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long reqId_ ; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } /** * 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; } /** * uint64 req_id = 1; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = 0L; onChanged(); return this; } private int status_ = 0; /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 2; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 2; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues(com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } @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.SessionResponse.CreateSemaphoreResult) } // @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionResponse.CreateSemaphoreResult) private static final com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult(); } public static com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateSemaphoreResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateSemaphoreResult(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.SessionResponse.CreateSemaphoreResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateSemaphoreResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionResponse.UpdateSemaphoreResult) com.google.protobuf.MessageOrBuilder { /** * uint64 req_id = 1; * @return The reqId. */ long getReqId(); /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ int getIssuesCount(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ java.util.List getIssuesOrBuilderList(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); } /** *
   **
   * The result of semaphore update
   * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.UpdateSemaphoreResult} */ public static final class UpdateSemaphoreResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionResponse.UpdateSemaphoreResult) UpdateSemaphoreResultOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateSemaphoreResult.newBuilder() to construct. private UpdateSemaphoreResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateSemaphoreResult() { status_ = 0; issues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateSemaphoreResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateSemaphoreResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { reqId_ = input.readUInt64(); break; } case 16: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } issues_.add( input.readMessage(com.yandex.ydb.YdbIssueMessage.IssueMessage.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_UpdateSemaphoreResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_UpdateSemaphoreResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.class, com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.Builder.class); } public static final int REQ_ID_FIELD_NUMBER = 1; private long reqId_; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 3; private java.util.List issues_; /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (reqId_ != 0L) { output.writeUInt64(1, reqId_); } if (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(3, issues_.get(i)); } 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 (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, issues_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult)) { return super.equals(obj); } com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult other = (com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult) obj; if (getReqId() != other.getReqId()) return false; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) 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) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult 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.SessionResponse.UpdateSemaphoreResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult 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.SessionResponse.UpdateSemaphoreResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult 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.SessionResponse.UpdateSemaphoreResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult 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.SessionResponse.UpdateSemaphoreResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult 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.SessionResponse.UpdateSemaphoreResult 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; } /** *
     **
     * The result of semaphore update
     * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.UpdateSemaphoreResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionResponse.UpdateSemaphoreResult) com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_UpdateSemaphoreResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_UpdateSemaphoreResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.class, com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.Builder.class); } // Construct using com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIssuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); reqId_ = 0L; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { issuesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_UpdateSemaphoreResult_descriptor; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult getDefaultInstanceForType() { return com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult build() { com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult buildPartial() { com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult result = new com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult(this); int from_bitField0_ = bitField0_; result.reqId_ = reqId_; result.status_ = status_; if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000001); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult) { return mergeFrom((com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult other) { if (other == com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.getDefaultInstance()) return this; if (other.getReqId() != 0L) { setReqId(other.getReqId()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } 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.SessionResponse.UpdateSemaphoreResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long reqId_ ; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } /** * 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; } /** * uint64 req_id = 1; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = 0L; onChanged(); return this; } private int status_ = 0; /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 2; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 2; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues(com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } @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.SessionResponse.UpdateSemaphoreResult) } // @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionResponse.UpdateSemaphoreResult) private static final com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult(); } public static com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateSemaphoreResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateSemaphoreResult(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.SessionResponse.UpdateSemaphoreResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteSemaphoreResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Coordination.SessionResponse.DeleteSemaphoreResult) com.google.protobuf.MessageOrBuilder { /** * uint64 req_id = 1; * @return The reqId. */ long getReqId(); /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ java.util.List getIssuesList(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ int getIssuesCount(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ java.util.List getIssuesOrBuilderList(); /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index); } /** *
   **
   * The result of semaphore deletion
   * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.DeleteSemaphoreResult} */ public static final class DeleteSemaphoreResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Coordination.SessionResponse.DeleteSemaphoreResult) DeleteSemaphoreResultOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteSemaphoreResult.newBuilder() to construct. private DeleteSemaphoreResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteSemaphoreResult() { status_ = 0; issues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteSemaphoreResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteSemaphoreResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { reqId_ = input.readUInt64(); break; } case 16: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } issues_.add( input.readMessage(com.yandex.ydb.YdbIssueMessage.IssueMessage.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_DeleteSemaphoreResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_DeleteSemaphoreResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.class, com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.Builder.class); } public static final int REQ_ID_FIELD_NUMBER = 1; private long reqId_; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 3; private java.util.List issues_; /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ @java.lang.Override public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (reqId_ != 0L) { output.writeUInt64(1, reqId_); } if (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(3, issues_.get(i)); } 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 (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, issues_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult)) { return super.equals(obj); } com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult other = (com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult) obj; if (getReqId() != other.getReqId()) return false; if (status_ != other.status_) return false; if (!getIssuesList() .equals(other.getIssuesList())) 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) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult 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.SessionResponse.DeleteSemaphoreResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult 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.SessionResponse.DeleteSemaphoreResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult 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.SessionResponse.DeleteSemaphoreResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult 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.SessionResponse.DeleteSemaphoreResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult 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.SessionResponse.DeleteSemaphoreResult 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; } /** *
     **
     * The result of semaphore deletion
     * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse.DeleteSemaphoreResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionResponse.DeleteSemaphoreResult) com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_DeleteSemaphoreResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_DeleteSemaphoreResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.class, com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.Builder.class); } // Construct using com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIssuesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); reqId_ = 0L; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { issuesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_DeleteSemaphoreResult_descriptor; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult getDefaultInstanceForType() { return com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult build() { com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult buildPartial() { com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult result = new com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult(this); int from_bitField0_ = bitField0_; result.reqId_ = reqId_; result.status_ = status_; if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000001); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult) { return mergeFrom((com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult other) { if (other == com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.getDefaultInstance()) return this; if (other.getReqId() != 0L) { setReqId(other.getReqId()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (issuesBuilder_ == null) { if (!other.issues_.isEmpty()) { if (issues_.isEmpty()) { issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000001); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } 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.SessionResponse.DeleteSemaphoreResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long reqId_ ; /** * uint64 req_id = 1; * @return The reqId. */ @java.lang.Override public long getReqId() { return reqId_; } /** * 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; } /** * uint64 req_id = 1; * @return This builder for chaining. */ public Builder clearReqId() { reqId_ = 0L; onChanged(); return this; } private int status_ = 0; /** * .Ydb.StatusIds.StatusCode status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 2; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return The status. */ @java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() { @SuppressWarnings("deprecation") com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_); return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 2; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 2; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder setIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues(com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addIssues( int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 3; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } @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.SessionResponse.DeleteSemaphoreResult) } // @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionResponse.DeleteSemaphoreResult) private static final com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult(); } public static com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteSemaphoreResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteSemaphoreResult(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.SessionResponse.DeleteSemaphoreResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int responseCase_ = 0; private java.lang.Object response_; public enum ResponseCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PING(1), PONG(2), FAILURE(3), SESSION_STARTED(4), SESSION_STOPPED(5), UNSUPPORTED_6(6), UNSUPPORTED_7(7), ACQUIRE_SEMAPHORE_PENDING(8), ACQUIRE_SEMAPHORE_RESULT(9), RELEASE_SEMAPHORE_RESULT(10), DESCRIBE_SEMAPHORE_RESULT(11), DESCRIBE_SEMAPHORE_CHANGED(12), CREATE_SEMAPHORE_RESULT(13), UPDATE_SEMAPHORE_RESULT(14), DELETE_SEMAPHORE_RESULT(15), UNSUPPORTED_16(16), UNSUPPORTED_17(17), UNSUPPORTED_18(18), RESPONSE_NOT_SET(0); private final int value; private ResponseCase(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 ResponseCase valueOf(int value) { return forNumber(value); } public static ResponseCase forNumber(int value) { switch (value) { case 1: return PING; case 2: return PONG; case 3: return FAILURE; case 4: return SESSION_STARTED; case 5: return SESSION_STOPPED; case 6: return UNSUPPORTED_6; case 7: return UNSUPPORTED_7; case 8: return ACQUIRE_SEMAPHORE_PENDING; case 9: return ACQUIRE_SEMAPHORE_RESULT; case 10: return RELEASE_SEMAPHORE_RESULT; case 11: return DESCRIBE_SEMAPHORE_RESULT; case 12: return DESCRIBE_SEMAPHORE_CHANGED; case 13: return CREATE_SEMAPHORE_RESULT; case 14: return UPDATE_SEMAPHORE_RESULT; case 15: return DELETE_SEMAPHORE_RESULT; case 16: return UNSUPPORTED_16; case 17: return UNSUPPORTED_17; case 18: return UNSUPPORTED_18; case 0: return RESPONSE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ResponseCase getResponseCase() { return ResponseCase.forNumber( responseCase_); } public static final int PING_FIELD_NUMBER = 1; /** * .Ydb.Coordination.SessionResponse.PingPong ping = 1; * @return Whether the ping field is set. */ @java.lang.Override public boolean hasPing() { return responseCase_ == 1; } /** * .Ydb.Coordination.SessionResponse.PingPong ping = 1; * @return The ping. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.PingPong getPing() { if (responseCase_ == 1) { return (com.yandex.ydb.coordination.SessionResponse.PingPong) response_; } return com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance(); } /** * .Ydb.Coordination.SessionResponse.PingPong ping = 1; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.PingPongOrBuilder getPingOrBuilder() { if (responseCase_ == 1) { return (com.yandex.ydb.coordination.SessionResponse.PingPong) response_; } return com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance(); } public static final int PONG_FIELD_NUMBER = 2; /** * .Ydb.Coordination.SessionResponse.PingPong pong = 2; * @return Whether the pong field is set. */ @java.lang.Override public boolean hasPong() { return responseCase_ == 2; } /** * .Ydb.Coordination.SessionResponse.PingPong pong = 2; * @return The pong. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.PingPong getPong() { if (responseCase_ == 2) { return (com.yandex.ydb.coordination.SessionResponse.PingPong) response_; } return com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance(); } /** * .Ydb.Coordination.SessionResponse.PingPong pong = 2; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.PingPongOrBuilder getPongOrBuilder() { if (responseCase_ == 2) { return (com.yandex.ydb.coordination.SessionResponse.PingPong) response_; } return com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance(); } public static final int FAILURE_FIELD_NUMBER = 3; /** * .Ydb.Coordination.SessionResponse.Failure failure = 3; * @return Whether the failure field is set. */ @java.lang.Override public boolean hasFailure() { return responseCase_ == 3; } /** * .Ydb.Coordination.SessionResponse.Failure failure = 3; * @return The failure. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.Failure getFailure() { if (responseCase_ == 3) { return (com.yandex.ydb.coordination.SessionResponse.Failure) response_; } return com.yandex.ydb.coordination.SessionResponse.Failure.getDefaultInstance(); } /** * .Ydb.Coordination.SessionResponse.Failure failure = 3; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.FailureOrBuilder getFailureOrBuilder() { if (responseCase_ == 3) { return (com.yandex.ydb.coordination.SessionResponse.Failure) response_; } return com.yandex.ydb.coordination.SessionResponse.Failure.getDefaultInstance(); } public static final int SESSION_STARTED_FIELD_NUMBER = 4; /** * .Ydb.Coordination.SessionResponse.SessionStarted session_started = 4; * @return Whether the sessionStarted field is set. */ @java.lang.Override public boolean hasSessionStarted() { return responseCase_ == 4; } /** * .Ydb.Coordination.SessionResponse.SessionStarted session_started = 4; * @return The sessionStarted. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.SessionStarted getSessionStarted() { if (responseCase_ == 4) { return (com.yandex.ydb.coordination.SessionResponse.SessionStarted) response_; } return com.yandex.ydb.coordination.SessionResponse.SessionStarted.getDefaultInstance(); } /** * .Ydb.Coordination.SessionResponse.SessionStarted session_started = 4; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.SessionStartedOrBuilder getSessionStartedOrBuilder() { if (responseCase_ == 4) { return (com.yandex.ydb.coordination.SessionResponse.SessionStarted) response_; } return com.yandex.ydb.coordination.SessionResponse.SessionStarted.getDefaultInstance(); } public static final int SESSION_STOPPED_FIELD_NUMBER = 5; /** * .Ydb.Coordination.SessionResponse.SessionStopped session_stopped = 5; * @return Whether the sessionStopped field is set. */ @java.lang.Override public boolean hasSessionStopped() { return responseCase_ == 5; } /** * .Ydb.Coordination.SessionResponse.SessionStopped session_stopped = 5; * @return The sessionStopped. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.SessionStopped getSessionStopped() { if (responseCase_ == 5) { return (com.yandex.ydb.coordination.SessionResponse.SessionStopped) response_; } return com.yandex.ydb.coordination.SessionResponse.SessionStopped.getDefaultInstance(); } /** * .Ydb.Coordination.SessionResponse.SessionStopped session_stopped = 5; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.SessionStoppedOrBuilder getSessionStoppedOrBuilder() { if (responseCase_ == 5) { return (com.yandex.ydb.coordination.SessionResponse.SessionStopped) response_; } return com.yandex.ydb.coordination.SessionResponse.SessionStopped.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 responseCase_ == 6; } /** * .Ydb.Coordination.Unsupported unsupported_6 = 6; * @return The unsupported6. */ @java.lang.Override public com.yandex.ydb.coordination.Unsupported getUnsupported6() { if (responseCase_ == 6) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } /** * .Ydb.Coordination.Unsupported unsupported_6 = 6; */ @java.lang.Override public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported6OrBuilder() { if (responseCase_ == 6) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } public static final int UNSUPPORTED_7_FIELD_NUMBER = 7; /** * .Ydb.Coordination.Unsupported unsupported_7 = 7; * @return Whether the unsupported7 field is set. */ @java.lang.Override public boolean hasUnsupported7() { return responseCase_ == 7; } /** * .Ydb.Coordination.Unsupported unsupported_7 = 7; * @return The unsupported7. */ @java.lang.Override public com.yandex.ydb.coordination.Unsupported getUnsupported7() { if (responseCase_ == 7) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } /** * .Ydb.Coordination.Unsupported unsupported_7 = 7; */ @java.lang.Override public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported7OrBuilder() { if (responseCase_ == 7) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } public static final int ACQUIRE_SEMAPHORE_PENDING_FIELD_NUMBER = 8; /** * .Ydb.Coordination.SessionResponse.AcquireSemaphorePending acquire_semaphore_pending = 8; * @return Whether the acquireSemaphorePending field is set. */ @java.lang.Override public boolean hasAcquireSemaphorePending() { return responseCase_ == 8; } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphorePending acquire_semaphore_pending = 8; * @return The acquireSemaphorePending. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending getAcquireSemaphorePending() { if (responseCase_ == 8) { return (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending) response_; } return com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.getDefaultInstance(); } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphorePending acquire_semaphore_pending = 8; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePendingOrBuilder getAcquireSemaphorePendingOrBuilder() { if (responseCase_ == 8) { return (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending) response_; } return com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.getDefaultInstance(); } public static final int ACQUIRE_SEMAPHORE_RESULT_FIELD_NUMBER = 9; /** * .Ydb.Coordination.SessionResponse.AcquireSemaphoreResult acquire_semaphore_result = 9; * @return Whether the acquireSemaphoreResult field is set. */ @java.lang.Override public boolean hasAcquireSemaphoreResult() { return responseCase_ == 9; } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphoreResult acquire_semaphore_result = 9; * @return The acquireSemaphoreResult. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult getAcquireSemaphoreResult() { if (responseCase_ == 9) { return (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.getDefaultInstance(); } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphoreResult acquire_semaphore_result = 9; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResultOrBuilder getAcquireSemaphoreResultOrBuilder() { if (responseCase_ == 9) { return (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.getDefaultInstance(); } public static final int RELEASE_SEMAPHORE_RESULT_FIELD_NUMBER = 10; /** * .Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult release_semaphore_result = 10; * @return Whether the releaseSemaphoreResult field is set. */ @java.lang.Override public boolean hasReleaseSemaphoreResult() { return responseCase_ == 10; } /** * .Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult release_semaphore_result = 10; * @return The releaseSemaphoreResult. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult getReleaseSemaphoreResult() { if (responseCase_ == 10) { return (com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.getDefaultInstance(); } /** * .Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult release_semaphore_result = 10; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResultOrBuilder getReleaseSemaphoreResultOrBuilder() { if (responseCase_ == 10) { return (com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.getDefaultInstance(); } public static final int DESCRIBE_SEMAPHORE_RESULT_FIELD_NUMBER = 11; /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreResult describe_semaphore_result = 11; * @return Whether the describeSemaphoreResult field is set. */ @java.lang.Override public boolean hasDescribeSemaphoreResult() { return responseCase_ == 11; } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreResult describe_semaphore_result = 11; * @return The describeSemaphoreResult. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult getDescribeSemaphoreResult() { if (responseCase_ == 11) { return (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.getDefaultInstance(); } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreResult describe_semaphore_result = 11; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResultOrBuilder getDescribeSemaphoreResultOrBuilder() { if (responseCase_ == 11) { return (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.getDefaultInstance(); } public static final int DESCRIBE_SEMAPHORE_CHANGED_FIELD_NUMBER = 12; /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged describe_semaphore_changed = 12; * @return Whether the describeSemaphoreChanged field is set. */ @java.lang.Override public boolean hasDescribeSemaphoreChanged() { return responseCase_ == 12; } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged describe_semaphore_changed = 12; * @return The describeSemaphoreChanged. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged getDescribeSemaphoreChanged() { if (responseCase_ == 12) { return (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged) response_; } return com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.getDefaultInstance(); } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged describe_semaphore_changed = 12; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChangedOrBuilder getDescribeSemaphoreChangedOrBuilder() { if (responseCase_ == 12) { return (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged) response_; } return com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.getDefaultInstance(); } public static final int CREATE_SEMAPHORE_RESULT_FIELD_NUMBER = 13; /** * .Ydb.Coordination.SessionResponse.CreateSemaphoreResult create_semaphore_result = 13; * @return Whether the createSemaphoreResult field is set. */ @java.lang.Override public boolean hasCreateSemaphoreResult() { return responseCase_ == 13; } /** * .Ydb.Coordination.SessionResponse.CreateSemaphoreResult create_semaphore_result = 13; * @return The createSemaphoreResult. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult getCreateSemaphoreResult() { if (responseCase_ == 13) { return (com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.getDefaultInstance(); } /** * .Ydb.Coordination.SessionResponse.CreateSemaphoreResult create_semaphore_result = 13; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResultOrBuilder getCreateSemaphoreResultOrBuilder() { if (responseCase_ == 13) { return (com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.getDefaultInstance(); } public static final int UPDATE_SEMAPHORE_RESULT_FIELD_NUMBER = 14; /** * .Ydb.Coordination.SessionResponse.UpdateSemaphoreResult update_semaphore_result = 14; * @return Whether the updateSemaphoreResult field is set. */ @java.lang.Override public boolean hasUpdateSemaphoreResult() { return responseCase_ == 14; } /** * .Ydb.Coordination.SessionResponse.UpdateSemaphoreResult update_semaphore_result = 14; * @return The updateSemaphoreResult. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult getUpdateSemaphoreResult() { if (responseCase_ == 14) { return (com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.getDefaultInstance(); } /** * .Ydb.Coordination.SessionResponse.UpdateSemaphoreResult update_semaphore_result = 14; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResultOrBuilder getUpdateSemaphoreResultOrBuilder() { if (responseCase_ == 14) { return (com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.getDefaultInstance(); } public static final int DELETE_SEMAPHORE_RESULT_FIELD_NUMBER = 15; /** * .Ydb.Coordination.SessionResponse.DeleteSemaphoreResult delete_semaphore_result = 15; * @return Whether the deleteSemaphoreResult field is set. */ @java.lang.Override public boolean hasDeleteSemaphoreResult() { return responseCase_ == 15; } /** * .Ydb.Coordination.SessionResponse.DeleteSemaphoreResult delete_semaphore_result = 15; * @return The deleteSemaphoreResult. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult getDeleteSemaphoreResult() { if (responseCase_ == 15) { return (com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.getDefaultInstance(); } /** * .Ydb.Coordination.SessionResponse.DeleteSemaphoreResult delete_semaphore_result = 15; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResultOrBuilder getDeleteSemaphoreResultOrBuilder() { if (responseCase_ == 15) { return (com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.getDefaultInstance(); } public static final int UNSUPPORTED_16_FIELD_NUMBER = 16; /** * .Ydb.Coordination.Unsupported unsupported_16 = 16; * @return Whether the unsupported16 field is set. */ @java.lang.Override public boolean hasUnsupported16() { return responseCase_ == 16; } /** * .Ydb.Coordination.Unsupported unsupported_16 = 16; * @return The unsupported16. */ @java.lang.Override public com.yandex.ydb.coordination.Unsupported getUnsupported16() { if (responseCase_ == 16) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } /** * .Ydb.Coordination.Unsupported unsupported_16 = 16; */ @java.lang.Override public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported16OrBuilder() { if (responseCase_ == 16) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } public static final int UNSUPPORTED_17_FIELD_NUMBER = 17; /** * .Ydb.Coordination.Unsupported unsupported_17 = 17; * @return Whether the unsupported17 field is set. */ @java.lang.Override public boolean hasUnsupported17() { return responseCase_ == 17; } /** * .Ydb.Coordination.Unsupported unsupported_17 = 17; * @return The unsupported17. */ @java.lang.Override public com.yandex.ydb.coordination.Unsupported getUnsupported17() { if (responseCase_ == 17) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } /** * .Ydb.Coordination.Unsupported unsupported_17 = 17; */ @java.lang.Override public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported17OrBuilder() { if (responseCase_ == 17) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } public static final int UNSUPPORTED_18_FIELD_NUMBER = 18; /** * .Ydb.Coordination.Unsupported unsupported_18 = 18; * @return Whether the unsupported18 field is set. */ @java.lang.Override public boolean hasUnsupported18() { return responseCase_ == 18; } /** * .Ydb.Coordination.Unsupported unsupported_18 = 18; * @return The unsupported18. */ @java.lang.Override public com.yandex.ydb.coordination.Unsupported getUnsupported18() { if (responseCase_ == 18) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } /** * .Ydb.Coordination.Unsupported unsupported_18 = 18; */ @java.lang.Override public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported18OrBuilder() { if (responseCase_ == 18) { return (com.yandex.ydb.coordination.Unsupported) response_; } 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 (responseCase_ == 1) { output.writeMessage(1, (com.yandex.ydb.coordination.SessionResponse.PingPong) response_); } if (responseCase_ == 2) { output.writeMessage(2, (com.yandex.ydb.coordination.SessionResponse.PingPong) response_); } if (responseCase_ == 3) { output.writeMessage(3, (com.yandex.ydb.coordination.SessionResponse.Failure) response_); } if (responseCase_ == 4) { output.writeMessage(4, (com.yandex.ydb.coordination.SessionResponse.SessionStarted) response_); } if (responseCase_ == 5) { output.writeMessage(5, (com.yandex.ydb.coordination.SessionResponse.SessionStopped) response_); } if (responseCase_ == 6) { output.writeMessage(6, (com.yandex.ydb.coordination.Unsupported) response_); } if (responseCase_ == 7) { output.writeMessage(7, (com.yandex.ydb.coordination.Unsupported) response_); } if (responseCase_ == 8) { output.writeMessage(8, (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending) response_); } if (responseCase_ == 9) { output.writeMessage(9, (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult) response_); } if (responseCase_ == 10) { output.writeMessage(10, (com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult) response_); } if (responseCase_ == 11) { output.writeMessage(11, (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult) response_); } if (responseCase_ == 12) { output.writeMessage(12, (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged) response_); } if (responseCase_ == 13) { output.writeMessage(13, (com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult) response_); } if (responseCase_ == 14) { output.writeMessage(14, (com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult) response_); } if (responseCase_ == 15) { output.writeMessage(15, (com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult) response_); } if (responseCase_ == 16) { output.writeMessage(16, (com.yandex.ydb.coordination.Unsupported) response_); } if (responseCase_ == 17) { output.writeMessage(17, (com.yandex.ydb.coordination.Unsupported) response_); } if (responseCase_ == 18) { output.writeMessage(18, (com.yandex.ydb.coordination.Unsupported) response_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (responseCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.yandex.ydb.coordination.SessionResponse.PingPong) response_); } if (responseCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.yandex.ydb.coordination.SessionResponse.PingPong) response_); } if (responseCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.yandex.ydb.coordination.SessionResponse.Failure) response_); } if (responseCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.yandex.ydb.coordination.SessionResponse.SessionStarted) response_); } if (responseCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.yandex.ydb.coordination.SessionResponse.SessionStopped) response_); } if (responseCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.yandex.ydb.coordination.Unsupported) response_); } if (responseCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.yandex.ydb.coordination.Unsupported) response_); } if (responseCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending) response_); } if (responseCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult) response_); } if (responseCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult) response_); } if (responseCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult) response_); } if (responseCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged) response_); } if (responseCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult) response_); } if (responseCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult) response_); } if (responseCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult) response_); } if (responseCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (com.yandex.ydb.coordination.Unsupported) response_); } if (responseCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (com.yandex.ydb.coordination.Unsupported) response_); } if (responseCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (com.yandex.ydb.coordination.Unsupported) response_); } 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.SessionResponse)) { return super.equals(obj); } com.yandex.ydb.coordination.SessionResponse other = (com.yandex.ydb.coordination.SessionResponse) obj; if (!getResponseCase().equals(other.getResponseCase())) return false; switch (responseCase_) { case 1: if (!getPing() .equals(other.getPing())) return false; break; case 2: if (!getPong() .equals(other.getPong())) return false; break; case 3: if (!getFailure() .equals(other.getFailure())) return false; break; case 4: if (!getSessionStarted() .equals(other.getSessionStarted())) return false; break; case 5: if (!getSessionStopped() .equals(other.getSessionStopped())) return false; break; case 6: if (!getUnsupported6() .equals(other.getUnsupported6())) return false; break; case 7: if (!getUnsupported7() .equals(other.getUnsupported7())) return false; break; case 8: if (!getAcquireSemaphorePending() .equals(other.getAcquireSemaphorePending())) return false; break; case 9: if (!getAcquireSemaphoreResult() .equals(other.getAcquireSemaphoreResult())) return false; break; case 10: if (!getReleaseSemaphoreResult() .equals(other.getReleaseSemaphoreResult())) return false; break; case 11: if (!getDescribeSemaphoreResult() .equals(other.getDescribeSemaphoreResult())) return false; break; case 12: if (!getDescribeSemaphoreChanged() .equals(other.getDescribeSemaphoreChanged())) return false; break; case 13: if (!getCreateSemaphoreResult() .equals(other.getCreateSemaphoreResult())) return false; break; case 14: if (!getUpdateSemaphoreResult() .equals(other.getUpdateSemaphoreResult())) return false; break; case 15: if (!getDeleteSemaphoreResult() .equals(other.getDeleteSemaphoreResult())) return false; break; case 16: if (!getUnsupported16() .equals(other.getUnsupported16())) return false; break; case 17: if (!getUnsupported17() .equals(other.getUnsupported17())) return false; break; case 18: if (!getUnsupported18() .equals(other.getUnsupported18())) 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 (responseCase_) { 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) + FAILURE_FIELD_NUMBER; hash = (53 * hash) + getFailure().hashCode(); break; case 4: hash = (37 * hash) + SESSION_STARTED_FIELD_NUMBER; hash = (53 * hash) + getSessionStarted().hashCode(); break; case 5: hash = (37 * hash) + SESSION_STOPPED_FIELD_NUMBER; hash = (53 * hash) + getSessionStopped().hashCode(); break; case 6: hash = (37 * hash) + UNSUPPORTED_6_FIELD_NUMBER; hash = (53 * hash) + getUnsupported6().hashCode(); break; case 7: hash = (37 * hash) + UNSUPPORTED_7_FIELD_NUMBER; hash = (53 * hash) + getUnsupported7().hashCode(); break; case 8: hash = (37 * hash) + ACQUIRE_SEMAPHORE_PENDING_FIELD_NUMBER; hash = (53 * hash) + getAcquireSemaphorePending().hashCode(); break; case 9: hash = (37 * hash) + ACQUIRE_SEMAPHORE_RESULT_FIELD_NUMBER; hash = (53 * hash) + getAcquireSemaphoreResult().hashCode(); break; case 10: hash = (37 * hash) + RELEASE_SEMAPHORE_RESULT_FIELD_NUMBER; hash = (53 * hash) + getReleaseSemaphoreResult().hashCode(); break; case 11: hash = (37 * hash) + DESCRIBE_SEMAPHORE_RESULT_FIELD_NUMBER; hash = (53 * hash) + getDescribeSemaphoreResult().hashCode(); break; case 12: hash = (37 * hash) + DESCRIBE_SEMAPHORE_CHANGED_FIELD_NUMBER; hash = (53 * hash) + getDescribeSemaphoreChanged().hashCode(); break; case 13: hash = (37 * hash) + CREATE_SEMAPHORE_RESULT_FIELD_NUMBER; hash = (53 * hash) + getCreateSemaphoreResult().hashCode(); break; case 14: hash = (37 * hash) + UPDATE_SEMAPHORE_RESULT_FIELD_NUMBER; hash = (53 * hash) + getUpdateSemaphoreResult().hashCode(); break; case 15: hash = (37 * hash) + DELETE_SEMAPHORE_RESULT_FIELD_NUMBER; hash = (53 * hash) + getDeleteSemaphoreResult().hashCode(); break; case 16: hash = (37 * hash) + UNSUPPORTED_16_FIELD_NUMBER; hash = (53 * hash) + getUnsupported16().hashCode(); break; case 17: hash = (37 * hash) + UNSUPPORTED_17_FIELD_NUMBER; hash = (53 * hash) + getUnsupported17().hashCode(); break; case 18: hash = (37 * hash) + UNSUPPORTED_18_FIELD_NUMBER; hash = (53 * hash) + getUnsupported18().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.coordination.SessionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse 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.SessionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse 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.SessionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.SessionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.SessionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse 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.SessionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse 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.SessionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.coordination.SessionResponse 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.SessionResponse 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 response message sent from server to client
   * 
* * Protobuf type {@code Ydb.Coordination.SessionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Coordination.SessionResponse) com.yandex.ydb.coordination.SessionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.SessionResponse.class, com.yandex.ydb.coordination.SessionResponse.Builder.class); } // Construct using com.yandex.ydb.coordination.SessionResponse.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(); responseCase_ = 0; response_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_SessionResponse_descriptor; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse getDefaultInstanceForType() { return com.yandex.ydb.coordination.SessionResponse.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse build() { com.yandex.ydb.coordination.SessionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.coordination.SessionResponse buildPartial() { com.yandex.ydb.coordination.SessionResponse result = new com.yandex.ydb.coordination.SessionResponse(this); if (responseCase_ == 1) { if (pingBuilder_ == null) { result.response_ = response_; } else { result.response_ = pingBuilder_.build(); } } if (responseCase_ == 2) { if (pongBuilder_ == null) { result.response_ = response_; } else { result.response_ = pongBuilder_.build(); } } if (responseCase_ == 3) { if (failureBuilder_ == null) { result.response_ = response_; } else { result.response_ = failureBuilder_.build(); } } if (responseCase_ == 4) { if (sessionStartedBuilder_ == null) { result.response_ = response_; } else { result.response_ = sessionStartedBuilder_.build(); } } if (responseCase_ == 5) { if (sessionStoppedBuilder_ == null) { result.response_ = response_; } else { result.response_ = sessionStoppedBuilder_.build(); } } if (responseCase_ == 6) { if (unsupported6Builder_ == null) { result.response_ = response_; } else { result.response_ = unsupported6Builder_.build(); } } if (responseCase_ == 7) { if (unsupported7Builder_ == null) { result.response_ = response_; } else { result.response_ = unsupported7Builder_.build(); } } if (responseCase_ == 8) { if (acquireSemaphorePendingBuilder_ == null) { result.response_ = response_; } else { result.response_ = acquireSemaphorePendingBuilder_.build(); } } if (responseCase_ == 9) { if (acquireSemaphoreResultBuilder_ == null) { result.response_ = response_; } else { result.response_ = acquireSemaphoreResultBuilder_.build(); } } if (responseCase_ == 10) { if (releaseSemaphoreResultBuilder_ == null) { result.response_ = response_; } else { result.response_ = releaseSemaphoreResultBuilder_.build(); } } if (responseCase_ == 11) { if (describeSemaphoreResultBuilder_ == null) { result.response_ = response_; } else { result.response_ = describeSemaphoreResultBuilder_.build(); } } if (responseCase_ == 12) { if (describeSemaphoreChangedBuilder_ == null) { result.response_ = response_; } else { result.response_ = describeSemaphoreChangedBuilder_.build(); } } if (responseCase_ == 13) { if (createSemaphoreResultBuilder_ == null) { result.response_ = response_; } else { result.response_ = createSemaphoreResultBuilder_.build(); } } if (responseCase_ == 14) { if (updateSemaphoreResultBuilder_ == null) { result.response_ = response_; } else { result.response_ = updateSemaphoreResultBuilder_.build(); } } if (responseCase_ == 15) { if (deleteSemaphoreResultBuilder_ == null) { result.response_ = response_; } else { result.response_ = deleteSemaphoreResultBuilder_.build(); } } if (responseCase_ == 16) { if (unsupported16Builder_ == null) { result.response_ = response_; } else { result.response_ = unsupported16Builder_.build(); } } if (responseCase_ == 17) { if (unsupported17Builder_ == null) { result.response_ = response_; } else { result.response_ = unsupported17Builder_.build(); } } if (responseCase_ == 18) { if (unsupported18Builder_ == null) { result.response_ = response_; } else { result.response_ = unsupported18Builder_.build(); } } result.responseCase_ = responseCase_; 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.SessionResponse) { return mergeFrom((com.yandex.ydb.coordination.SessionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.coordination.SessionResponse other) { if (other == com.yandex.ydb.coordination.SessionResponse.getDefaultInstance()) return this; switch (other.getResponseCase()) { case PING: { mergePing(other.getPing()); break; } case PONG: { mergePong(other.getPong()); break; } case FAILURE: { mergeFailure(other.getFailure()); break; } case SESSION_STARTED: { mergeSessionStarted(other.getSessionStarted()); break; } case SESSION_STOPPED: { mergeSessionStopped(other.getSessionStopped()); break; } case UNSUPPORTED_6: { mergeUnsupported6(other.getUnsupported6()); break; } case UNSUPPORTED_7: { mergeUnsupported7(other.getUnsupported7()); break; } case ACQUIRE_SEMAPHORE_PENDING: { mergeAcquireSemaphorePending(other.getAcquireSemaphorePending()); break; } case ACQUIRE_SEMAPHORE_RESULT: { mergeAcquireSemaphoreResult(other.getAcquireSemaphoreResult()); break; } case RELEASE_SEMAPHORE_RESULT: { mergeReleaseSemaphoreResult(other.getReleaseSemaphoreResult()); break; } case DESCRIBE_SEMAPHORE_RESULT: { mergeDescribeSemaphoreResult(other.getDescribeSemaphoreResult()); break; } case DESCRIBE_SEMAPHORE_CHANGED: { mergeDescribeSemaphoreChanged(other.getDescribeSemaphoreChanged()); break; } case CREATE_SEMAPHORE_RESULT: { mergeCreateSemaphoreResult(other.getCreateSemaphoreResult()); break; } case UPDATE_SEMAPHORE_RESULT: { mergeUpdateSemaphoreResult(other.getUpdateSemaphoreResult()); break; } case DELETE_SEMAPHORE_RESULT: { mergeDeleteSemaphoreResult(other.getDeleteSemaphoreResult()); break; } case UNSUPPORTED_16: { mergeUnsupported16(other.getUnsupported16()); break; } case UNSUPPORTED_17: { mergeUnsupported17(other.getUnsupported17()); break; } case UNSUPPORTED_18: { mergeUnsupported18(other.getUnsupported18()); break; } case RESPONSE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.yandex.ydb.coordination.SessionResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.coordination.SessionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int responseCase_ = 0; private java.lang.Object response_; public ResponseCase getResponseCase() { return ResponseCase.forNumber( responseCase_); } public Builder clearResponse() { responseCase_ = 0; response_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.PingPong, com.yandex.ydb.coordination.SessionResponse.PingPong.Builder, com.yandex.ydb.coordination.SessionResponse.PingPongOrBuilder> pingBuilder_; /** * .Ydb.Coordination.SessionResponse.PingPong ping = 1; * @return Whether the ping field is set. */ @java.lang.Override public boolean hasPing() { return responseCase_ == 1; } /** * .Ydb.Coordination.SessionResponse.PingPong ping = 1; * @return The ping. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.PingPong getPing() { if (pingBuilder_ == null) { if (responseCase_ == 1) { return (com.yandex.ydb.coordination.SessionResponse.PingPong) response_; } return com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance(); } else { if (responseCase_ == 1) { return pingBuilder_.getMessage(); } return com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.PingPong ping = 1; */ public Builder setPing(com.yandex.ydb.coordination.SessionResponse.PingPong value) { if (pingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { pingBuilder_.setMessage(value); } responseCase_ = 1; return this; } /** * .Ydb.Coordination.SessionResponse.PingPong ping = 1; */ public Builder setPing( com.yandex.ydb.coordination.SessionResponse.PingPong.Builder builderForValue) { if (pingBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { pingBuilder_.setMessage(builderForValue.build()); } responseCase_ = 1; return this; } /** * .Ydb.Coordination.SessionResponse.PingPong ping = 1; */ public Builder mergePing(com.yandex.ydb.coordination.SessionResponse.PingPong value) { if (pingBuilder_ == null) { if (responseCase_ == 1 && response_ != com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.SessionResponse.PingPong.newBuilder((com.yandex.ydb.coordination.SessionResponse.PingPong) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 1) { pingBuilder_.mergeFrom(value); } pingBuilder_.setMessage(value); } responseCase_ = 1; return this; } /** * .Ydb.Coordination.SessionResponse.PingPong ping = 1; */ public Builder clearPing() { if (pingBuilder_ == null) { if (responseCase_ == 1) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 1) { responseCase_ = 0; response_ = null; } pingBuilder_.clear(); } return this; } /** * .Ydb.Coordination.SessionResponse.PingPong ping = 1; */ public com.yandex.ydb.coordination.SessionResponse.PingPong.Builder getPingBuilder() { return getPingFieldBuilder().getBuilder(); } /** * .Ydb.Coordination.SessionResponse.PingPong ping = 1; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.PingPongOrBuilder getPingOrBuilder() { if ((responseCase_ == 1) && (pingBuilder_ != null)) { return pingBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 1) { return (com.yandex.ydb.coordination.SessionResponse.PingPong) response_; } return com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.PingPong ping = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.PingPong, com.yandex.ydb.coordination.SessionResponse.PingPong.Builder, com.yandex.ydb.coordination.SessionResponse.PingPongOrBuilder> getPingFieldBuilder() { if (pingBuilder_ == null) { if (!(responseCase_ == 1)) { response_ = com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance(); } pingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.PingPong, com.yandex.ydb.coordination.SessionResponse.PingPong.Builder, com.yandex.ydb.coordination.SessionResponse.PingPongOrBuilder>( (com.yandex.ydb.coordination.SessionResponse.PingPong) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 1; onChanged();; return pingBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.PingPong, com.yandex.ydb.coordination.SessionResponse.PingPong.Builder, com.yandex.ydb.coordination.SessionResponse.PingPongOrBuilder> pongBuilder_; /** * .Ydb.Coordination.SessionResponse.PingPong pong = 2; * @return Whether the pong field is set. */ @java.lang.Override public boolean hasPong() { return responseCase_ == 2; } /** * .Ydb.Coordination.SessionResponse.PingPong pong = 2; * @return The pong. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.PingPong getPong() { if (pongBuilder_ == null) { if (responseCase_ == 2) { return (com.yandex.ydb.coordination.SessionResponse.PingPong) response_; } return com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance(); } else { if (responseCase_ == 2) { return pongBuilder_.getMessage(); } return com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.PingPong pong = 2; */ public Builder setPong(com.yandex.ydb.coordination.SessionResponse.PingPong value) { if (pongBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { pongBuilder_.setMessage(value); } responseCase_ = 2; return this; } /** * .Ydb.Coordination.SessionResponse.PingPong pong = 2; */ public Builder setPong( com.yandex.ydb.coordination.SessionResponse.PingPong.Builder builderForValue) { if (pongBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { pongBuilder_.setMessage(builderForValue.build()); } responseCase_ = 2; return this; } /** * .Ydb.Coordination.SessionResponse.PingPong pong = 2; */ public Builder mergePong(com.yandex.ydb.coordination.SessionResponse.PingPong value) { if (pongBuilder_ == null) { if (responseCase_ == 2 && response_ != com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.SessionResponse.PingPong.newBuilder((com.yandex.ydb.coordination.SessionResponse.PingPong) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 2) { pongBuilder_.mergeFrom(value); } pongBuilder_.setMessage(value); } responseCase_ = 2; return this; } /** * .Ydb.Coordination.SessionResponse.PingPong pong = 2; */ public Builder clearPong() { if (pongBuilder_ == null) { if (responseCase_ == 2) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 2) { responseCase_ = 0; response_ = null; } pongBuilder_.clear(); } return this; } /** * .Ydb.Coordination.SessionResponse.PingPong pong = 2; */ public com.yandex.ydb.coordination.SessionResponse.PingPong.Builder getPongBuilder() { return getPongFieldBuilder().getBuilder(); } /** * .Ydb.Coordination.SessionResponse.PingPong pong = 2; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.PingPongOrBuilder getPongOrBuilder() { if ((responseCase_ == 2) && (pongBuilder_ != null)) { return pongBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 2) { return (com.yandex.ydb.coordination.SessionResponse.PingPong) response_; } return com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.PingPong pong = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.PingPong, com.yandex.ydb.coordination.SessionResponse.PingPong.Builder, com.yandex.ydb.coordination.SessionResponse.PingPongOrBuilder> getPongFieldBuilder() { if (pongBuilder_ == null) { if (!(responseCase_ == 2)) { response_ = com.yandex.ydb.coordination.SessionResponse.PingPong.getDefaultInstance(); } pongBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.PingPong, com.yandex.ydb.coordination.SessionResponse.PingPong.Builder, com.yandex.ydb.coordination.SessionResponse.PingPongOrBuilder>( (com.yandex.ydb.coordination.SessionResponse.PingPong) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 2; onChanged();; return pongBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.Failure, com.yandex.ydb.coordination.SessionResponse.Failure.Builder, com.yandex.ydb.coordination.SessionResponse.FailureOrBuilder> failureBuilder_; /** * .Ydb.Coordination.SessionResponse.Failure failure = 3; * @return Whether the failure field is set. */ @java.lang.Override public boolean hasFailure() { return responseCase_ == 3; } /** * .Ydb.Coordination.SessionResponse.Failure failure = 3; * @return The failure. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.Failure getFailure() { if (failureBuilder_ == null) { if (responseCase_ == 3) { return (com.yandex.ydb.coordination.SessionResponse.Failure) response_; } return com.yandex.ydb.coordination.SessionResponse.Failure.getDefaultInstance(); } else { if (responseCase_ == 3) { return failureBuilder_.getMessage(); } return com.yandex.ydb.coordination.SessionResponse.Failure.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.Failure failure = 3; */ public Builder setFailure(com.yandex.ydb.coordination.SessionResponse.Failure value) { if (failureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { failureBuilder_.setMessage(value); } responseCase_ = 3; return this; } /** * .Ydb.Coordination.SessionResponse.Failure failure = 3; */ public Builder setFailure( com.yandex.ydb.coordination.SessionResponse.Failure.Builder builderForValue) { if (failureBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { failureBuilder_.setMessage(builderForValue.build()); } responseCase_ = 3; return this; } /** * .Ydb.Coordination.SessionResponse.Failure failure = 3; */ public Builder mergeFailure(com.yandex.ydb.coordination.SessionResponse.Failure value) { if (failureBuilder_ == null) { if (responseCase_ == 3 && response_ != com.yandex.ydb.coordination.SessionResponse.Failure.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.SessionResponse.Failure.newBuilder((com.yandex.ydb.coordination.SessionResponse.Failure) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 3) { failureBuilder_.mergeFrom(value); } failureBuilder_.setMessage(value); } responseCase_ = 3; return this; } /** * .Ydb.Coordination.SessionResponse.Failure failure = 3; */ public Builder clearFailure() { if (failureBuilder_ == null) { if (responseCase_ == 3) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 3) { responseCase_ = 0; response_ = null; } failureBuilder_.clear(); } return this; } /** * .Ydb.Coordination.SessionResponse.Failure failure = 3; */ public com.yandex.ydb.coordination.SessionResponse.Failure.Builder getFailureBuilder() { return getFailureFieldBuilder().getBuilder(); } /** * .Ydb.Coordination.SessionResponse.Failure failure = 3; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.FailureOrBuilder getFailureOrBuilder() { if ((responseCase_ == 3) && (failureBuilder_ != null)) { return failureBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 3) { return (com.yandex.ydb.coordination.SessionResponse.Failure) response_; } return com.yandex.ydb.coordination.SessionResponse.Failure.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.Failure failure = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.Failure, com.yandex.ydb.coordination.SessionResponse.Failure.Builder, com.yandex.ydb.coordination.SessionResponse.FailureOrBuilder> getFailureFieldBuilder() { if (failureBuilder_ == null) { if (!(responseCase_ == 3)) { response_ = com.yandex.ydb.coordination.SessionResponse.Failure.getDefaultInstance(); } failureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.Failure, com.yandex.ydb.coordination.SessionResponse.Failure.Builder, com.yandex.ydb.coordination.SessionResponse.FailureOrBuilder>( (com.yandex.ydb.coordination.SessionResponse.Failure) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 3; onChanged();; return failureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.SessionStarted, com.yandex.ydb.coordination.SessionResponse.SessionStarted.Builder, com.yandex.ydb.coordination.SessionResponse.SessionStartedOrBuilder> sessionStartedBuilder_; /** * .Ydb.Coordination.SessionResponse.SessionStarted session_started = 4; * @return Whether the sessionStarted field is set. */ @java.lang.Override public boolean hasSessionStarted() { return responseCase_ == 4; } /** * .Ydb.Coordination.SessionResponse.SessionStarted session_started = 4; * @return The sessionStarted. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.SessionStarted getSessionStarted() { if (sessionStartedBuilder_ == null) { if (responseCase_ == 4) { return (com.yandex.ydb.coordination.SessionResponse.SessionStarted) response_; } return com.yandex.ydb.coordination.SessionResponse.SessionStarted.getDefaultInstance(); } else { if (responseCase_ == 4) { return sessionStartedBuilder_.getMessage(); } return com.yandex.ydb.coordination.SessionResponse.SessionStarted.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.SessionStarted session_started = 4; */ public Builder setSessionStarted(com.yandex.ydb.coordination.SessionResponse.SessionStarted value) { if (sessionStartedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { sessionStartedBuilder_.setMessage(value); } responseCase_ = 4; return this; } /** * .Ydb.Coordination.SessionResponse.SessionStarted session_started = 4; */ public Builder setSessionStarted( com.yandex.ydb.coordination.SessionResponse.SessionStarted.Builder builderForValue) { if (sessionStartedBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { sessionStartedBuilder_.setMessage(builderForValue.build()); } responseCase_ = 4; return this; } /** * .Ydb.Coordination.SessionResponse.SessionStarted session_started = 4; */ public Builder mergeSessionStarted(com.yandex.ydb.coordination.SessionResponse.SessionStarted value) { if (sessionStartedBuilder_ == null) { if (responseCase_ == 4 && response_ != com.yandex.ydb.coordination.SessionResponse.SessionStarted.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.SessionResponse.SessionStarted.newBuilder((com.yandex.ydb.coordination.SessionResponse.SessionStarted) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 4) { sessionStartedBuilder_.mergeFrom(value); } sessionStartedBuilder_.setMessage(value); } responseCase_ = 4; return this; } /** * .Ydb.Coordination.SessionResponse.SessionStarted session_started = 4; */ public Builder clearSessionStarted() { if (sessionStartedBuilder_ == null) { if (responseCase_ == 4) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 4) { responseCase_ = 0; response_ = null; } sessionStartedBuilder_.clear(); } return this; } /** * .Ydb.Coordination.SessionResponse.SessionStarted session_started = 4; */ public com.yandex.ydb.coordination.SessionResponse.SessionStarted.Builder getSessionStartedBuilder() { return getSessionStartedFieldBuilder().getBuilder(); } /** * .Ydb.Coordination.SessionResponse.SessionStarted session_started = 4; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.SessionStartedOrBuilder getSessionStartedOrBuilder() { if ((responseCase_ == 4) && (sessionStartedBuilder_ != null)) { return sessionStartedBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 4) { return (com.yandex.ydb.coordination.SessionResponse.SessionStarted) response_; } return com.yandex.ydb.coordination.SessionResponse.SessionStarted.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.SessionStarted session_started = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.SessionStarted, com.yandex.ydb.coordination.SessionResponse.SessionStarted.Builder, com.yandex.ydb.coordination.SessionResponse.SessionStartedOrBuilder> getSessionStartedFieldBuilder() { if (sessionStartedBuilder_ == null) { if (!(responseCase_ == 4)) { response_ = com.yandex.ydb.coordination.SessionResponse.SessionStarted.getDefaultInstance(); } sessionStartedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.SessionStarted, com.yandex.ydb.coordination.SessionResponse.SessionStarted.Builder, com.yandex.ydb.coordination.SessionResponse.SessionStartedOrBuilder>( (com.yandex.ydb.coordination.SessionResponse.SessionStarted) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 4; onChanged();; return sessionStartedBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.SessionStopped, com.yandex.ydb.coordination.SessionResponse.SessionStopped.Builder, com.yandex.ydb.coordination.SessionResponse.SessionStoppedOrBuilder> sessionStoppedBuilder_; /** * .Ydb.Coordination.SessionResponse.SessionStopped session_stopped = 5; * @return Whether the sessionStopped field is set. */ @java.lang.Override public boolean hasSessionStopped() { return responseCase_ == 5; } /** * .Ydb.Coordination.SessionResponse.SessionStopped session_stopped = 5; * @return The sessionStopped. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.SessionStopped getSessionStopped() { if (sessionStoppedBuilder_ == null) { if (responseCase_ == 5) { return (com.yandex.ydb.coordination.SessionResponse.SessionStopped) response_; } return com.yandex.ydb.coordination.SessionResponse.SessionStopped.getDefaultInstance(); } else { if (responseCase_ == 5) { return sessionStoppedBuilder_.getMessage(); } return com.yandex.ydb.coordination.SessionResponse.SessionStopped.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.SessionStopped session_stopped = 5; */ public Builder setSessionStopped(com.yandex.ydb.coordination.SessionResponse.SessionStopped value) { if (sessionStoppedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { sessionStoppedBuilder_.setMessage(value); } responseCase_ = 5; return this; } /** * .Ydb.Coordination.SessionResponse.SessionStopped session_stopped = 5; */ public Builder setSessionStopped( com.yandex.ydb.coordination.SessionResponse.SessionStopped.Builder builderForValue) { if (sessionStoppedBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { sessionStoppedBuilder_.setMessage(builderForValue.build()); } responseCase_ = 5; return this; } /** * .Ydb.Coordination.SessionResponse.SessionStopped session_stopped = 5; */ public Builder mergeSessionStopped(com.yandex.ydb.coordination.SessionResponse.SessionStopped value) { if (sessionStoppedBuilder_ == null) { if (responseCase_ == 5 && response_ != com.yandex.ydb.coordination.SessionResponse.SessionStopped.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.SessionResponse.SessionStopped.newBuilder((com.yandex.ydb.coordination.SessionResponse.SessionStopped) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 5) { sessionStoppedBuilder_.mergeFrom(value); } sessionStoppedBuilder_.setMessage(value); } responseCase_ = 5; return this; } /** * .Ydb.Coordination.SessionResponse.SessionStopped session_stopped = 5; */ public Builder clearSessionStopped() { if (sessionStoppedBuilder_ == null) { if (responseCase_ == 5) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 5) { responseCase_ = 0; response_ = null; } sessionStoppedBuilder_.clear(); } return this; } /** * .Ydb.Coordination.SessionResponse.SessionStopped session_stopped = 5; */ public com.yandex.ydb.coordination.SessionResponse.SessionStopped.Builder getSessionStoppedBuilder() { return getSessionStoppedFieldBuilder().getBuilder(); } /** * .Ydb.Coordination.SessionResponse.SessionStopped session_stopped = 5; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.SessionStoppedOrBuilder getSessionStoppedOrBuilder() { if ((responseCase_ == 5) && (sessionStoppedBuilder_ != null)) { return sessionStoppedBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 5) { return (com.yandex.ydb.coordination.SessionResponse.SessionStopped) response_; } return com.yandex.ydb.coordination.SessionResponse.SessionStopped.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.SessionStopped session_stopped = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.SessionStopped, com.yandex.ydb.coordination.SessionResponse.SessionStopped.Builder, com.yandex.ydb.coordination.SessionResponse.SessionStoppedOrBuilder> getSessionStoppedFieldBuilder() { if (sessionStoppedBuilder_ == null) { if (!(responseCase_ == 5)) { response_ = com.yandex.ydb.coordination.SessionResponse.SessionStopped.getDefaultInstance(); } sessionStoppedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.SessionStopped, com.yandex.ydb.coordination.SessionResponse.SessionStopped.Builder, com.yandex.ydb.coordination.SessionResponse.SessionStoppedOrBuilder>( (com.yandex.ydb.coordination.SessionResponse.SessionStopped) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 5; onChanged();; return sessionStoppedBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> unsupported6Builder_; /** * .Ydb.Coordination.Unsupported unsupported_6 = 6; * @return Whether the unsupported6 field is set. */ @java.lang.Override public boolean hasUnsupported6() { return responseCase_ == 6; } /** * .Ydb.Coordination.Unsupported unsupported_6 = 6; * @return The unsupported6. */ @java.lang.Override public com.yandex.ydb.coordination.Unsupported getUnsupported6() { if (unsupported6Builder_ == null) { if (responseCase_ == 6) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } else { if (responseCase_ == 6) { return unsupported6Builder_.getMessage(); } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } } /** * .Ydb.Coordination.Unsupported unsupported_6 = 6; */ public Builder setUnsupported6(com.yandex.ydb.coordination.Unsupported value) { if (unsupported6Builder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { unsupported6Builder_.setMessage(value); } responseCase_ = 6; return this; } /** * .Ydb.Coordination.Unsupported unsupported_6 = 6; */ public Builder setUnsupported6( com.yandex.ydb.coordination.Unsupported.Builder builderForValue) { if (unsupported6Builder_ == null) { response_ = builderForValue.build(); onChanged(); } else { unsupported6Builder_.setMessage(builderForValue.build()); } responseCase_ = 6; return this; } /** * .Ydb.Coordination.Unsupported unsupported_6 = 6; */ public Builder mergeUnsupported6(com.yandex.ydb.coordination.Unsupported value) { if (unsupported6Builder_ == null) { if (responseCase_ == 6 && response_ != com.yandex.ydb.coordination.Unsupported.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.Unsupported.newBuilder((com.yandex.ydb.coordination.Unsupported) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 6) { unsupported6Builder_.mergeFrom(value); } unsupported6Builder_.setMessage(value); } responseCase_ = 6; return this; } /** * .Ydb.Coordination.Unsupported unsupported_6 = 6; */ public Builder clearUnsupported6() { if (unsupported6Builder_ == null) { if (responseCase_ == 6) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 6) { responseCase_ = 0; response_ = null; } unsupported6Builder_.clear(); } return this; } /** * .Ydb.Coordination.Unsupported unsupported_6 = 6; */ public com.yandex.ydb.coordination.Unsupported.Builder getUnsupported6Builder() { return getUnsupported6FieldBuilder().getBuilder(); } /** * .Ydb.Coordination.Unsupported unsupported_6 = 6; */ @java.lang.Override public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported6OrBuilder() { if ((responseCase_ == 6) && (unsupported6Builder_ != null)) { return unsupported6Builder_.getMessageOrBuilder(); } else { if (responseCase_ == 6) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } } /** * .Ydb.Coordination.Unsupported unsupported_6 = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> getUnsupported6FieldBuilder() { if (unsupported6Builder_ == null) { if (!(responseCase_ == 6)) { response_ = com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } unsupported6Builder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>( (com.yandex.ydb.coordination.Unsupported) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 6; onChanged();; return unsupported6Builder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> unsupported7Builder_; /** * .Ydb.Coordination.Unsupported unsupported_7 = 7; * @return Whether the unsupported7 field is set. */ @java.lang.Override public boolean hasUnsupported7() { return responseCase_ == 7; } /** * .Ydb.Coordination.Unsupported unsupported_7 = 7; * @return The unsupported7. */ @java.lang.Override public com.yandex.ydb.coordination.Unsupported getUnsupported7() { if (unsupported7Builder_ == null) { if (responseCase_ == 7) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } else { if (responseCase_ == 7) { return unsupported7Builder_.getMessage(); } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } } /** * .Ydb.Coordination.Unsupported unsupported_7 = 7; */ public Builder setUnsupported7(com.yandex.ydb.coordination.Unsupported value) { if (unsupported7Builder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { unsupported7Builder_.setMessage(value); } responseCase_ = 7; return this; } /** * .Ydb.Coordination.Unsupported unsupported_7 = 7; */ public Builder setUnsupported7( com.yandex.ydb.coordination.Unsupported.Builder builderForValue) { if (unsupported7Builder_ == null) { response_ = builderForValue.build(); onChanged(); } else { unsupported7Builder_.setMessage(builderForValue.build()); } responseCase_ = 7; return this; } /** * .Ydb.Coordination.Unsupported unsupported_7 = 7; */ public Builder mergeUnsupported7(com.yandex.ydb.coordination.Unsupported value) { if (unsupported7Builder_ == null) { if (responseCase_ == 7 && response_ != com.yandex.ydb.coordination.Unsupported.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.Unsupported.newBuilder((com.yandex.ydb.coordination.Unsupported) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 7) { unsupported7Builder_.mergeFrom(value); } unsupported7Builder_.setMessage(value); } responseCase_ = 7; return this; } /** * .Ydb.Coordination.Unsupported unsupported_7 = 7; */ public Builder clearUnsupported7() { if (unsupported7Builder_ == null) { if (responseCase_ == 7) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 7) { responseCase_ = 0; response_ = null; } unsupported7Builder_.clear(); } return this; } /** * .Ydb.Coordination.Unsupported unsupported_7 = 7; */ public com.yandex.ydb.coordination.Unsupported.Builder getUnsupported7Builder() { return getUnsupported7FieldBuilder().getBuilder(); } /** * .Ydb.Coordination.Unsupported unsupported_7 = 7; */ @java.lang.Override public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported7OrBuilder() { if ((responseCase_ == 7) && (unsupported7Builder_ != null)) { return unsupported7Builder_.getMessageOrBuilder(); } else { if (responseCase_ == 7) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } } /** * .Ydb.Coordination.Unsupported unsupported_7 = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> getUnsupported7FieldBuilder() { if (unsupported7Builder_ == null) { if (!(responseCase_ == 7)) { response_ = com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } unsupported7Builder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>( (com.yandex.ydb.coordination.Unsupported) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 7; onChanged();; return unsupported7Builder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.Builder, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePendingOrBuilder> acquireSemaphorePendingBuilder_; /** * .Ydb.Coordination.SessionResponse.AcquireSemaphorePending acquire_semaphore_pending = 8; * @return Whether the acquireSemaphorePending field is set. */ @java.lang.Override public boolean hasAcquireSemaphorePending() { return responseCase_ == 8; } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphorePending acquire_semaphore_pending = 8; * @return The acquireSemaphorePending. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending getAcquireSemaphorePending() { if (acquireSemaphorePendingBuilder_ == null) { if (responseCase_ == 8) { return (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending) response_; } return com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.getDefaultInstance(); } else { if (responseCase_ == 8) { return acquireSemaphorePendingBuilder_.getMessage(); } return com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphorePending acquire_semaphore_pending = 8; */ public Builder setAcquireSemaphorePending(com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending value) { if (acquireSemaphorePendingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { acquireSemaphorePendingBuilder_.setMessage(value); } responseCase_ = 8; return this; } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphorePending acquire_semaphore_pending = 8; */ public Builder setAcquireSemaphorePending( com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.Builder builderForValue) { if (acquireSemaphorePendingBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { acquireSemaphorePendingBuilder_.setMessage(builderForValue.build()); } responseCase_ = 8; return this; } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphorePending acquire_semaphore_pending = 8; */ public Builder mergeAcquireSemaphorePending(com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending value) { if (acquireSemaphorePendingBuilder_ == null) { if (responseCase_ == 8 && response_ != com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.newBuilder((com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 8) { acquireSemaphorePendingBuilder_.mergeFrom(value); } acquireSemaphorePendingBuilder_.setMessage(value); } responseCase_ = 8; return this; } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphorePending acquire_semaphore_pending = 8; */ public Builder clearAcquireSemaphorePending() { if (acquireSemaphorePendingBuilder_ == null) { if (responseCase_ == 8) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 8) { responseCase_ = 0; response_ = null; } acquireSemaphorePendingBuilder_.clear(); } return this; } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphorePending acquire_semaphore_pending = 8; */ public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.Builder getAcquireSemaphorePendingBuilder() { return getAcquireSemaphorePendingFieldBuilder().getBuilder(); } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphorePending acquire_semaphore_pending = 8; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePendingOrBuilder getAcquireSemaphorePendingOrBuilder() { if ((responseCase_ == 8) && (acquireSemaphorePendingBuilder_ != null)) { return acquireSemaphorePendingBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 8) { return (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending) response_; } return com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphorePending acquire_semaphore_pending = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.Builder, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePendingOrBuilder> getAcquireSemaphorePendingFieldBuilder() { if (acquireSemaphorePendingBuilder_ == null) { if (!(responseCase_ == 8)) { response_ = com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.getDefaultInstance(); } acquireSemaphorePendingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending.Builder, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePendingOrBuilder>( (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphorePending) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 8; onChanged();; return acquireSemaphorePendingBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResultOrBuilder> acquireSemaphoreResultBuilder_; /** * .Ydb.Coordination.SessionResponse.AcquireSemaphoreResult acquire_semaphore_result = 9; * @return Whether the acquireSemaphoreResult field is set. */ @java.lang.Override public boolean hasAcquireSemaphoreResult() { return responseCase_ == 9; } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphoreResult acquire_semaphore_result = 9; * @return The acquireSemaphoreResult. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult getAcquireSemaphoreResult() { if (acquireSemaphoreResultBuilder_ == null) { if (responseCase_ == 9) { return (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.getDefaultInstance(); } else { if (responseCase_ == 9) { return acquireSemaphoreResultBuilder_.getMessage(); } return com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphoreResult acquire_semaphore_result = 9; */ public Builder setAcquireSemaphoreResult(com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult value) { if (acquireSemaphoreResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { acquireSemaphoreResultBuilder_.setMessage(value); } responseCase_ = 9; return this; } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphoreResult acquire_semaphore_result = 9; */ public Builder setAcquireSemaphoreResult( com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.Builder builderForValue) { if (acquireSemaphoreResultBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { acquireSemaphoreResultBuilder_.setMessage(builderForValue.build()); } responseCase_ = 9; return this; } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphoreResult acquire_semaphore_result = 9; */ public Builder mergeAcquireSemaphoreResult(com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult value) { if (acquireSemaphoreResultBuilder_ == null) { if (responseCase_ == 9 && response_ != com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.newBuilder((com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 9) { acquireSemaphoreResultBuilder_.mergeFrom(value); } acquireSemaphoreResultBuilder_.setMessage(value); } responseCase_ = 9; return this; } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphoreResult acquire_semaphore_result = 9; */ public Builder clearAcquireSemaphoreResult() { if (acquireSemaphoreResultBuilder_ == null) { if (responseCase_ == 9) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 9) { responseCase_ = 0; response_ = null; } acquireSemaphoreResultBuilder_.clear(); } return this; } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphoreResult acquire_semaphore_result = 9; */ public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.Builder getAcquireSemaphoreResultBuilder() { return getAcquireSemaphoreResultFieldBuilder().getBuilder(); } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphoreResult acquire_semaphore_result = 9; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResultOrBuilder getAcquireSemaphoreResultOrBuilder() { if ((responseCase_ == 9) && (acquireSemaphoreResultBuilder_ != null)) { return acquireSemaphoreResultBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 9) { return (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.AcquireSemaphoreResult acquire_semaphore_result = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResultOrBuilder> getAcquireSemaphoreResultFieldBuilder() { if (acquireSemaphoreResultBuilder_ == null) { if (!(responseCase_ == 9)) { response_ = com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.getDefaultInstance(); } acquireSemaphoreResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResultOrBuilder>( (com.yandex.ydb.coordination.SessionResponse.AcquireSemaphoreResult) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 9; onChanged();; return acquireSemaphoreResultBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResultOrBuilder> releaseSemaphoreResultBuilder_; /** * .Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult release_semaphore_result = 10; * @return Whether the releaseSemaphoreResult field is set. */ @java.lang.Override public boolean hasReleaseSemaphoreResult() { return responseCase_ == 10; } /** * .Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult release_semaphore_result = 10; * @return The releaseSemaphoreResult. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult getReleaseSemaphoreResult() { if (releaseSemaphoreResultBuilder_ == null) { if (responseCase_ == 10) { return (com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.getDefaultInstance(); } else { if (responseCase_ == 10) { return releaseSemaphoreResultBuilder_.getMessage(); } return com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult release_semaphore_result = 10; */ public Builder setReleaseSemaphoreResult(com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult value) { if (releaseSemaphoreResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { releaseSemaphoreResultBuilder_.setMessage(value); } responseCase_ = 10; return this; } /** * .Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult release_semaphore_result = 10; */ public Builder setReleaseSemaphoreResult( com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.Builder builderForValue) { if (releaseSemaphoreResultBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { releaseSemaphoreResultBuilder_.setMessage(builderForValue.build()); } responseCase_ = 10; return this; } /** * .Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult release_semaphore_result = 10; */ public Builder mergeReleaseSemaphoreResult(com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult value) { if (releaseSemaphoreResultBuilder_ == null) { if (responseCase_ == 10 && response_ != com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.newBuilder((com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 10) { releaseSemaphoreResultBuilder_.mergeFrom(value); } releaseSemaphoreResultBuilder_.setMessage(value); } responseCase_ = 10; return this; } /** * .Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult release_semaphore_result = 10; */ public Builder clearReleaseSemaphoreResult() { if (releaseSemaphoreResultBuilder_ == null) { if (responseCase_ == 10) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 10) { responseCase_ = 0; response_ = null; } releaseSemaphoreResultBuilder_.clear(); } return this; } /** * .Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult release_semaphore_result = 10; */ public com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.Builder getReleaseSemaphoreResultBuilder() { return getReleaseSemaphoreResultFieldBuilder().getBuilder(); } /** * .Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult release_semaphore_result = 10; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResultOrBuilder getReleaseSemaphoreResultOrBuilder() { if ((responseCase_ == 10) && (releaseSemaphoreResultBuilder_ != null)) { return releaseSemaphoreResultBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 10) { return (com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.ReleaseSemaphoreResult release_semaphore_result = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResultOrBuilder> getReleaseSemaphoreResultFieldBuilder() { if (releaseSemaphoreResultBuilder_ == null) { if (!(responseCase_ == 10)) { response_ = com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.getDefaultInstance(); } releaseSemaphoreResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResultOrBuilder>( (com.yandex.ydb.coordination.SessionResponse.ReleaseSemaphoreResult) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 10; onChanged();; return releaseSemaphoreResultBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResultOrBuilder> describeSemaphoreResultBuilder_; /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreResult describe_semaphore_result = 11; * @return Whether the describeSemaphoreResult field is set. */ @java.lang.Override public boolean hasDescribeSemaphoreResult() { return responseCase_ == 11; } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreResult describe_semaphore_result = 11; * @return The describeSemaphoreResult. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult getDescribeSemaphoreResult() { if (describeSemaphoreResultBuilder_ == null) { if (responseCase_ == 11) { return (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.getDefaultInstance(); } else { if (responseCase_ == 11) { return describeSemaphoreResultBuilder_.getMessage(); } return com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreResult describe_semaphore_result = 11; */ public Builder setDescribeSemaphoreResult(com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult value) { if (describeSemaphoreResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { describeSemaphoreResultBuilder_.setMessage(value); } responseCase_ = 11; return this; } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreResult describe_semaphore_result = 11; */ public Builder setDescribeSemaphoreResult( com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.Builder builderForValue) { if (describeSemaphoreResultBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { describeSemaphoreResultBuilder_.setMessage(builderForValue.build()); } responseCase_ = 11; return this; } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreResult describe_semaphore_result = 11; */ public Builder mergeDescribeSemaphoreResult(com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult value) { if (describeSemaphoreResultBuilder_ == null) { if (responseCase_ == 11 && response_ != com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.newBuilder((com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 11) { describeSemaphoreResultBuilder_.mergeFrom(value); } describeSemaphoreResultBuilder_.setMessage(value); } responseCase_ = 11; return this; } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreResult describe_semaphore_result = 11; */ public Builder clearDescribeSemaphoreResult() { if (describeSemaphoreResultBuilder_ == null) { if (responseCase_ == 11) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 11) { responseCase_ = 0; response_ = null; } describeSemaphoreResultBuilder_.clear(); } return this; } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreResult describe_semaphore_result = 11; */ public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.Builder getDescribeSemaphoreResultBuilder() { return getDescribeSemaphoreResultFieldBuilder().getBuilder(); } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreResult describe_semaphore_result = 11; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResultOrBuilder getDescribeSemaphoreResultOrBuilder() { if ((responseCase_ == 11) && (describeSemaphoreResultBuilder_ != null)) { return describeSemaphoreResultBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 11) { return (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreResult describe_semaphore_result = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResultOrBuilder> getDescribeSemaphoreResultFieldBuilder() { if (describeSemaphoreResultBuilder_ == null) { if (!(responseCase_ == 11)) { response_ = com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.getDefaultInstance(); } describeSemaphoreResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResultOrBuilder>( (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreResult) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 11; onChanged();; return describeSemaphoreResultBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.Builder, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChangedOrBuilder> describeSemaphoreChangedBuilder_; /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged describe_semaphore_changed = 12; * @return Whether the describeSemaphoreChanged field is set. */ @java.lang.Override public boolean hasDescribeSemaphoreChanged() { return responseCase_ == 12; } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged describe_semaphore_changed = 12; * @return The describeSemaphoreChanged. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged getDescribeSemaphoreChanged() { if (describeSemaphoreChangedBuilder_ == null) { if (responseCase_ == 12) { return (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged) response_; } return com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.getDefaultInstance(); } else { if (responseCase_ == 12) { return describeSemaphoreChangedBuilder_.getMessage(); } return com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged describe_semaphore_changed = 12; */ public Builder setDescribeSemaphoreChanged(com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged value) { if (describeSemaphoreChangedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { describeSemaphoreChangedBuilder_.setMessage(value); } responseCase_ = 12; return this; } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged describe_semaphore_changed = 12; */ public Builder setDescribeSemaphoreChanged( com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.Builder builderForValue) { if (describeSemaphoreChangedBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { describeSemaphoreChangedBuilder_.setMessage(builderForValue.build()); } responseCase_ = 12; return this; } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged describe_semaphore_changed = 12; */ public Builder mergeDescribeSemaphoreChanged(com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged value) { if (describeSemaphoreChangedBuilder_ == null) { if (responseCase_ == 12 && response_ != com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.newBuilder((com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 12) { describeSemaphoreChangedBuilder_.mergeFrom(value); } describeSemaphoreChangedBuilder_.setMessage(value); } responseCase_ = 12; return this; } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged describe_semaphore_changed = 12; */ public Builder clearDescribeSemaphoreChanged() { if (describeSemaphoreChangedBuilder_ == null) { if (responseCase_ == 12) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 12) { responseCase_ = 0; response_ = null; } describeSemaphoreChangedBuilder_.clear(); } return this; } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged describe_semaphore_changed = 12; */ public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.Builder getDescribeSemaphoreChangedBuilder() { return getDescribeSemaphoreChangedFieldBuilder().getBuilder(); } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged describe_semaphore_changed = 12; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChangedOrBuilder getDescribeSemaphoreChangedOrBuilder() { if ((responseCase_ == 12) && (describeSemaphoreChangedBuilder_ != null)) { return describeSemaphoreChangedBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 12) { return (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged) response_; } return com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.DescribeSemaphoreChanged describe_semaphore_changed = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.Builder, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChangedOrBuilder> getDescribeSemaphoreChangedFieldBuilder() { if (describeSemaphoreChangedBuilder_ == null) { if (!(responseCase_ == 12)) { response_ = com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.getDefaultInstance(); } describeSemaphoreChangedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged.Builder, com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChangedOrBuilder>( (com.yandex.ydb.coordination.SessionResponse.DescribeSemaphoreChanged) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 12; onChanged();; return describeSemaphoreChangedBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResultOrBuilder> createSemaphoreResultBuilder_; /** * .Ydb.Coordination.SessionResponse.CreateSemaphoreResult create_semaphore_result = 13; * @return Whether the createSemaphoreResult field is set. */ @java.lang.Override public boolean hasCreateSemaphoreResult() { return responseCase_ == 13; } /** * .Ydb.Coordination.SessionResponse.CreateSemaphoreResult create_semaphore_result = 13; * @return The createSemaphoreResult. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult getCreateSemaphoreResult() { if (createSemaphoreResultBuilder_ == null) { if (responseCase_ == 13) { return (com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.getDefaultInstance(); } else { if (responseCase_ == 13) { return createSemaphoreResultBuilder_.getMessage(); } return com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.CreateSemaphoreResult create_semaphore_result = 13; */ public Builder setCreateSemaphoreResult(com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult value) { if (createSemaphoreResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { createSemaphoreResultBuilder_.setMessage(value); } responseCase_ = 13; return this; } /** * .Ydb.Coordination.SessionResponse.CreateSemaphoreResult create_semaphore_result = 13; */ public Builder setCreateSemaphoreResult( com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.Builder builderForValue) { if (createSemaphoreResultBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { createSemaphoreResultBuilder_.setMessage(builderForValue.build()); } responseCase_ = 13; return this; } /** * .Ydb.Coordination.SessionResponse.CreateSemaphoreResult create_semaphore_result = 13; */ public Builder mergeCreateSemaphoreResult(com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult value) { if (createSemaphoreResultBuilder_ == null) { if (responseCase_ == 13 && response_ != com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.newBuilder((com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 13) { createSemaphoreResultBuilder_.mergeFrom(value); } createSemaphoreResultBuilder_.setMessage(value); } responseCase_ = 13; return this; } /** * .Ydb.Coordination.SessionResponse.CreateSemaphoreResult create_semaphore_result = 13; */ public Builder clearCreateSemaphoreResult() { if (createSemaphoreResultBuilder_ == null) { if (responseCase_ == 13) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 13) { responseCase_ = 0; response_ = null; } createSemaphoreResultBuilder_.clear(); } return this; } /** * .Ydb.Coordination.SessionResponse.CreateSemaphoreResult create_semaphore_result = 13; */ public com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.Builder getCreateSemaphoreResultBuilder() { return getCreateSemaphoreResultFieldBuilder().getBuilder(); } /** * .Ydb.Coordination.SessionResponse.CreateSemaphoreResult create_semaphore_result = 13; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResultOrBuilder getCreateSemaphoreResultOrBuilder() { if ((responseCase_ == 13) && (createSemaphoreResultBuilder_ != null)) { return createSemaphoreResultBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 13) { return (com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.CreateSemaphoreResult create_semaphore_result = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResultOrBuilder> getCreateSemaphoreResultFieldBuilder() { if (createSemaphoreResultBuilder_ == null) { if (!(responseCase_ == 13)) { response_ = com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.getDefaultInstance(); } createSemaphoreResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResultOrBuilder>( (com.yandex.ydb.coordination.SessionResponse.CreateSemaphoreResult) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 13; onChanged();; return createSemaphoreResultBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResultOrBuilder> updateSemaphoreResultBuilder_; /** * .Ydb.Coordination.SessionResponse.UpdateSemaphoreResult update_semaphore_result = 14; * @return Whether the updateSemaphoreResult field is set. */ @java.lang.Override public boolean hasUpdateSemaphoreResult() { return responseCase_ == 14; } /** * .Ydb.Coordination.SessionResponse.UpdateSemaphoreResult update_semaphore_result = 14; * @return The updateSemaphoreResult. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult getUpdateSemaphoreResult() { if (updateSemaphoreResultBuilder_ == null) { if (responseCase_ == 14) { return (com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.getDefaultInstance(); } else { if (responseCase_ == 14) { return updateSemaphoreResultBuilder_.getMessage(); } return com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.UpdateSemaphoreResult update_semaphore_result = 14; */ public Builder setUpdateSemaphoreResult(com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult value) { if (updateSemaphoreResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { updateSemaphoreResultBuilder_.setMessage(value); } responseCase_ = 14; return this; } /** * .Ydb.Coordination.SessionResponse.UpdateSemaphoreResult update_semaphore_result = 14; */ public Builder setUpdateSemaphoreResult( com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.Builder builderForValue) { if (updateSemaphoreResultBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { updateSemaphoreResultBuilder_.setMessage(builderForValue.build()); } responseCase_ = 14; return this; } /** * .Ydb.Coordination.SessionResponse.UpdateSemaphoreResult update_semaphore_result = 14; */ public Builder mergeUpdateSemaphoreResult(com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult value) { if (updateSemaphoreResultBuilder_ == null) { if (responseCase_ == 14 && response_ != com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.newBuilder((com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 14) { updateSemaphoreResultBuilder_.mergeFrom(value); } updateSemaphoreResultBuilder_.setMessage(value); } responseCase_ = 14; return this; } /** * .Ydb.Coordination.SessionResponse.UpdateSemaphoreResult update_semaphore_result = 14; */ public Builder clearUpdateSemaphoreResult() { if (updateSemaphoreResultBuilder_ == null) { if (responseCase_ == 14) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 14) { responseCase_ = 0; response_ = null; } updateSemaphoreResultBuilder_.clear(); } return this; } /** * .Ydb.Coordination.SessionResponse.UpdateSemaphoreResult update_semaphore_result = 14; */ public com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.Builder getUpdateSemaphoreResultBuilder() { return getUpdateSemaphoreResultFieldBuilder().getBuilder(); } /** * .Ydb.Coordination.SessionResponse.UpdateSemaphoreResult update_semaphore_result = 14; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResultOrBuilder getUpdateSemaphoreResultOrBuilder() { if ((responseCase_ == 14) && (updateSemaphoreResultBuilder_ != null)) { return updateSemaphoreResultBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 14) { return (com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.UpdateSemaphoreResult update_semaphore_result = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResultOrBuilder> getUpdateSemaphoreResultFieldBuilder() { if (updateSemaphoreResultBuilder_ == null) { if (!(responseCase_ == 14)) { response_ = com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.getDefaultInstance(); } updateSemaphoreResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResultOrBuilder>( (com.yandex.ydb.coordination.SessionResponse.UpdateSemaphoreResult) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 14; onChanged();; return updateSemaphoreResultBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResultOrBuilder> deleteSemaphoreResultBuilder_; /** * .Ydb.Coordination.SessionResponse.DeleteSemaphoreResult delete_semaphore_result = 15; * @return Whether the deleteSemaphoreResult field is set. */ @java.lang.Override public boolean hasDeleteSemaphoreResult() { return responseCase_ == 15; } /** * .Ydb.Coordination.SessionResponse.DeleteSemaphoreResult delete_semaphore_result = 15; * @return The deleteSemaphoreResult. */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult getDeleteSemaphoreResult() { if (deleteSemaphoreResultBuilder_ == null) { if (responseCase_ == 15) { return (com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.getDefaultInstance(); } else { if (responseCase_ == 15) { return deleteSemaphoreResultBuilder_.getMessage(); } return com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.DeleteSemaphoreResult delete_semaphore_result = 15; */ public Builder setDeleteSemaphoreResult(com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult value) { if (deleteSemaphoreResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { deleteSemaphoreResultBuilder_.setMessage(value); } responseCase_ = 15; return this; } /** * .Ydb.Coordination.SessionResponse.DeleteSemaphoreResult delete_semaphore_result = 15; */ public Builder setDeleteSemaphoreResult( com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.Builder builderForValue) { if (deleteSemaphoreResultBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { deleteSemaphoreResultBuilder_.setMessage(builderForValue.build()); } responseCase_ = 15; return this; } /** * .Ydb.Coordination.SessionResponse.DeleteSemaphoreResult delete_semaphore_result = 15; */ public Builder mergeDeleteSemaphoreResult(com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult value) { if (deleteSemaphoreResultBuilder_ == null) { if (responseCase_ == 15 && response_ != com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.newBuilder((com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 15) { deleteSemaphoreResultBuilder_.mergeFrom(value); } deleteSemaphoreResultBuilder_.setMessage(value); } responseCase_ = 15; return this; } /** * .Ydb.Coordination.SessionResponse.DeleteSemaphoreResult delete_semaphore_result = 15; */ public Builder clearDeleteSemaphoreResult() { if (deleteSemaphoreResultBuilder_ == null) { if (responseCase_ == 15) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 15) { responseCase_ = 0; response_ = null; } deleteSemaphoreResultBuilder_.clear(); } return this; } /** * .Ydb.Coordination.SessionResponse.DeleteSemaphoreResult delete_semaphore_result = 15; */ public com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.Builder getDeleteSemaphoreResultBuilder() { return getDeleteSemaphoreResultFieldBuilder().getBuilder(); } /** * .Ydb.Coordination.SessionResponse.DeleteSemaphoreResult delete_semaphore_result = 15; */ @java.lang.Override public com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResultOrBuilder getDeleteSemaphoreResultOrBuilder() { if ((responseCase_ == 15) && (deleteSemaphoreResultBuilder_ != null)) { return deleteSemaphoreResultBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 15) { return (com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult) response_; } return com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.getDefaultInstance(); } } /** * .Ydb.Coordination.SessionResponse.DeleteSemaphoreResult delete_semaphore_result = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResultOrBuilder> getDeleteSemaphoreResultFieldBuilder() { if (deleteSemaphoreResultBuilder_ == null) { if (!(responseCase_ == 15)) { response_ = com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.getDefaultInstance(); } deleteSemaphoreResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult, com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult.Builder, com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResultOrBuilder>( (com.yandex.ydb.coordination.SessionResponse.DeleteSemaphoreResult) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 15; onChanged();; return deleteSemaphoreResultBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> unsupported16Builder_; /** * .Ydb.Coordination.Unsupported unsupported_16 = 16; * @return Whether the unsupported16 field is set. */ @java.lang.Override public boolean hasUnsupported16() { return responseCase_ == 16; } /** * .Ydb.Coordination.Unsupported unsupported_16 = 16; * @return The unsupported16. */ @java.lang.Override public com.yandex.ydb.coordination.Unsupported getUnsupported16() { if (unsupported16Builder_ == null) { if (responseCase_ == 16) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } else { if (responseCase_ == 16) { return unsupported16Builder_.getMessage(); } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } } /** * .Ydb.Coordination.Unsupported unsupported_16 = 16; */ public Builder setUnsupported16(com.yandex.ydb.coordination.Unsupported value) { if (unsupported16Builder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { unsupported16Builder_.setMessage(value); } responseCase_ = 16; return this; } /** * .Ydb.Coordination.Unsupported unsupported_16 = 16; */ public Builder setUnsupported16( com.yandex.ydb.coordination.Unsupported.Builder builderForValue) { if (unsupported16Builder_ == null) { response_ = builderForValue.build(); onChanged(); } else { unsupported16Builder_.setMessage(builderForValue.build()); } responseCase_ = 16; return this; } /** * .Ydb.Coordination.Unsupported unsupported_16 = 16; */ public Builder mergeUnsupported16(com.yandex.ydb.coordination.Unsupported value) { if (unsupported16Builder_ == null) { if (responseCase_ == 16 && response_ != com.yandex.ydb.coordination.Unsupported.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.Unsupported.newBuilder((com.yandex.ydb.coordination.Unsupported) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 16) { unsupported16Builder_.mergeFrom(value); } unsupported16Builder_.setMessage(value); } responseCase_ = 16; return this; } /** * .Ydb.Coordination.Unsupported unsupported_16 = 16; */ public Builder clearUnsupported16() { if (unsupported16Builder_ == null) { if (responseCase_ == 16) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 16) { responseCase_ = 0; response_ = null; } unsupported16Builder_.clear(); } return this; } /** * .Ydb.Coordination.Unsupported unsupported_16 = 16; */ public com.yandex.ydb.coordination.Unsupported.Builder getUnsupported16Builder() { return getUnsupported16FieldBuilder().getBuilder(); } /** * .Ydb.Coordination.Unsupported unsupported_16 = 16; */ @java.lang.Override public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported16OrBuilder() { if ((responseCase_ == 16) && (unsupported16Builder_ != null)) { return unsupported16Builder_.getMessageOrBuilder(); } else { if (responseCase_ == 16) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } } /** * .Ydb.Coordination.Unsupported unsupported_16 = 16; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> getUnsupported16FieldBuilder() { if (unsupported16Builder_ == null) { if (!(responseCase_ == 16)) { response_ = com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } unsupported16Builder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>( (com.yandex.ydb.coordination.Unsupported) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 16; onChanged();; return unsupported16Builder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> unsupported17Builder_; /** * .Ydb.Coordination.Unsupported unsupported_17 = 17; * @return Whether the unsupported17 field is set. */ @java.lang.Override public boolean hasUnsupported17() { return responseCase_ == 17; } /** * .Ydb.Coordination.Unsupported unsupported_17 = 17; * @return The unsupported17. */ @java.lang.Override public com.yandex.ydb.coordination.Unsupported getUnsupported17() { if (unsupported17Builder_ == null) { if (responseCase_ == 17) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } else { if (responseCase_ == 17) { return unsupported17Builder_.getMessage(); } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } } /** * .Ydb.Coordination.Unsupported unsupported_17 = 17; */ public Builder setUnsupported17(com.yandex.ydb.coordination.Unsupported value) { if (unsupported17Builder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { unsupported17Builder_.setMessage(value); } responseCase_ = 17; return this; } /** * .Ydb.Coordination.Unsupported unsupported_17 = 17; */ public Builder setUnsupported17( com.yandex.ydb.coordination.Unsupported.Builder builderForValue) { if (unsupported17Builder_ == null) { response_ = builderForValue.build(); onChanged(); } else { unsupported17Builder_.setMessage(builderForValue.build()); } responseCase_ = 17; return this; } /** * .Ydb.Coordination.Unsupported unsupported_17 = 17; */ public Builder mergeUnsupported17(com.yandex.ydb.coordination.Unsupported value) { if (unsupported17Builder_ == null) { if (responseCase_ == 17 && response_ != com.yandex.ydb.coordination.Unsupported.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.Unsupported.newBuilder((com.yandex.ydb.coordination.Unsupported) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 17) { unsupported17Builder_.mergeFrom(value); } unsupported17Builder_.setMessage(value); } responseCase_ = 17; return this; } /** * .Ydb.Coordination.Unsupported unsupported_17 = 17; */ public Builder clearUnsupported17() { if (unsupported17Builder_ == null) { if (responseCase_ == 17) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 17) { responseCase_ = 0; response_ = null; } unsupported17Builder_.clear(); } return this; } /** * .Ydb.Coordination.Unsupported unsupported_17 = 17; */ public com.yandex.ydb.coordination.Unsupported.Builder getUnsupported17Builder() { return getUnsupported17FieldBuilder().getBuilder(); } /** * .Ydb.Coordination.Unsupported unsupported_17 = 17; */ @java.lang.Override public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported17OrBuilder() { if ((responseCase_ == 17) && (unsupported17Builder_ != null)) { return unsupported17Builder_.getMessageOrBuilder(); } else { if (responseCase_ == 17) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } } /** * .Ydb.Coordination.Unsupported unsupported_17 = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> getUnsupported17FieldBuilder() { if (unsupported17Builder_ == null) { if (!(responseCase_ == 17)) { response_ = com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } unsupported17Builder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>( (com.yandex.ydb.coordination.Unsupported) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 17; onChanged();; return unsupported17Builder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> unsupported18Builder_; /** * .Ydb.Coordination.Unsupported unsupported_18 = 18; * @return Whether the unsupported18 field is set. */ @java.lang.Override public boolean hasUnsupported18() { return responseCase_ == 18; } /** * .Ydb.Coordination.Unsupported unsupported_18 = 18; * @return The unsupported18. */ @java.lang.Override public com.yandex.ydb.coordination.Unsupported getUnsupported18() { if (unsupported18Builder_ == null) { if (responseCase_ == 18) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } else { if (responseCase_ == 18) { return unsupported18Builder_.getMessage(); } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } } /** * .Ydb.Coordination.Unsupported unsupported_18 = 18; */ public Builder setUnsupported18(com.yandex.ydb.coordination.Unsupported value) { if (unsupported18Builder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { unsupported18Builder_.setMessage(value); } responseCase_ = 18; return this; } /** * .Ydb.Coordination.Unsupported unsupported_18 = 18; */ public Builder setUnsupported18( com.yandex.ydb.coordination.Unsupported.Builder builderForValue) { if (unsupported18Builder_ == null) { response_ = builderForValue.build(); onChanged(); } else { unsupported18Builder_.setMessage(builderForValue.build()); } responseCase_ = 18; return this; } /** * .Ydb.Coordination.Unsupported unsupported_18 = 18; */ public Builder mergeUnsupported18(com.yandex.ydb.coordination.Unsupported value) { if (unsupported18Builder_ == null) { if (responseCase_ == 18 && response_ != com.yandex.ydb.coordination.Unsupported.getDefaultInstance()) { response_ = com.yandex.ydb.coordination.Unsupported.newBuilder((com.yandex.ydb.coordination.Unsupported) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 18) { unsupported18Builder_.mergeFrom(value); } unsupported18Builder_.setMessage(value); } responseCase_ = 18; return this; } /** * .Ydb.Coordination.Unsupported unsupported_18 = 18; */ public Builder clearUnsupported18() { if (unsupported18Builder_ == null) { if (responseCase_ == 18) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 18) { responseCase_ = 0; response_ = null; } unsupported18Builder_.clear(); } return this; } /** * .Ydb.Coordination.Unsupported unsupported_18 = 18; */ public com.yandex.ydb.coordination.Unsupported.Builder getUnsupported18Builder() { return getUnsupported18FieldBuilder().getBuilder(); } /** * .Ydb.Coordination.Unsupported unsupported_18 = 18; */ @java.lang.Override public com.yandex.ydb.coordination.UnsupportedOrBuilder getUnsupported18OrBuilder() { if ((responseCase_ == 18) && (unsupported18Builder_ != null)) { return unsupported18Builder_.getMessageOrBuilder(); } else { if (responseCase_ == 18) { return (com.yandex.ydb.coordination.Unsupported) response_; } return com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } } /** * .Ydb.Coordination.Unsupported unsupported_18 = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder> getUnsupported18FieldBuilder() { if (unsupported18Builder_ == null) { if (!(responseCase_ == 18)) { response_ = com.yandex.ydb.coordination.Unsupported.getDefaultInstance(); } unsupported18Builder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yandex.ydb.coordination.Unsupported, com.yandex.ydb.coordination.Unsupported.Builder, com.yandex.ydb.coordination.UnsupportedOrBuilder>( (com.yandex.ydb.coordination.Unsupported) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 18; onChanged();; return unsupported18Builder_; } @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.SessionResponse) } // @@protoc_insertion_point(class_scope:Ydb.Coordination.SessionResponse) private static final com.yandex.ydb.coordination.SessionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.coordination.SessionResponse(); } public static com.yandex.ydb.coordination.SessionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SessionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SessionResponse(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.SessionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy