Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
tech.ydb.proto.query.YdbQuery Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: protos/ydb_query.proto
package tech.ydb.proto.query;
public final class YdbQuery {
private YdbQuery() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code Ydb.Query.Syntax}
*/
public enum Syntax
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SYNTAX_UNSPECIFIED = 0;
*/
SYNTAX_UNSPECIFIED(0),
/**
*
* YQL
*
*
* SYNTAX_YQL_V1 = 1;
*/
SYNTAX_YQL_V1(1),
/**
*
* PostgresQL
*
*
* SYNTAX_PG = 2;
*/
SYNTAX_PG(2),
UNRECOGNIZED(-1),
;
/**
* SYNTAX_UNSPECIFIED = 0;
*/
public static final int SYNTAX_UNSPECIFIED_VALUE = 0;
/**
*
* YQL
*
*
* SYNTAX_YQL_V1 = 1;
*/
public static final int SYNTAX_YQL_V1_VALUE = 1;
/**
*
* PostgresQL
*
*
* SYNTAX_PG = 2;
*/
public static final int SYNTAX_PG_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Syntax valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Syntax forNumber(int value) {
switch (value) {
case 0: return SYNTAX_UNSPECIFIED;
case 1: return SYNTAX_YQL_V1;
case 2: return SYNTAX_PG;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Syntax> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Syntax findValueByNumber(int number) {
return Syntax.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.getDescriptor().getEnumTypes().get(0);
}
private static final Syntax[] VALUES = values();
public static Syntax valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Syntax(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Query.Syntax)
}
/**
* Protobuf enum {@code Ydb.Query.ExecMode}
*/
public enum ExecMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* EXEC_MODE_UNSPECIFIED = 0;
*/
EXEC_MODE_UNSPECIFIED(0),
/**
* EXEC_MODE_PARSE = 10;
*/
EXEC_MODE_PARSE(10),
/**
* EXEC_MODE_VALIDATE = 20;
*/
EXEC_MODE_VALIDATE(20),
/**
* EXEC_MODE_EXPLAIN = 30;
*/
EXEC_MODE_EXPLAIN(30),
/**
* EXEC_MODE_EXECUTE = 50;
*/
EXEC_MODE_EXECUTE(50),
UNRECOGNIZED(-1),
;
/**
* EXEC_MODE_UNSPECIFIED = 0;
*/
public static final int EXEC_MODE_UNSPECIFIED_VALUE = 0;
/**
* EXEC_MODE_PARSE = 10;
*/
public static final int EXEC_MODE_PARSE_VALUE = 10;
/**
* EXEC_MODE_VALIDATE = 20;
*/
public static final int EXEC_MODE_VALIDATE_VALUE = 20;
/**
* EXEC_MODE_EXPLAIN = 30;
*/
public static final int EXEC_MODE_EXPLAIN_VALUE = 30;
/**
* EXEC_MODE_EXECUTE = 50;
*/
public static final int EXEC_MODE_EXECUTE_VALUE = 50;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ExecMode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ExecMode forNumber(int value) {
switch (value) {
case 0: return EXEC_MODE_UNSPECIFIED;
case 10: return EXEC_MODE_PARSE;
case 20: return EXEC_MODE_VALIDATE;
case 30: return EXEC_MODE_EXPLAIN;
case 50: return EXEC_MODE_EXECUTE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ExecMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ExecMode findValueByNumber(int number) {
return ExecMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.getDescriptor().getEnumTypes().get(1);
}
private static final ExecMode[] VALUES = values();
public static ExecMode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ExecMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Query.ExecMode)
}
/**
* Protobuf enum {@code Ydb.Query.StatsMode}
*/
public enum StatsMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATS_MODE_UNSPECIFIED = 0;
*/
STATS_MODE_UNSPECIFIED(0),
/**
*
* Stats collection is disabled
*
*
* STATS_MODE_NONE = 10;
*/
STATS_MODE_NONE(10),
/**
*
* Aggregated stats of reads, updates and deletes per table
*
*
* STATS_MODE_BASIC = 20;
*/
STATS_MODE_BASIC(20),
/**
*
* Add execution stats and plan on top of STATS_MODE_BASIC
*
*
* STATS_MODE_FULL = 30;
*/
STATS_MODE_FULL(30),
/**
*
* Detailed execution stats including stats for individual tasks and channels
*
*
* STATS_MODE_PROFILE = 40;
*/
STATS_MODE_PROFILE(40),
UNRECOGNIZED(-1),
;
/**
* STATS_MODE_UNSPECIFIED = 0;
*/
public static final int STATS_MODE_UNSPECIFIED_VALUE = 0;
/**
*
* Stats collection is disabled
*
*
* STATS_MODE_NONE = 10;
*/
public static final int STATS_MODE_NONE_VALUE = 10;
/**
*
* Aggregated stats of reads, updates and deletes per table
*
*
* STATS_MODE_BASIC = 20;
*/
public static final int STATS_MODE_BASIC_VALUE = 20;
/**
*
* Add execution stats and plan on top of STATS_MODE_BASIC
*
*
* STATS_MODE_FULL = 30;
*/
public static final int STATS_MODE_FULL_VALUE = 30;
/**
*
* Detailed execution stats including stats for individual tasks and channels
*
*
* STATS_MODE_PROFILE = 40;
*/
public static final int STATS_MODE_PROFILE_VALUE = 40;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StatsMode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static StatsMode forNumber(int value) {
switch (value) {
case 0: return STATS_MODE_UNSPECIFIED;
case 10: return STATS_MODE_NONE;
case 20: return STATS_MODE_BASIC;
case 30: return STATS_MODE_FULL;
case 40: return STATS_MODE_PROFILE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
StatsMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public StatsMode findValueByNumber(int number) {
return StatsMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.getDescriptor().getEnumTypes().get(2);
}
private static final StatsMode[] VALUES = values();
public static StatsMode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private StatsMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Query.StatsMode)
}
/**
* Protobuf enum {@code Ydb.Query.ExecStatus}
*/
public enum ExecStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* EXEC_STATUS_UNSPECIFIED = 0;
*/
EXEC_STATUS_UNSPECIFIED(0),
/**
* EXEC_STATUS_STARTING = 10;
*/
EXEC_STATUS_STARTING(10),
/**
* EXEC_STATUS_ABORTED = 20;
*/
EXEC_STATUS_ABORTED(20),
/**
* EXEC_STATUS_CANCELLED = 30;
*/
EXEC_STATUS_CANCELLED(30),
/**
* EXEC_STATUS_COMPLETED = 40;
*/
EXEC_STATUS_COMPLETED(40),
/**
* EXEC_STATUS_FAILED = 50;
*/
EXEC_STATUS_FAILED(50),
UNRECOGNIZED(-1),
;
/**
* EXEC_STATUS_UNSPECIFIED = 0;
*/
public static final int EXEC_STATUS_UNSPECIFIED_VALUE = 0;
/**
* EXEC_STATUS_STARTING = 10;
*/
public static final int EXEC_STATUS_STARTING_VALUE = 10;
/**
* EXEC_STATUS_ABORTED = 20;
*/
public static final int EXEC_STATUS_ABORTED_VALUE = 20;
/**
* EXEC_STATUS_CANCELLED = 30;
*/
public static final int EXEC_STATUS_CANCELLED_VALUE = 30;
/**
* EXEC_STATUS_COMPLETED = 40;
*/
public static final int EXEC_STATUS_COMPLETED_VALUE = 40;
/**
* EXEC_STATUS_FAILED = 50;
*/
public static final int EXEC_STATUS_FAILED_VALUE = 50;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ExecStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ExecStatus forNumber(int value) {
switch (value) {
case 0: return EXEC_STATUS_UNSPECIFIED;
case 10: return EXEC_STATUS_STARTING;
case 20: return EXEC_STATUS_ABORTED;
case 30: return EXEC_STATUS_CANCELLED;
case 40: return EXEC_STATUS_COMPLETED;
case 50: return EXEC_STATUS_FAILED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ExecStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ExecStatus findValueByNumber(int number) {
return ExecStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.getDescriptor().getEnumTypes().get(3);
}
private static final ExecStatus[] VALUES = values();
public static ExecStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ExecStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Query.ExecStatus)
}
public interface CreateSessionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.CreateSessionRequest)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code Ydb.Query.CreateSessionRequest}
*/
public static final class CreateSessionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.CreateSessionRequest)
CreateSessionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateSessionRequest.newBuilder() to construct.
private CreateSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateSessionRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateSessionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CreateSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CreateSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.CreateSessionRequest.class, tech.ydb.proto.query.YdbQuery.CreateSessionRequest.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.CreateSessionRequest)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.CreateSessionRequest other = (tech.ydb.proto.query.YdbQuery.CreateSessionRequest) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.CreateSessionRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.CreateSessionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.CreateSessionRequest)
tech.ydb.proto.query.YdbQuery.CreateSessionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CreateSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CreateSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.CreateSessionRequest.class, tech.ydb.proto.query.YdbQuery.CreateSessionRequest.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.CreateSessionRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CreateSessionRequest_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CreateSessionRequest getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.CreateSessionRequest.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CreateSessionRequest build() {
tech.ydb.proto.query.YdbQuery.CreateSessionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CreateSessionRequest buildPartial() {
tech.ydb.proto.query.YdbQuery.CreateSessionRequest result = new tech.ydb.proto.query.YdbQuery.CreateSessionRequest(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.CreateSessionRequest) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.CreateSessionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.CreateSessionRequest other) {
if (other == tech.ydb.proto.query.YdbQuery.CreateSessionRequest.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@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.Query.CreateSessionRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.CreateSessionRequest)
private static final tech.ydb.proto.query.YdbQuery.CreateSessionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.CreateSessionRequest();
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateSessionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CreateSessionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateSessionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.CreateSessionResponse)
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.
*/
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List
getIssuesList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index);
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
int getIssuesCount();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index);
/**
*
* Identifier of created session
*
*
* string session_id = 3 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
java.lang.String getSessionId();
/**
*
* Identifier of created session
*
*
* string session_id = 3 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
com.google.protobuf.ByteString
getSessionIdBytes();
/**
*
* Identifier node where session was created
*
*
* int64 node_id = 4 [(.Ydb.value) = ">= 0"];
* @return The nodeId.
*/
long getNodeId();
}
/**
* Protobuf type {@code Ydb.Query.CreateSessionResponse}
*/
public static final class CreateSessionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.CreateSessionResponse)
CreateSessionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateSessionResponse.newBuilder() to construct.
private CreateSessionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateSessionResponse() {
status_ = 0;
issues_ = java.util.Collections.emptyList();
sessionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateSessionResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CreateSessionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CreateSessionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.CreateSessionResponse.class, tech.ydb.proto.query.YdbQuery.CreateSessionResponse.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
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;
* @return The status.
*/
@java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
public static final int ISSUES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
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 tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) {
return issues_.get(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
@java.lang.Override
public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index) {
return issues_.get(index);
}
public static final int SESSION_ID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object sessionId_ = "";
/**
*
* Identifier of created session
*
*
* string session_id = 3 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
}
}
/**
*
* Identifier of created session
*
*
* string session_id = 3 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NODE_ID_FIELD_NUMBER = 4;
private long nodeId_ = 0L;
/**
*
* Identifier node where session was created
*
*
* int64 node_id = 4 [(.Ydb.value) = ">= 0"];
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
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_ != tech.ydb.proto.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));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sessionId_);
}
if (nodeId_ != 0L) {
output.writeInt64(4, nodeId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != tech.ydb.proto.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));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sessionId_);
}
if (nodeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, nodeId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.CreateSessionResponse)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.CreateSessionResponse other = (tech.ydb.proto.query.YdbQuery.CreateSessionResponse) obj;
if (status_ != other.status_) return false;
if (!getIssuesList()
.equals(other.getIssuesList())) return false;
if (!getSessionId()
.equals(other.getSessionId())) return false;
if (getNodeId()
!= other.getNodeId()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getIssuesCount() > 0) {
hash = (37 * hash) + ISSUES_FIELD_NUMBER;
hash = (53 * hash) + getIssuesList().hashCode();
}
hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSessionId().hashCode();
hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNodeId());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.CreateSessionResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.CreateSessionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.CreateSessionResponse)
tech.ydb.proto.query.YdbQuery.CreateSessionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CreateSessionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CreateSessionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.CreateSessionResponse.class, tech.ydb.proto.query.YdbQuery.CreateSessionResponse.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.CreateSessionResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = 0;
if (issuesBuilder_ == null) {
issues_ = java.util.Collections.emptyList();
} else {
issues_ = null;
issuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
sessionId_ = "";
nodeId_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CreateSessionResponse_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CreateSessionResponse getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.CreateSessionResponse.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CreateSessionResponse build() {
tech.ydb.proto.query.YdbQuery.CreateSessionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CreateSessionResponse buildPartial() {
tech.ydb.proto.query.YdbQuery.CreateSessionResponse result = new tech.ydb.proto.query.YdbQuery.CreateSessionResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.ydb.proto.query.YdbQuery.CreateSessionResponse result) {
if (issuesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
issues_ = java.util.Collections.unmodifiableList(issues_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.issues_ = issues_;
} else {
result.issues_ = issuesBuilder_.build();
}
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.CreateSessionResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.sessionId_ = sessionId_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.nodeId_ = nodeId_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.CreateSessionResponse) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.CreateSessionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.CreateSessionResponse other) {
if (other == tech.ydb.proto.query.YdbQuery.CreateSessionResponse.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_ & ~0x00000002);
} else {
ensureIssuesIsMutable();
issues_.addAll(other.issues_);
}
onChanged();
}
} else {
if (!other.issues_.isEmpty()) {
if (issuesBuilder_.isEmpty()) {
issuesBuilder_.dispose();
issuesBuilder_ = null;
issues_ = other.issues_;
bitField0_ = (bitField0_ & ~0x00000002);
issuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIssuesFieldBuilder() : null;
} else {
issuesBuilder_.addAllMessages(other.issues_);
}
}
}
if (!other.getSessionId().isEmpty()) {
sessionId_ = other.sessionId_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.getNodeId() != 0L) {
setNodeId(other.getNodeId());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
status_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
tech.ydb.proto.YdbIssueMessage.IssueMessage m =
input.readMessage(
tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(),
extensionRegistry);
if (issuesBuilder_ == null) {
ensureIssuesIsMutable();
issues_.add(m);
} else {
issuesBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
sessionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
nodeId_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return The status.
*/
@java.lang.Override
public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private java.util.List issues_ =
java.util.Collections.emptyList();
private void ensureIssuesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
issues_ = new java.util.ArrayList(issues_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.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 tech.ydb.proto.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, tech.ydb.proto.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, tech.ydb.proto.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(tech.ydb.proto.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, tech.ydb.proto.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(
tech.ydb.proto.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, tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessage> 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_ & ~0x00000002);
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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder(
int index) {
return getIssuesFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList() {
if (issuesBuilder_ != null) {
return issuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(issues_);
}
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() {
return getIssuesFieldBuilder().addBuilder(
tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder(
int index) {
return getIssuesFieldBuilder().addBuilder(
index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public java.util.List
getIssuesBuilderList() {
return getIssuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesFieldBuilder() {
if (issuesBuilder_ == null) {
issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>(
issues_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
issues_ = null;
}
return issuesBuilder_;
}
private java.lang.Object sessionId_ = "";
/**
*
* Identifier of created session
*
*
* string session_id = 3 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Identifier of created session
*
*
* string session_id = 3 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Identifier of created session
*
*
* string session_id = 3 [(.Ydb.length) = { ... }
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sessionId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Identifier of created session
*
*
* string session_id = 3 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearSessionId() {
sessionId_ = getDefaultInstance().getSessionId();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Identifier of created session
*
*
* string session_id = 3 [(.Ydb.length) = { ... }
* @param value The bytes for sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sessionId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private long nodeId_ ;
/**
*
* Identifier node where session was created
*
*
* int64 node_id = 4 [(.Ydb.value) = ">= 0"];
* @return The nodeId.
*/
@java.lang.Override
public long getNodeId() {
return nodeId_;
}
/**
*
* Identifier node where session was created
*
*
* int64 node_id = 4 [(.Ydb.value) = ">= 0"];
* @param value The nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeId(long value) {
nodeId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Identifier node where session was created
*
*
* int64 node_id = 4 [(.Ydb.value) = ">= 0"];
* @return This builder for chaining.
*/
public Builder clearNodeId() {
bitField0_ = (bitField0_ & ~0x00000008);
nodeId_ = 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.Query.CreateSessionResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.CreateSessionResponse)
private static final tech.ydb.proto.query.YdbQuery.CreateSessionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.CreateSessionResponse();
}
public static tech.ydb.proto.query.YdbQuery.CreateSessionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateSessionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CreateSessionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteSessionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.DeleteSessionRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Identifier of session to delete (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
java.lang.String getSessionId();
/**
*
* Identifier of session to delete (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
com.google.protobuf.ByteString
getSessionIdBytes();
}
/**
* Protobuf type {@code Ydb.Query.DeleteSessionRequest}
*/
public static final class DeleteSessionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.DeleteSessionRequest)
DeleteSessionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteSessionRequest.newBuilder() to construct.
private DeleteSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteSessionRequest() {
sessionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteSessionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_DeleteSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_DeleteSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.DeleteSessionRequest.class, tech.ydb.proto.query.YdbQuery.DeleteSessionRequest.Builder.class);
}
public static final int SESSION_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sessionId_ = "";
/**
*
* Identifier of session to delete (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
}
}
/**
*
* Identifier of session to delete (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.DeleteSessionRequest)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.DeleteSessionRequest other = (tech.ydb.proto.query.YdbQuery.DeleteSessionRequest) obj;
if (!getSessionId()
.equals(other.getSessionId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSessionId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.DeleteSessionRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.DeleteSessionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.DeleteSessionRequest)
tech.ydb.proto.query.YdbQuery.DeleteSessionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_DeleteSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_DeleteSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.DeleteSessionRequest.class, tech.ydb.proto.query.YdbQuery.DeleteSessionRequest.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.DeleteSessionRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sessionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_DeleteSessionRequest_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.DeleteSessionRequest getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.DeleteSessionRequest.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.DeleteSessionRequest build() {
tech.ydb.proto.query.YdbQuery.DeleteSessionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.DeleteSessionRequest buildPartial() {
tech.ydb.proto.query.YdbQuery.DeleteSessionRequest result = new tech.ydb.proto.query.YdbQuery.DeleteSessionRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.DeleteSessionRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sessionId_ = sessionId_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.DeleteSessionRequest) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.DeleteSessionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.DeleteSessionRequest other) {
if (other == tech.ydb.proto.query.YdbQuery.DeleteSessionRequest.getDefaultInstance()) return this;
if (!other.getSessionId().isEmpty()) {
sessionId_ = other.sessionId_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
sessionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object sessionId_ = "";
/**
*
* Identifier of session to delete (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Identifier of session to delete (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Identifier of session to delete (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Identifier of session to delete (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearSessionId() {
sessionId_ = getDefaultInstance().getSessionId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Identifier of session to delete (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @param value The bytes for sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sessionId_ = value;
bitField0_ |= 0x00000001;
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.Query.DeleteSessionRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.DeleteSessionRequest)
private static final tech.ydb.proto.query.YdbQuery.DeleteSessionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.DeleteSessionRequest();
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteSessionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.DeleteSessionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteSessionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.DeleteSessionResponse)
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.
*/
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List
getIssuesList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index);
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
int getIssuesCount();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Query.DeleteSessionResponse}
*/
public static final class DeleteSessionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.DeleteSessionResponse)
DeleteSessionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteSessionResponse.newBuilder() to construct.
private DeleteSessionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteSessionResponse() {
status_ = 0;
issues_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteSessionResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_DeleteSessionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_DeleteSessionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.DeleteSessionResponse.class, tech.ydb.proto.query.YdbQuery.DeleteSessionResponse.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
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;
* @return The status.
*/
@java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
public static final int ISSUES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
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 tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) {
return issues_.get(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
@java.lang.Override
public tech.ydb.proto.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_ != tech.ydb.proto.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));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != tech.ydb.proto.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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.DeleteSessionResponse)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.DeleteSessionResponse other = (tech.ydb.proto.query.YdbQuery.DeleteSessionResponse) obj;
if (status_ != other.status_) return false;
if (!getIssuesList()
.equals(other.getIssuesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getIssuesCount() > 0) {
hash = (37 * hash) + ISSUES_FIELD_NUMBER;
hash = (53 * hash) + getIssuesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.DeleteSessionResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.DeleteSessionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.DeleteSessionResponse)
tech.ydb.proto.query.YdbQuery.DeleteSessionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_DeleteSessionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_DeleteSessionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.DeleteSessionResponse.class, tech.ydb.proto.query.YdbQuery.DeleteSessionResponse.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.DeleteSessionResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = 0;
if (issuesBuilder_ == null) {
issues_ = java.util.Collections.emptyList();
} else {
issues_ = null;
issuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_DeleteSessionResponse_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.DeleteSessionResponse getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.DeleteSessionResponse.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.DeleteSessionResponse build() {
tech.ydb.proto.query.YdbQuery.DeleteSessionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.DeleteSessionResponse buildPartial() {
tech.ydb.proto.query.YdbQuery.DeleteSessionResponse result = new tech.ydb.proto.query.YdbQuery.DeleteSessionResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.ydb.proto.query.YdbQuery.DeleteSessionResponse result) {
if (issuesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
issues_ = java.util.Collections.unmodifiableList(issues_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.issues_ = issues_;
} else {
result.issues_ = issuesBuilder_.build();
}
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.DeleteSessionResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.DeleteSessionResponse) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.DeleteSessionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.DeleteSessionResponse other) {
if (other == tech.ydb.proto.query.YdbQuery.DeleteSessionResponse.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_ & ~0x00000002);
} else {
ensureIssuesIsMutable();
issues_.addAll(other.issues_);
}
onChanged();
}
} else {
if (!other.issues_.isEmpty()) {
if (issuesBuilder_.isEmpty()) {
issuesBuilder_.dispose();
issuesBuilder_ = null;
issues_ = other.issues_;
bitField0_ = (bitField0_ & ~0x00000002);
issuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIssuesFieldBuilder() : null;
} else {
issuesBuilder_.addAllMessages(other.issues_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
status_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
tech.ydb.proto.YdbIssueMessage.IssueMessage m =
input.readMessage(
tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(),
extensionRegistry);
if (issuesBuilder_ == null) {
ensureIssuesIsMutable();
issues_.add(m);
} else {
issuesBuilder_.addMessage(m);
}
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return The status.
*/
@java.lang.Override
public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private java.util.List issues_ =
java.util.Collections.emptyList();
private void ensureIssuesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
issues_ = new java.util.ArrayList(issues_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.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 tech.ydb.proto.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, tech.ydb.proto.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, tech.ydb.proto.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(tech.ydb.proto.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, tech.ydb.proto.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(
tech.ydb.proto.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, tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessage> 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_ & ~0x00000002);
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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder(
int index) {
return getIssuesFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList() {
if (issuesBuilder_ != null) {
return issuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(issues_);
}
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() {
return getIssuesFieldBuilder().addBuilder(
tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder(
int index) {
return getIssuesFieldBuilder().addBuilder(
index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public java.util.List
getIssuesBuilderList() {
return getIssuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesFieldBuilder() {
if (issuesBuilder_ == null) {
issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>(
issues_,
((bitField0_ & 0x00000002) != 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.Query.DeleteSessionResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.DeleteSessionResponse)
private static final tech.ydb.proto.query.YdbQuery.DeleteSessionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.DeleteSessionResponse();
}
public static tech.ydb.proto.query.YdbQuery.DeleteSessionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteSessionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.DeleteSessionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttachSessionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.AttachSessionRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Identifier of session to attach (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
java.lang.String getSessionId();
/**
*
* Identifier of session to attach (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
com.google.protobuf.ByteString
getSessionIdBytes();
}
/**
* Protobuf type {@code Ydb.Query.AttachSessionRequest}
*/
public static final class AttachSessionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.AttachSessionRequest)
AttachSessionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttachSessionRequest.newBuilder() to construct.
private AttachSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttachSessionRequest() {
sessionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AttachSessionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_AttachSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_AttachSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.AttachSessionRequest.class, tech.ydb.proto.query.YdbQuery.AttachSessionRequest.Builder.class);
}
public static final int SESSION_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sessionId_ = "";
/**
*
* Identifier of session to attach (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
}
}
/**
*
* Identifier of session to attach (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.AttachSessionRequest)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.AttachSessionRequest other = (tech.ydb.proto.query.YdbQuery.AttachSessionRequest) obj;
if (!getSessionId()
.equals(other.getSessionId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSessionId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.AttachSessionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.AttachSessionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.AttachSessionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.AttachSessionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.AttachSessionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.AttachSessionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.AttachSessionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.AttachSessionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.AttachSessionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.AttachSessionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.AttachSessionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.AttachSessionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.AttachSessionRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.AttachSessionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.AttachSessionRequest)
tech.ydb.proto.query.YdbQuery.AttachSessionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_AttachSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_AttachSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.AttachSessionRequest.class, tech.ydb.proto.query.YdbQuery.AttachSessionRequest.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.AttachSessionRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sessionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_AttachSessionRequest_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.AttachSessionRequest getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.AttachSessionRequest.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.AttachSessionRequest build() {
tech.ydb.proto.query.YdbQuery.AttachSessionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.AttachSessionRequest buildPartial() {
tech.ydb.proto.query.YdbQuery.AttachSessionRequest result = new tech.ydb.proto.query.YdbQuery.AttachSessionRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.AttachSessionRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sessionId_ = sessionId_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.AttachSessionRequest) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.AttachSessionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.AttachSessionRequest other) {
if (other == tech.ydb.proto.query.YdbQuery.AttachSessionRequest.getDefaultInstance()) return this;
if (!other.getSessionId().isEmpty()) {
sessionId_ = other.sessionId_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
sessionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object sessionId_ = "";
/**
*
* Identifier of session to attach (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Identifier of session to attach (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Identifier of session to attach (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Identifier of session to attach (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearSessionId() {
sessionId_ = getDefaultInstance().getSessionId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Identifier of session to attach (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @param value The bytes for sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sessionId_ = value;
bitField0_ |= 0x00000001;
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.Query.AttachSessionRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.AttachSessionRequest)
private static final tech.ydb.proto.query.YdbQuery.AttachSessionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.AttachSessionRequest();
}
public static tech.ydb.proto.query.YdbQuery.AttachSessionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttachSessionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.AttachSessionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SessionStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.SessionState)
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.
*/
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List
getIssuesList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index);
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
int getIssuesCount();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Query.SessionState}
*/
public static final class SessionState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.SessionState)
SessionStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use SessionState.newBuilder() to construct.
private SessionState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SessionState() {
status_ = 0;
issues_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SessionState();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SessionState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SessionState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.SessionState.class, tech.ydb.proto.query.YdbQuery.SessionState.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
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;
* @return The status.
*/
@java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
public static final int ISSUES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
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 tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) {
return issues_.get(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
@java.lang.Override
public tech.ydb.proto.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_ != tech.ydb.proto.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));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != tech.ydb.proto.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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.SessionState)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.SessionState other = (tech.ydb.proto.query.YdbQuery.SessionState) obj;
if (status_ != other.status_) return false;
if (!getIssuesList()
.equals(other.getIssuesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getIssuesCount() > 0) {
hash = (37 * hash) + ISSUES_FIELD_NUMBER;
hash = (53 * hash) + getIssuesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.SessionState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.SessionState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SessionState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.SessionState parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SessionState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.SessionState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SessionState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.SessionState parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SessionState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.SessionState parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SessionState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.SessionState parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.SessionState prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.SessionState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.SessionState)
tech.ydb.proto.query.YdbQuery.SessionStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SessionState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SessionState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.SessionState.class, tech.ydb.proto.query.YdbQuery.SessionState.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.SessionState.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = 0;
if (issuesBuilder_ == null) {
issues_ = java.util.Collections.emptyList();
} else {
issues_ = null;
issuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SessionState_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SessionState getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.SessionState.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SessionState build() {
tech.ydb.proto.query.YdbQuery.SessionState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SessionState buildPartial() {
tech.ydb.proto.query.YdbQuery.SessionState result = new tech.ydb.proto.query.YdbQuery.SessionState(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.ydb.proto.query.YdbQuery.SessionState result) {
if (issuesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
issues_ = java.util.Collections.unmodifiableList(issues_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.issues_ = issues_;
} else {
result.issues_ = issuesBuilder_.build();
}
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.SessionState result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.SessionState) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.SessionState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.SessionState other) {
if (other == tech.ydb.proto.query.YdbQuery.SessionState.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_ & ~0x00000002);
} else {
ensureIssuesIsMutable();
issues_.addAll(other.issues_);
}
onChanged();
}
} else {
if (!other.issues_.isEmpty()) {
if (issuesBuilder_.isEmpty()) {
issuesBuilder_.dispose();
issuesBuilder_ = null;
issues_ = other.issues_;
bitField0_ = (bitField0_ & ~0x00000002);
issuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIssuesFieldBuilder() : null;
} else {
issuesBuilder_.addAllMessages(other.issues_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
status_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
tech.ydb.proto.YdbIssueMessage.IssueMessage m =
input.readMessage(
tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(),
extensionRegistry);
if (issuesBuilder_ == null) {
ensureIssuesIsMutable();
issues_.add(m);
} else {
issuesBuilder_.addMessage(m);
}
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return The status.
*/
@java.lang.Override
public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private java.util.List issues_ =
java.util.Collections.emptyList();
private void ensureIssuesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
issues_ = new java.util.ArrayList(issues_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.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 tech.ydb.proto.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, tech.ydb.proto.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, tech.ydb.proto.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(tech.ydb.proto.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, tech.ydb.proto.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(
tech.ydb.proto.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, tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessage> 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_ & ~0x00000002);
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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder(
int index) {
return getIssuesFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList() {
if (issuesBuilder_ != null) {
return issuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(issues_);
}
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() {
return getIssuesFieldBuilder().addBuilder(
tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder(
int index) {
return getIssuesFieldBuilder().addBuilder(
index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public java.util.List
getIssuesBuilderList() {
return getIssuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesFieldBuilder() {
if (issuesBuilder_ == null) {
issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>(
issues_,
((bitField0_ & 0x00000002) != 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.Query.SessionState)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.SessionState)
private static final tech.ydb.proto.query.YdbQuery.SessionState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.SessionState();
}
public static tech.ydb.proto.query.YdbQuery.SessionState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SessionState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SessionState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SerializableModeSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.SerializableModeSettings)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code Ydb.Query.SerializableModeSettings}
*/
public static final class SerializableModeSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.SerializableModeSettings)
SerializableModeSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use SerializableModeSettings.newBuilder() to construct.
private SerializableModeSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SerializableModeSettings() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SerializableModeSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SerializableModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SerializableModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.SerializableModeSettings.class, tech.ydb.proto.query.YdbQuery.SerializableModeSettings.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.SerializableModeSettings)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.SerializableModeSettings other = (tech.ydb.proto.query.YdbQuery.SerializableModeSettings) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.SerializableModeSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.SerializableModeSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SerializableModeSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.SerializableModeSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SerializableModeSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.SerializableModeSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SerializableModeSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.SerializableModeSettings parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SerializableModeSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.SerializableModeSettings parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SerializableModeSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.SerializableModeSettings parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.SerializableModeSettings prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.SerializableModeSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.SerializableModeSettings)
tech.ydb.proto.query.YdbQuery.SerializableModeSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SerializableModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SerializableModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.SerializableModeSettings.class, tech.ydb.proto.query.YdbQuery.SerializableModeSettings.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.SerializableModeSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SerializableModeSettings_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SerializableModeSettings getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.SerializableModeSettings.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SerializableModeSettings build() {
tech.ydb.proto.query.YdbQuery.SerializableModeSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SerializableModeSettings buildPartial() {
tech.ydb.proto.query.YdbQuery.SerializableModeSettings result = new tech.ydb.proto.query.YdbQuery.SerializableModeSettings(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.SerializableModeSettings) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.SerializableModeSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.SerializableModeSettings other) {
if (other == tech.ydb.proto.query.YdbQuery.SerializableModeSettings.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@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.Query.SerializableModeSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.SerializableModeSettings)
private static final tech.ydb.proto.query.YdbQuery.SerializableModeSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.SerializableModeSettings();
}
public static tech.ydb.proto.query.YdbQuery.SerializableModeSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SerializableModeSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SerializableModeSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OnlineModeSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.OnlineModeSettings)
com.google.protobuf.MessageOrBuilder {
/**
* bool allow_inconsistent_reads = 1;
* @return The allowInconsistentReads.
*/
boolean getAllowInconsistentReads();
}
/**
* Protobuf type {@code Ydb.Query.OnlineModeSettings}
*/
public static final class OnlineModeSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.OnlineModeSettings)
OnlineModeSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use OnlineModeSettings.newBuilder() to construct.
private OnlineModeSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OnlineModeSettings() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OnlineModeSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_OnlineModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_OnlineModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.OnlineModeSettings.class, tech.ydb.proto.query.YdbQuery.OnlineModeSettings.Builder.class);
}
public static final int ALLOW_INCONSISTENT_READS_FIELD_NUMBER = 1;
private boolean allowInconsistentReads_ = false;
/**
* bool allow_inconsistent_reads = 1;
* @return The allowInconsistentReads.
*/
@java.lang.Override
public boolean getAllowInconsistentReads() {
return allowInconsistentReads_;
}
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 (allowInconsistentReads_ != false) {
output.writeBool(1, allowInconsistentReads_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (allowInconsistentReads_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, allowInconsistentReads_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.OnlineModeSettings)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.OnlineModeSettings other = (tech.ydb.proto.query.YdbQuery.OnlineModeSettings) obj;
if (getAllowInconsistentReads()
!= other.getAllowInconsistentReads()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ALLOW_INCONSISTENT_READS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllowInconsistentReads());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.OnlineModeSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.OnlineModeSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.OnlineModeSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.OnlineModeSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.OnlineModeSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.OnlineModeSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.OnlineModeSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.OnlineModeSettings parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.OnlineModeSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.OnlineModeSettings parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.OnlineModeSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.OnlineModeSettings parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.OnlineModeSettings prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.OnlineModeSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.OnlineModeSettings)
tech.ydb.proto.query.YdbQuery.OnlineModeSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_OnlineModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_OnlineModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.OnlineModeSettings.class, tech.ydb.proto.query.YdbQuery.OnlineModeSettings.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.OnlineModeSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
allowInconsistentReads_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_OnlineModeSettings_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.OnlineModeSettings getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.OnlineModeSettings.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.OnlineModeSettings build() {
tech.ydb.proto.query.YdbQuery.OnlineModeSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.OnlineModeSettings buildPartial() {
tech.ydb.proto.query.YdbQuery.OnlineModeSettings result = new tech.ydb.proto.query.YdbQuery.OnlineModeSettings(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.OnlineModeSettings result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.allowInconsistentReads_ = allowInconsistentReads_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.OnlineModeSettings) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.OnlineModeSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.OnlineModeSettings other) {
if (other == tech.ydb.proto.query.YdbQuery.OnlineModeSettings.getDefaultInstance()) return this;
if (other.getAllowInconsistentReads() != false) {
setAllowInconsistentReads(other.getAllowInconsistentReads());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
allowInconsistentReads_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private boolean allowInconsistentReads_ ;
/**
* bool allow_inconsistent_reads = 1;
* @return The allowInconsistentReads.
*/
@java.lang.Override
public boolean getAllowInconsistentReads() {
return allowInconsistentReads_;
}
/**
* bool allow_inconsistent_reads = 1;
* @param value The allowInconsistentReads to set.
* @return This builder for chaining.
*/
public Builder setAllowInconsistentReads(boolean value) {
allowInconsistentReads_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bool allow_inconsistent_reads = 1;
* @return This builder for chaining.
*/
public Builder clearAllowInconsistentReads() {
bitField0_ = (bitField0_ & ~0x00000001);
allowInconsistentReads_ = 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.Query.OnlineModeSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.OnlineModeSettings)
private static final tech.ydb.proto.query.YdbQuery.OnlineModeSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.OnlineModeSettings();
}
public static tech.ydb.proto.query.YdbQuery.OnlineModeSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OnlineModeSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.OnlineModeSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StaleModeSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.StaleModeSettings)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code Ydb.Query.StaleModeSettings}
*/
public static final class StaleModeSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.StaleModeSettings)
StaleModeSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use StaleModeSettings.newBuilder() to construct.
private StaleModeSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StaleModeSettings() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StaleModeSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_StaleModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_StaleModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.StaleModeSettings.class, tech.ydb.proto.query.YdbQuery.StaleModeSettings.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.StaleModeSettings)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.StaleModeSettings other = (tech.ydb.proto.query.YdbQuery.StaleModeSettings) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.StaleModeSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.StaleModeSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.StaleModeSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.StaleModeSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.StaleModeSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.StaleModeSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.StaleModeSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.StaleModeSettings parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.StaleModeSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.StaleModeSettings parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.StaleModeSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.StaleModeSettings parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.StaleModeSettings prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.StaleModeSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.StaleModeSettings)
tech.ydb.proto.query.YdbQuery.StaleModeSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_StaleModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_StaleModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.StaleModeSettings.class, tech.ydb.proto.query.YdbQuery.StaleModeSettings.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.StaleModeSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_StaleModeSettings_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.StaleModeSettings getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.StaleModeSettings.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.StaleModeSettings build() {
tech.ydb.proto.query.YdbQuery.StaleModeSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.StaleModeSettings buildPartial() {
tech.ydb.proto.query.YdbQuery.StaleModeSettings result = new tech.ydb.proto.query.YdbQuery.StaleModeSettings(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.StaleModeSettings) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.StaleModeSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.StaleModeSettings other) {
if (other == tech.ydb.proto.query.YdbQuery.StaleModeSettings.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@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.Query.StaleModeSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.StaleModeSettings)
private static final tech.ydb.proto.query.YdbQuery.StaleModeSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.StaleModeSettings();
}
public static tech.ydb.proto.query.YdbQuery.StaleModeSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StaleModeSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.StaleModeSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SnapshotModeSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.SnapshotModeSettings)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code Ydb.Query.SnapshotModeSettings}
*/
public static final class SnapshotModeSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.SnapshotModeSettings)
SnapshotModeSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use SnapshotModeSettings.newBuilder() to construct.
private SnapshotModeSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SnapshotModeSettings() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SnapshotModeSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SnapshotModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SnapshotModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.class, tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.SnapshotModeSettings)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.SnapshotModeSettings other = (tech.ydb.proto.query.YdbQuery.SnapshotModeSettings) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.SnapshotModeSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.SnapshotModeSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SnapshotModeSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.SnapshotModeSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SnapshotModeSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.SnapshotModeSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SnapshotModeSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.SnapshotModeSettings parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SnapshotModeSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.SnapshotModeSettings parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.SnapshotModeSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.SnapshotModeSettings parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.SnapshotModeSettings prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.SnapshotModeSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.SnapshotModeSettings)
tech.ydb.proto.query.YdbQuery.SnapshotModeSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SnapshotModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SnapshotModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.class, tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_SnapshotModeSettings_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SnapshotModeSettings getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SnapshotModeSettings build() {
tech.ydb.proto.query.YdbQuery.SnapshotModeSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SnapshotModeSettings buildPartial() {
tech.ydb.proto.query.YdbQuery.SnapshotModeSettings result = new tech.ydb.proto.query.YdbQuery.SnapshotModeSettings(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.SnapshotModeSettings) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.SnapshotModeSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.SnapshotModeSettings other) {
if (other == tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@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.Query.SnapshotModeSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.SnapshotModeSettings)
private static final tech.ydb.proto.query.YdbQuery.SnapshotModeSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.SnapshotModeSettings();
}
public static tech.ydb.proto.query.YdbQuery.SnapshotModeSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SnapshotModeSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SnapshotModeSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.TransactionSettings)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
* @return Whether the serializableReadWrite field is set.
*/
boolean hasSerializableReadWrite();
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
* @return The serializableReadWrite.
*/
tech.ydb.proto.query.YdbQuery.SerializableModeSettings getSerializableReadWrite();
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
*/
tech.ydb.proto.query.YdbQuery.SerializableModeSettingsOrBuilder getSerializableReadWriteOrBuilder();
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
* @return Whether the onlineReadOnly field is set.
*/
boolean hasOnlineReadOnly();
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
* @return The onlineReadOnly.
*/
tech.ydb.proto.query.YdbQuery.OnlineModeSettings getOnlineReadOnly();
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
*/
tech.ydb.proto.query.YdbQuery.OnlineModeSettingsOrBuilder getOnlineReadOnlyOrBuilder();
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
* @return Whether the staleReadOnly field is set.
*/
boolean hasStaleReadOnly();
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
* @return The staleReadOnly.
*/
tech.ydb.proto.query.YdbQuery.StaleModeSettings getStaleReadOnly();
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
*/
tech.ydb.proto.query.YdbQuery.StaleModeSettingsOrBuilder getStaleReadOnlyOrBuilder();
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
* @return Whether the snapshotReadOnly field is set.
*/
boolean hasSnapshotReadOnly();
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
* @return The snapshotReadOnly.
*/
tech.ydb.proto.query.YdbQuery.SnapshotModeSettings getSnapshotReadOnly();
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
*/
tech.ydb.proto.query.YdbQuery.SnapshotModeSettingsOrBuilder getSnapshotReadOnlyOrBuilder();
tech.ydb.proto.query.YdbQuery.TransactionSettings.TxModeCase getTxModeCase();
}
/**
* Protobuf type {@code Ydb.Query.TransactionSettings}
*/
public static final class TransactionSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.TransactionSettings)
TransactionSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionSettings.newBuilder() to construct.
private TransactionSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionSettings() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.TransactionSettings.class, tech.ydb.proto.query.YdbQuery.TransactionSettings.Builder.class);
}
private int txModeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object txMode_;
public enum TxModeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SERIALIZABLE_READ_WRITE(1),
ONLINE_READ_ONLY(2),
STALE_READ_ONLY(3),
SNAPSHOT_READ_ONLY(4),
TXMODE_NOT_SET(0);
private final int value;
private TxModeCase(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 TxModeCase valueOf(int value) {
return forNumber(value);
}
public static TxModeCase forNumber(int value) {
switch (value) {
case 1: return SERIALIZABLE_READ_WRITE;
case 2: return ONLINE_READ_ONLY;
case 3: return STALE_READ_ONLY;
case 4: return SNAPSHOT_READ_ONLY;
case 0: return TXMODE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TxModeCase
getTxModeCase() {
return TxModeCase.forNumber(
txModeCase_);
}
public static final int SERIALIZABLE_READ_WRITE_FIELD_NUMBER = 1;
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
* @return Whether the serializableReadWrite field is set.
*/
@java.lang.Override
public boolean hasSerializableReadWrite() {
return txModeCase_ == 1;
}
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
* @return The serializableReadWrite.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SerializableModeSettings getSerializableReadWrite() {
if (txModeCase_ == 1) {
return (tech.ydb.proto.query.YdbQuery.SerializableModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.SerializableModeSettings.getDefaultInstance();
}
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SerializableModeSettingsOrBuilder getSerializableReadWriteOrBuilder() {
if (txModeCase_ == 1) {
return (tech.ydb.proto.query.YdbQuery.SerializableModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.SerializableModeSettings.getDefaultInstance();
}
public static final int ONLINE_READ_ONLY_FIELD_NUMBER = 2;
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
* @return Whether the onlineReadOnly field is set.
*/
@java.lang.Override
public boolean hasOnlineReadOnly() {
return txModeCase_ == 2;
}
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
* @return The onlineReadOnly.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.OnlineModeSettings getOnlineReadOnly() {
if (txModeCase_ == 2) {
return (tech.ydb.proto.query.YdbQuery.OnlineModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.OnlineModeSettings.getDefaultInstance();
}
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.OnlineModeSettingsOrBuilder getOnlineReadOnlyOrBuilder() {
if (txModeCase_ == 2) {
return (tech.ydb.proto.query.YdbQuery.OnlineModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.OnlineModeSettings.getDefaultInstance();
}
public static final int STALE_READ_ONLY_FIELD_NUMBER = 3;
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
* @return Whether the staleReadOnly field is set.
*/
@java.lang.Override
public boolean hasStaleReadOnly() {
return txModeCase_ == 3;
}
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
* @return The staleReadOnly.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.StaleModeSettings getStaleReadOnly() {
if (txModeCase_ == 3) {
return (tech.ydb.proto.query.YdbQuery.StaleModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.StaleModeSettings.getDefaultInstance();
}
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.StaleModeSettingsOrBuilder getStaleReadOnlyOrBuilder() {
if (txModeCase_ == 3) {
return (tech.ydb.proto.query.YdbQuery.StaleModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.StaleModeSettings.getDefaultInstance();
}
public static final int SNAPSHOT_READ_ONLY_FIELD_NUMBER = 4;
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
* @return Whether the snapshotReadOnly field is set.
*/
@java.lang.Override
public boolean hasSnapshotReadOnly() {
return txModeCase_ == 4;
}
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
* @return The snapshotReadOnly.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SnapshotModeSettings getSnapshotReadOnly() {
if (txModeCase_ == 4) {
return (tech.ydb.proto.query.YdbQuery.SnapshotModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.getDefaultInstance();
}
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SnapshotModeSettingsOrBuilder getSnapshotReadOnlyOrBuilder() {
if (txModeCase_ == 4) {
return (tech.ydb.proto.query.YdbQuery.SnapshotModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.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 (txModeCase_ == 1) {
output.writeMessage(1, (tech.ydb.proto.query.YdbQuery.SerializableModeSettings) txMode_);
}
if (txModeCase_ == 2) {
output.writeMessage(2, (tech.ydb.proto.query.YdbQuery.OnlineModeSettings) txMode_);
}
if (txModeCase_ == 3) {
output.writeMessage(3, (tech.ydb.proto.query.YdbQuery.StaleModeSettings) txMode_);
}
if (txModeCase_ == 4) {
output.writeMessage(4, (tech.ydb.proto.query.YdbQuery.SnapshotModeSettings) txMode_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (txModeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (tech.ydb.proto.query.YdbQuery.SerializableModeSettings) txMode_);
}
if (txModeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (tech.ydb.proto.query.YdbQuery.OnlineModeSettings) txMode_);
}
if (txModeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (tech.ydb.proto.query.YdbQuery.StaleModeSettings) txMode_);
}
if (txModeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (tech.ydb.proto.query.YdbQuery.SnapshotModeSettings) txMode_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.TransactionSettings)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.TransactionSettings other = (tech.ydb.proto.query.YdbQuery.TransactionSettings) obj;
if (!getTxModeCase().equals(other.getTxModeCase())) return false;
switch (txModeCase_) {
case 1:
if (!getSerializableReadWrite()
.equals(other.getSerializableReadWrite())) return false;
break;
case 2:
if (!getOnlineReadOnly()
.equals(other.getOnlineReadOnly())) return false;
break;
case 3:
if (!getStaleReadOnly()
.equals(other.getStaleReadOnly())) return false;
break;
case 4:
if (!getSnapshotReadOnly()
.equals(other.getSnapshotReadOnly())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (txModeCase_) {
case 1:
hash = (37 * hash) + SERIALIZABLE_READ_WRITE_FIELD_NUMBER;
hash = (53 * hash) + getSerializableReadWrite().hashCode();
break;
case 2:
hash = (37 * hash) + ONLINE_READ_ONLY_FIELD_NUMBER;
hash = (53 * hash) + getOnlineReadOnly().hashCode();
break;
case 3:
hash = (37 * hash) + STALE_READ_ONLY_FIELD_NUMBER;
hash = (53 * hash) + getStaleReadOnly().hashCode();
break;
case 4:
hash = (37 * hash) + SNAPSHOT_READ_ONLY_FIELD_NUMBER;
hash = (53 * hash) + getSnapshotReadOnly().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.TransactionSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.TransactionSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.TransactionSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.TransactionSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.TransactionSettings parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.TransactionSettings parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.TransactionSettings parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.TransactionSettings prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.TransactionSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.TransactionSettings)
tech.ydb.proto.query.YdbQuery.TransactionSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.TransactionSettings.class, tech.ydb.proto.query.YdbQuery.TransactionSettings.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.TransactionSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (serializableReadWriteBuilder_ != null) {
serializableReadWriteBuilder_.clear();
}
if (onlineReadOnlyBuilder_ != null) {
onlineReadOnlyBuilder_.clear();
}
if (staleReadOnlyBuilder_ != null) {
staleReadOnlyBuilder_.clear();
}
if (snapshotReadOnlyBuilder_ != null) {
snapshotReadOnlyBuilder_.clear();
}
txModeCase_ = 0;
txMode_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionSettings_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionSettings getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.TransactionSettings.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionSettings build() {
tech.ydb.proto.query.YdbQuery.TransactionSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionSettings buildPartial() {
tech.ydb.proto.query.YdbQuery.TransactionSettings result = new tech.ydb.proto.query.YdbQuery.TransactionSettings(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.TransactionSettings result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(tech.ydb.proto.query.YdbQuery.TransactionSettings result) {
result.txModeCase_ = txModeCase_;
result.txMode_ = this.txMode_;
if (txModeCase_ == 1 &&
serializableReadWriteBuilder_ != null) {
result.txMode_ = serializableReadWriteBuilder_.build();
}
if (txModeCase_ == 2 &&
onlineReadOnlyBuilder_ != null) {
result.txMode_ = onlineReadOnlyBuilder_.build();
}
if (txModeCase_ == 3 &&
staleReadOnlyBuilder_ != null) {
result.txMode_ = staleReadOnlyBuilder_.build();
}
if (txModeCase_ == 4 &&
snapshotReadOnlyBuilder_ != null) {
result.txMode_ = snapshotReadOnlyBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.TransactionSettings) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.TransactionSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.TransactionSettings other) {
if (other == tech.ydb.proto.query.YdbQuery.TransactionSettings.getDefaultInstance()) return this;
switch (other.getTxModeCase()) {
case SERIALIZABLE_READ_WRITE: {
mergeSerializableReadWrite(other.getSerializableReadWrite());
break;
}
case ONLINE_READ_ONLY: {
mergeOnlineReadOnly(other.getOnlineReadOnly());
break;
}
case STALE_READ_ONLY: {
mergeStaleReadOnly(other.getStaleReadOnly());
break;
}
case SNAPSHOT_READ_ONLY: {
mergeSnapshotReadOnly(other.getSnapshotReadOnly());
break;
}
case TXMODE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getSerializableReadWriteFieldBuilder().getBuilder(),
extensionRegistry);
txModeCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getOnlineReadOnlyFieldBuilder().getBuilder(),
extensionRegistry);
txModeCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getStaleReadOnlyFieldBuilder().getBuilder(),
extensionRegistry);
txModeCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getSnapshotReadOnlyFieldBuilder().getBuilder(),
extensionRegistry);
txModeCase_ = 4;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int txModeCase_ = 0;
private java.lang.Object txMode_;
public TxModeCase
getTxModeCase() {
return TxModeCase.forNumber(
txModeCase_);
}
public Builder clearTxMode() {
txModeCase_ = 0;
txMode_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.SerializableModeSettings, tech.ydb.proto.query.YdbQuery.SerializableModeSettings.Builder, tech.ydb.proto.query.YdbQuery.SerializableModeSettingsOrBuilder> serializableReadWriteBuilder_;
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
* @return Whether the serializableReadWrite field is set.
*/
@java.lang.Override
public boolean hasSerializableReadWrite() {
return txModeCase_ == 1;
}
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
* @return The serializableReadWrite.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SerializableModeSettings getSerializableReadWrite() {
if (serializableReadWriteBuilder_ == null) {
if (txModeCase_ == 1) {
return (tech.ydb.proto.query.YdbQuery.SerializableModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.SerializableModeSettings.getDefaultInstance();
} else {
if (txModeCase_ == 1) {
return serializableReadWriteBuilder_.getMessage();
}
return tech.ydb.proto.query.YdbQuery.SerializableModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
*/
public Builder setSerializableReadWrite(tech.ydb.proto.query.YdbQuery.SerializableModeSettings value) {
if (serializableReadWriteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
txMode_ = value;
onChanged();
} else {
serializableReadWriteBuilder_.setMessage(value);
}
txModeCase_ = 1;
return this;
}
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
*/
public Builder setSerializableReadWrite(
tech.ydb.proto.query.YdbQuery.SerializableModeSettings.Builder builderForValue) {
if (serializableReadWriteBuilder_ == null) {
txMode_ = builderForValue.build();
onChanged();
} else {
serializableReadWriteBuilder_.setMessage(builderForValue.build());
}
txModeCase_ = 1;
return this;
}
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
*/
public Builder mergeSerializableReadWrite(tech.ydb.proto.query.YdbQuery.SerializableModeSettings value) {
if (serializableReadWriteBuilder_ == null) {
if (txModeCase_ == 1 &&
txMode_ != tech.ydb.proto.query.YdbQuery.SerializableModeSettings.getDefaultInstance()) {
txMode_ = tech.ydb.proto.query.YdbQuery.SerializableModeSettings.newBuilder((tech.ydb.proto.query.YdbQuery.SerializableModeSettings) txMode_)
.mergeFrom(value).buildPartial();
} else {
txMode_ = value;
}
onChanged();
} else {
if (txModeCase_ == 1) {
serializableReadWriteBuilder_.mergeFrom(value);
} else {
serializableReadWriteBuilder_.setMessage(value);
}
}
txModeCase_ = 1;
return this;
}
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
*/
public Builder clearSerializableReadWrite() {
if (serializableReadWriteBuilder_ == null) {
if (txModeCase_ == 1) {
txModeCase_ = 0;
txMode_ = null;
onChanged();
}
} else {
if (txModeCase_ == 1) {
txModeCase_ = 0;
txMode_ = null;
}
serializableReadWriteBuilder_.clear();
}
return this;
}
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
*/
public tech.ydb.proto.query.YdbQuery.SerializableModeSettings.Builder getSerializableReadWriteBuilder() {
return getSerializableReadWriteFieldBuilder().getBuilder();
}
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SerializableModeSettingsOrBuilder getSerializableReadWriteOrBuilder() {
if ((txModeCase_ == 1) && (serializableReadWriteBuilder_ != null)) {
return serializableReadWriteBuilder_.getMessageOrBuilder();
} else {
if (txModeCase_ == 1) {
return (tech.ydb.proto.query.YdbQuery.SerializableModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.SerializableModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Query.SerializableModeSettings serializable_read_write = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.SerializableModeSettings, tech.ydb.proto.query.YdbQuery.SerializableModeSettings.Builder, tech.ydb.proto.query.YdbQuery.SerializableModeSettingsOrBuilder>
getSerializableReadWriteFieldBuilder() {
if (serializableReadWriteBuilder_ == null) {
if (!(txModeCase_ == 1)) {
txMode_ = tech.ydb.proto.query.YdbQuery.SerializableModeSettings.getDefaultInstance();
}
serializableReadWriteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.SerializableModeSettings, tech.ydb.proto.query.YdbQuery.SerializableModeSettings.Builder, tech.ydb.proto.query.YdbQuery.SerializableModeSettingsOrBuilder>(
(tech.ydb.proto.query.YdbQuery.SerializableModeSettings) txMode_,
getParentForChildren(),
isClean());
txMode_ = null;
}
txModeCase_ = 1;
onChanged();
return serializableReadWriteBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.OnlineModeSettings, tech.ydb.proto.query.YdbQuery.OnlineModeSettings.Builder, tech.ydb.proto.query.YdbQuery.OnlineModeSettingsOrBuilder> onlineReadOnlyBuilder_;
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
* @return Whether the onlineReadOnly field is set.
*/
@java.lang.Override
public boolean hasOnlineReadOnly() {
return txModeCase_ == 2;
}
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
* @return The onlineReadOnly.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.OnlineModeSettings getOnlineReadOnly() {
if (onlineReadOnlyBuilder_ == null) {
if (txModeCase_ == 2) {
return (tech.ydb.proto.query.YdbQuery.OnlineModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.OnlineModeSettings.getDefaultInstance();
} else {
if (txModeCase_ == 2) {
return onlineReadOnlyBuilder_.getMessage();
}
return tech.ydb.proto.query.YdbQuery.OnlineModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
*/
public Builder setOnlineReadOnly(tech.ydb.proto.query.YdbQuery.OnlineModeSettings value) {
if (onlineReadOnlyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
txMode_ = value;
onChanged();
} else {
onlineReadOnlyBuilder_.setMessage(value);
}
txModeCase_ = 2;
return this;
}
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
*/
public Builder setOnlineReadOnly(
tech.ydb.proto.query.YdbQuery.OnlineModeSettings.Builder builderForValue) {
if (onlineReadOnlyBuilder_ == null) {
txMode_ = builderForValue.build();
onChanged();
} else {
onlineReadOnlyBuilder_.setMessage(builderForValue.build());
}
txModeCase_ = 2;
return this;
}
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
*/
public Builder mergeOnlineReadOnly(tech.ydb.proto.query.YdbQuery.OnlineModeSettings value) {
if (onlineReadOnlyBuilder_ == null) {
if (txModeCase_ == 2 &&
txMode_ != tech.ydb.proto.query.YdbQuery.OnlineModeSettings.getDefaultInstance()) {
txMode_ = tech.ydb.proto.query.YdbQuery.OnlineModeSettings.newBuilder((tech.ydb.proto.query.YdbQuery.OnlineModeSettings) txMode_)
.mergeFrom(value).buildPartial();
} else {
txMode_ = value;
}
onChanged();
} else {
if (txModeCase_ == 2) {
onlineReadOnlyBuilder_.mergeFrom(value);
} else {
onlineReadOnlyBuilder_.setMessage(value);
}
}
txModeCase_ = 2;
return this;
}
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
*/
public Builder clearOnlineReadOnly() {
if (onlineReadOnlyBuilder_ == null) {
if (txModeCase_ == 2) {
txModeCase_ = 0;
txMode_ = null;
onChanged();
}
} else {
if (txModeCase_ == 2) {
txModeCase_ = 0;
txMode_ = null;
}
onlineReadOnlyBuilder_.clear();
}
return this;
}
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
*/
public tech.ydb.proto.query.YdbQuery.OnlineModeSettings.Builder getOnlineReadOnlyBuilder() {
return getOnlineReadOnlyFieldBuilder().getBuilder();
}
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.OnlineModeSettingsOrBuilder getOnlineReadOnlyOrBuilder() {
if ((txModeCase_ == 2) && (onlineReadOnlyBuilder_ != null)) {
return onlineReadOnlyBuilder_.getMessageOrBuilder();
} else {
if (txModeCase_ == 2) {
return (tech.ydb.proto.query.YdbQuery.OnlineModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.OnlineModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Query.OnlineModeSettings online_read_only = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.OnlineModeSettings, tech.ydb.proto.query.YdbQuery.OnlineModeSettings.Builder, tech.ydb.proto.query.YdbQuery.OnlineModeSettingsOrBuilder>
getOnlineReadOnlyFieldBuilder() {
if (onlineReadOnlyBuilder_ == null) {
if (!(txModeCase_ == 2)) {
txMode_ = tech.ydb.proto.query.YdbQuery.OnlineModeSettings.getDefaultInstance();
}
onlineReadOnlyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.OnlineModeSettings, tech.ydb.proto.query.YdbQuery.OnlineModeSettings.Builder, tech.ydb.proto.query.YdbQuery.OnlineModeSettingsOrBuilder>(
(tech.ydb.proto.query.YdbQuery.OnlineModeSettings) txMode_,
getParentForChildren(),
isClean());
txMode_ = null;
}
txModeCase_ = 2;
onChanged();
return onlineReadOnlyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.StaleModeSettings, tech.ydb.proto.query.YdbQuery.StaleModeSettings.Builder, tech.ydb.proto.query.YdbQuery.StaleModeSettingsOrBuilder> staleReadOnlyBuilder_;
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
* @return Whether the staleReadOnly field is set.
*/
@java.lang.Override
public boolean hasStaleReadOnly() {
return txModeCase_ == 3;
}
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
* @return The staleReadOnly.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.StaleModeSettings getStaleReadOnly() {
if (staleReadOnlyBuilder_ == null) {
if (txModeCase_ == 3) {
return (tech.ydb.proto.query.YdbQuery.StaleModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.StaleModeSettings.getDefaultInstance();
} else {
if (txModeCase_ == 3) {
return staleReadOnlyBuilder_.getMessage();
}
return tech.ydb.proto.query.YdbQuery.StaleModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
*/
public Builder setStaleReadOnly(tech.ydb.proto.query.YdbQuery.StaleModeSettings value) {
if (staleReadOnlyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
txMode_ = value;
onChanged();
} else {
staleReadOnlyBuilder_.setMessage(value);
}
txModeCase_ = 3;
return this;
}
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
*/
public Builder setStaleReadOnly(
tech.ydb.proto.query.YdbQuery.StaleModeSettings.Builder builderForValue) {
if (staleReadOnlyBuilder_ == null) {
txMode_ = builderForValue.build();
onChanged();
} else {
staleReadOnlyBuilder_.setMessage(builderForValue.build());
}
txModeCase_ = 3;
return this;
}
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
*/
public Builder mergeStaleReadOnly(tech.ydb.proto.query.YdbQuery.StaleModeSettings value) {
if (staleReadOnlyBuilder_ == null) {
if (txModeCase_ == 3 &&
txMode_ != tech.ydb.proto.query.YdbQuery.StaleModeSettings.getDefaultInstance()) {
txMode_ = tech.ydb.proto.query.YdbQuery.StaleModeSettings.newBuilder((tech.ydb.proto.query.YdbQuery.StaleModeSettings) txMode_)
.mergeFrom(value).buildPartial();
} else {
txMode_ = value;
}
onChanged();
} else {
if (txModeCase_ == 3) {
staleReadOnlyBuilder_.mergeFrom(value);
} else {
staleReadOnlyBuilder_.setMessage(value);
}
}
txModeCase_ = 3;
return this;
}
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
*/
public Builder clearStaleReadOnly() {
if (staleReadOnlyBuilder_ == null) {
if (txModeCase_ == 3) {
txModeCase_ = 0;
txMode_ = null;
onChanged();
}
} else {
if (txModeCase_ == 3) {
txModeCase_ = 0;
txMode_ = null;
}
staleReadOnlyBuilder_.clear();
}
return this;
}
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
*/
public tech.ydb.proto.query.YdbQuery.StaleModeSettings.Builder getStaleReadOnlyBuilder() {
return getStaleReadOnlyFieldBuilder().getBuilder();
}
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.StaleModeSettingsOrBuilder getStaleReadOnlyOrBuilder() {
if ((txModeCase_ == 3) && (staleReadOnlyBuilder_ != null)) {
return staleReadOnlyBuilder_.getMessageOrBuilder();
} else {
if (txModeCase_ == 3) {
return (tech.ydb.proto.query.YdbQuery.StaleModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.StaleModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Query.StaleModeSettings stale_read_only = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.StaleModeSettings, tech.ydb.proto.query.YdbQuery.StaleModeSettings.Builder, tech.ydb.proto.query.YdbQuery.StaleModeSettingsOrBuilder>
getStaleReadOnlyFieldBuilder() {
if (staleReadOnlyBuilder_ == null) {
if (!(txModeCase_ == 3)) {
txMode_ = tech.ydb.proto.query.YdbQuery.StaleModeSettings.getDefaultInstance();
}
staleReadOnlyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.StaleModeSettings, tech.ydb.proto.query.YdbQuery.StaleModeSettings.Builder, tech.ydb.proto.query.YdbQuery.StaleModeSettingsOrBuilder>(
(tech.ydb.proto.query.YdbQuery.StaleModeSettings) txMode_,
getParentForChildren(),
isClean());
txMode_ = null;
}
txModeCase_ = 3;
onChanged();
return staleReadOnlyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.SnapshotModeSettings, tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.Builder, tech.ydb.proto.query.YdbQuery.SnapshotModeSettingsOrBuilder> snapshotReadOnlyBuilder_;
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
* @return Whether the snapshotReadOnly field is set.
*/
@java.lang.Override
public boolean hasSnapshotReadOnly() {
return txModeCase_ == 4;
}
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
* @return The snapshotReadOnly.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SnapshotModeSettings getSnapshotReadOnly() {
if (snapshotReadOnlyBuilder_ == null) {
if (txModeCase_ == 4) {
return (tech.ydb.proto.query.YdbQuery.SnapshotModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.getDefaultInstance();
} else {
if (txModeCase_ == 4) {
return snapshotReadOnlyBuilder_.getMessage();
}
return tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
*/
public Builder setSnapshotReadOnly(tech.ydb.proto.query.YdbQuery.SnapshotModeSettings value) {
if (snapshotReadOnlyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
txMode_ = value;
onChanged();
} else {
snapshotReadOnlyBuilder_.setMessage(value);
}
txModeCase_ = 4;
return this;
}
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
*/
public Builder setSnapshotReadOnly(
tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.Builder builderForValue) {
if (snapshotReadOnlyBuilder_ == null) {
txMode_ = builderForValue.build();
onChanged();
} else {
snapshotReadOnlyBuilder_.setMessage(builderForValue.build());
}
txModeCase_ = 4;
return this;
}
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
*/
public Builder mergeSnapshotReadOnly(tech.ydb.proto.query.YdbQuery.SnapshotModeSettings value) {
if (snapshotReadOnlyBuilder_ == null) {
if (txModeCase_ == 4 &&
txMode_ != tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.getDefaultInstance()) {
txMode_ = tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.newBuilder((tech.ydb.proto.query.YdbQuery.SnapshotModeSettings) txMode_)
.mergeFrom(value).buildPartial();
} else {
txMode_ = value;
}
onChanged();
} else {
if (txModeCase_ == 4) {
snapshotReadOnlyBuilder_.mergeFrom(value);
} else {
snapshotReadOnlyBuilder_.setMessage(value);
}
}
txModeCase_ = 4;
return this;
}
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
*/
public Builder clearSnapshotReadOnly() {
if (snapshotReadOnlyBuilder_ == null) {
if (txModeCase_ == 4) {
txModeCase_ = 0;
txMode_ = null;
onChanged();
}
} else {
if (txModeCase_ == 4) {
txModeCase_ = 0;
txMode_ = null;
}
snapshotReadOnlyBuilder_.clear();
}
return this;
}
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
*/
public tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.Builder getSnapshotReadOnlyBuilder() {
return getSnapshotReadOnlyFieldBuilder().getBuilder();
}
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.SnapshotModeSettingsOrBuilder getSnapshotReadOnlyOrBuilder() {
if ((txModeCase_ == 4) && (snapshotReadOnlyBuilder_ != null)) {
return snapshotReadOnlyBuilder_.getMessageOrBuilder();
} else {
if (txModeCase_ == 4) {
return (tech.ydb.proto.query.YdbQuery.SnapshotModeSettings) txMode_;
}
return tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Query.SnapshotModeSettings snapshot_read_only = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.SnapshotModeSettings, tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.Builder, tech.ydb.proto.query.YdbQuery.SnapshotModeSettingsOrBuilder>
getSnapshotReadOnlyFieldBuilder() {
if (snapshotReadOnlyBuilder_ == null) {
if (!(txModeCase_ == 4)) {
txMode_ = tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.getDefaultInstance();
}
snapshotReadOnlyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.SnapshotModeSettings, tech.ydb.proto.query.YdbQuery.SnapshotModeSettings.Builder, tech.ydb.proto.query.YdbQuery.SnapshotModeSettingsOrBuilder>(
(tech.ydb.proto.query.YdbQuery.SnapshotModeSettings) txMode_,
getParentForChildren(),
isClean());
txMode_ = null;
}
txModeCase_ = 4;
onChanged();
return snapshotReadOnlyBuilder_;
}
@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.Query.TransactionSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.TransactionSettings)
private static final tech.ydb.proto.query.YdbQuery.TransactionSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.TransactionSettings();
}
public static tech.ydb.proto.query.YdbQuery.TransactionSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionControlOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.TransactionControl)
com.google.protobuf.MessageOrBuilder {
/**
* string tx_id = 1 [(.Ydb.length) = { ... }
* @return Whether the txId field is set.
*/
boolean hasTxId();
/**
* string tx_id = 1 [(.Ydb.length) = { ... }
* @return The txId.
*/
java.lang.String getTxId();
/**
* string tx_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for txId.
*/
com.google.protobuf.ByteString
getTxIdBytes();
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
* @return Whether the beginTx field is set.
*/
boolean hasBeginTx();
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
* @return The beginTx.
*/
tech.ydb.proto.query.YdbQuery.TransactionSettings getBeginTx();
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
*/
tech.ydb.proto.query.YdbQuery.TransactionSettingsOrBuilder getBeginTxOrBuilder();
/**
* bool commit_tx = 10;
* @return The commitTx.
*/
boolean getCommitTx();
tech.ydb.proto.query.YdbQuery.TransactionControl.TxSelectorCase getTxSelectorCase();
}
/**
* Protobuf type {@code Ydb.Query.TransactionControl}
*/
public static final class TransactionControl extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.TransactionControl)
TransactionControlOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionControl.newBuilder() to construct.
private TransactionControl(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionControl() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionControl();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionControl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionControl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.TransactionControl.class, tech.ydb.proto.query.YdbQuery.TransactionControl.Builder.class);
}
private int txSelectorCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object txSelector_;
public enum TxSelectorCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TX_ID(1),
BEGIN_TX(2),
TXSELECTOR_NOT_SET(0);
private final int value;
private TxSelectorCase(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 TxSelectorCase valueOf(int value) {
return forNumber(value);
}
public static TxSelectorCase forNumber(int value) {
switch (value) {
case 1: return TX_ID;
case 2: return BEGIN_TX;
case 0: return TXSELECTOR_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TxSelectorCase
getTxSelectorCase() {
return TxSelectorCase.forNumber(
txSelectorCase_);
}
public static final int TX_ID_FIELD_NUMBER = 1;
/**
* string tx_id = 1 [(.Ydb.length) = { ... }
* @return Whether the txId field is set.
*/
public boolean hasTxId() {
return txSelectorCase_ == 1;
}
/**
* string tx_id = 1 [(.Ydb.length) = { ... }
* @return The txId.
*/
public java.lang.String getTxId() {
java.lang.Object ref = "";
if (txSelectorCase_ == 1) {
ref = txSelector_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (txSelectorCase_ == 1) {
txSelector_ = s;
}
return s;
}
}
/**
* string tx_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for txId.
*/
public com.google.protobuf.ByteString
getTxIdBytes() {
java.lang.Object ref = "";
if (txSelectorCase_ == 1) {
ref = txSelector_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (txSelectorCase_ == 1) {
txSelector_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BEGIN_TX_FIELD_NUMBER = 2;
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
* @return Whether the beginTx field is set.
*/
@java.lang.Override
public boolean hasBeginTx() {
return txSelectorCase_ == 2;
}
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
* @return The beginTx.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionSettings getBeginTx() {
if (txSelectorCase_ == 2) {
return (tech.ydb.proto.query.YdbQuery.TransactionSettings) txSelector_;
}
return tech.ydb.proto.query.YdbQuery.TransactionSettings.getDefaultInstance();
}
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionSettingsOrBuilder getBeginTxOrBuilder() {
if (txSelectorCase_ == 2) {
return (tech.ydb.proto.query.YdbQuery.TransactionSettings) txSelector_;
}
return tech.ydb.proto.query.YdbQuery.TransactionSettings.getDefaultInstance();
}
public static final int COMMIT_TX_FIELD_NUMBER = 10;
private boolean commitTx_ = false;
/**
* bool commit_tx = 10;
* @return The commitTx.
*/
@java.lang.Override
public boolean getCommitTx() {
return commitTx_;
}
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 (txSelectorCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txSelector_);
}
if (txSelectorCase_ == 2) {
output.writeMessage(2, (tech.ydb.proto.query.YdbQuery.TransactionSettings) txSelector_);
}
if (commitTx_ != false) {
output.writeBool(10, commitTx_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (txSelectorCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txSelector_);
}
if (txSelectorCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (tech.ydb.proto.query.YdbQuery.TransactionSettings) txSelector_);
}
if (commitTx_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, commitTx_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.TransactionControl)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.TransactionControl other = (tech.ydb.proto.query.YdbQuery.TransactionControl) obj;
if (getCommitTx()
!= other.getCommitTx()) return false;
if (!getTxSelectorCase().equals(other.getTxSelectorCase())) return false;
switch (txSelectorCase_) {
case 1:
if (!getTxId()
.equals(other.getTxId())) return false;
break;
case 2:
if (!getBeginTx()
.equals(other.getBeginTx())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + COMMIT_TX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCommitTx());
switch (txSelectorCase_) {
case 1:
hash = (37 * hash) + TX_ID_FIELD_NUMBER;
hash = (53 * hash) + getTxId().hashCode();
break;
case 2:
hash = (37 * hash) + BEGIN_TX_FIELD_NUMBER;
hash = (53 * hash) + getBeginTx().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.TransactionControl parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.TransactionControl parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionControl parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.TransactionControl parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionControl parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.TransactionControl parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionControl parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.TransactionControl parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionControl parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.TransactionControl parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionControl parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.TransactionControl parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.TransactionControl prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.TransactionControl}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.TransactionControl)
tech.ydb.proto.query.YdbQuery.TransactionControlOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionControl_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionControl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.TransactionControl.class, tech.ydb.proto.query.YdbQuery.TransactionControl.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.TransactionControl.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (beginTxBuilder_ != null) {
beginTxBuilder_.clear();
}
commitTx_ = false;
txSelectorCase_ = 0;
txSelector_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionControl_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionControl getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.TransactionControl.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionControl build() {
tech.ydb.proto.query.YdbQuery.TransactionControl result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionControl buildPartial() {
tech.ydb.proto.query.YdbQuery.TransactionControl result = new tech.ydb.proto.query.YdbQuery.TransactionControl(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.TransactionControl result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.commitTx_ = commitTx_;
}
}
private void buildPartialOneofs(tech.ydb.proto.query.YdbQuery.TransactionControl result) {
result.txSelectorCase_ = txSelectorCase_;
result.txSelector_ = this.txSelector_;
if (txSelectorCase_ == 2 &&
beginTxBuilder_ != null) {
result.txSelector_ = beginTxBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.TransactionControl) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.TransactionControl)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.TransactionControl other) {
if (other == tech.ydb.proto.query.YdbQuery.TransactionControl.getDefaultInstance()) return this;
if (other.getCommitTx() != false) {
setCommitTx(other.getCommitTx());
}
switch (other.getTxSelectorCase()) {
case TX_ID: {
txSelectorCase_ = 1;
txSelector_ = other.txSelector_;
onChanged();
break;
}
case BEGIN_TX: {
mergeBeginTx(other.getBeginTx());
break;
}
case TXSELECTOR_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
txSelectorCase_ = 1;
txSelector_ = s;
break;
} // case 10
case 18: {
input.readMessage(
getBeginTxFieldBuilder().getBuilder(),
extensionRegistry);
txSelectorCase_ = 2;
break;
} // case 18
case 80: {
commitTx_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 80
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int txSelectorCase_ = 0;
private java.lang.Object txSelector_;
public TxSelectorCase
getTxSelectorCase() {
return TxSelectorCase.forNumber(
txSelectorCase_);
}
public Builder clearTxSelector() {
txSelectorCase_ = 0;
txSelector_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
* string tx_id = 1 [(.Ydb.length) = { ... }
* @return Whether the txId field is set.
*/
@java.lang.Override
public boolean hasTxId() {
return txSelectorCase_ == 1;
}
/**
* string tx_id = 1 [(.Ydb.length) = { ... }
* @return The txId.
*/
@java.lang.Override
public java.lang.String getTxId() {
java.lang.Object ref = "";
if (txSelectorCase_ == 1) {
ref = txSelector_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (txSelectorCase_ == 1) {
txSelector_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string tx_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for txId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTxIdBytes() {
java.lang.Object ref = "";
if (txSelectorCase_ == 1) {
ref = txSelector_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (txSelectorCase_ == 1) {
txSelector_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string tx_id = 1 [(.Ydb.length) = { ... }
* @param value The txId to set.
* @return This builder for chaining.
*/
public Builder setTxId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
txSelectorCase_ = 1;
txSelector_ = value;
onChanged();
return this;
}
/**
* string tx_id = 1 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearTxId() {
if (txSelectorCase_ == 1) {
txSelectorCase_ = 0;
txSelector_ = null;
onChanged();
}
return this;
}
/**
* string tx_id = 1 [(.Ydb.length) = { ... }
* @param value The bytes for txId to set.
* @return This builder for chaining.
*/
public Builder setTxIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
txSelectorCase_ = 1;
txSelector_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionSettings, tech.ydb.proto.query.YdbQuery.TransactionSettings.Builder, tech.ydb.proto.query.YdbQuery.TransactionSettingsOrBuilder> beginTxBuilder_;
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
* @return Whether the beginTx field is set.
*/
@java.lang.Override
public boolean hasBeginTx() {
return txSelectorCase_ == 2;
}
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
* @return The beginTx.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionSettings getBeginTx() {
if (beginTxBuilder_ == null) {
if (txSelectorCase_ == 2) {
return (tech.ydb.proto.query.YdbQuery.TransactionSettings) txSelector_;
}
return tech.ydb.proto.query.YdbQuery.TransactionSettings.getDefaultInstance();
} else {
if (txSelectorCase_ == 2) {
return beginTxBuilder_.getMessage();
}
return tech.ydb.proto.query.YdbQuery.TransactionSettings.getDefaultInstance();
}
}
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
*/
public Builder setBeginTx(tech.ydb.proto.query.YdbQuery.TransactionSettings value) {
if (beginTxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
txSelector_ = value;
onChanged();
} else {
beginTxBuilder_.setMessage(value);
}
txSelectorCase_ = 2;
return this;
}
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
*/
public Builder setBeginTx(
tech.ydb.proto.query.YdbQuery.TransactionSettings.Builder builderForValue) {
if (beginTxBuilder_ == null) {
txSelector_ = builderForValue.build();
onChanged();
} else {
beginTxBuilder_.setMessage(builderForValue.build());
}
txSelectorCase_ = 2;
return this;
}
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
*/
public Builder mergeBeginTx(tech.ydb.proto.query.YdbQuery.TransactionSettings value) {
if (beginTxBuilder_ == null) {
if (txSelectorCase_ == 2 &&
txSelector_ != tech.ydb.proto.query.YdbQuery.TransactionSettings.getDefaultInstance()) {
txSelector_ = tech.ydb.proto.query.YdbQuery.TransactionSettings.newBuilder((tech.ydb.proto.query.YdbQuery.TransactionSettings) txSelector_)
.mergeFrom(value).buildPartial();
} else {
txSelector_ = value;
}
onChanged();
} else {
if (txSelectorCase_ == 2) {
beginTxBuilder_.mergeFrom(value);
} else {
beginTxBuilder_.setMessage(value);
}
}
txSelectorCase_ = 2;
return this;
}
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
*/
public Builder clearBeginTx() {
if (beginTxBuilder_ == null) {
if (txSelectorCase_ == 2) {
txSelectorCase_ = 0;
txSelector_ = null;
onChanged();
}
} else {
if (txSelectorCase_ == 2) {
txSelectorCase_ = 0;
txSelector_ = null;
}
beginTxBuilder_.clear();
}
return this;
}
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
*/
public tech.ydb.proto.query.YdbQuery.TransactionSettings.Builder getBeginTxBuilder() {
return getBeginTxFieldBuilder().getBuilder();
}
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionSettingsOrBuilder getBeginTxOrBuilder() {
if ((txSelectorCase_ == 2) && (beginTxBuilder_ != null)) {
return beginTxBuilder_.getMessageOrBuilder();
} else {
if (txSelectorCase_ == 2) {
return (tech.ydb.proto.query.YdbQuery.TransactionSettings) txSelector_;
}
return tech.ydb.proto.query.YdbQuery.TransactionSettings.getDefaultInstance();
}
}
/**
* .Ydb.Query.TransactionSettings begin_tx = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionSettings, tech.ydb.proto.query.YdbQuery.TransactionSettings.Builder, tech.ydb.proto.query.YdbQuery.TransactionSettingsOrBuilder>
getBeginTxFieldBuilder() {
if (beginTxBuilder_ == null) {
if (!(txSelectorCase_ == 2)) {
txSelector_ = tech.ydb.proto.query.YdbQuery.TransactionSettings.getDefaultInstance();
}
beginTxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionSettings, tech.ydb.proto.query.YdbQuery.TransactionSettings.Builder, tech.ydb.proto.query.YdbQuery.TransactionSettingsOrBuilder>(
(tech.ydb.proto.query.YdbQuery.TransactionSettings) txSelector_,
getParentForChildren(),
isClean());
txSelector_ = null;
}
txSelectorCase_ = 2;
onChanged();
return beginTxBuilder_;
}
private boolean commitTx_ ;
/**
* bool commit_tx = 10;
* @return The commitTx.
*/
@java.lang.Override
public boolean getCommitTx() {
return commitTx_;
}
/**
* bool commit_tx = 10;
* @param value The commitTx to set.
* @return This builder for chaining.
*/
public Builder setCommitTx(boolean value) {
commitTx_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bool commit_tx = 10;
* @return This builder for chaining.
*/
public Builder clearCommitTx() {
bitField0_ = (bitField0_ & ~0x00000004);
commitTx_ = 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.Query.TransactionControl)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.TransactionControl)
private static final tech.ydb.proto.query.YdbQuery.TransactionControl DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.TransactionControl();
}
public static tech.ydb.proto.query.YdbQuery.TransactionControl getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionControl parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionControl getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BeginTransactionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.BeginTransactionRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
java.lang.String getSessionId();
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
com.google.protobuf.ByteString
getSessionIdBytes();
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
* @return Whether the txSettings field is set.
*/
boolean hasTxSettings();
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
* @return The txSettings.
*/
tech.ydb.proto.query.YdbQuery.TransactionSettings getTxSettings();
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
*/
tech.ydb.proto.query.YdbQuery.TransactionSettingsOrBuilder getTxSettingsOrBuilder();
}
/**
* Protobuf type {@code Ydb.Query.BeginTransactionRequest}
*/
public static final class BeginTransactionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.BeginTransactionRequest)
BeginTransactionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BeginTransactionRequest.newBuilder() to construct.
private BeginTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BeginTransactionRequest() {
sessionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BeginTransactionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_BeginTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_BeginTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.BeginTransactionRequest.class, tech.ydb.proto.query.YdbQuery.BeginTransactionRequest.Builder.class);
}
private int bitField0_;
public static final int SESSION_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sessionId_ = "";
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
}
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TX_SETTINGS_FIELD_NUMBER = 2;
private tech.ydb.proto.query.YdbQuery.TransactionSettings txSettings_;
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
* @return Whether the txSettings field is set.
*/
@java.lang.Override
public boolean hasTxSettings() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
* @return The txSettings.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionSettings getTxSettings() {
return txSettings_ == null ? tech.ydb.proto.query.YdbQuery.TransactionSettings.getDefaultInstance() : txSettings_;
}
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionSettingsOrBuilder getTxSettingsOrBuilder() {
return txSettings_ == null ? tech.ydb.proto.query.YdbQuery.TransactionSettings.getDefaultInstance() : txSettings_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getTxSettings());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTxSettings());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.BeginTransactionRequest)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.BeginTransactionRequest other = (tech.ydb.proto.query.YdbQuery.BeginTransactionRequest) obj;
if (!getSessionId()
.equals(other.getSessionId())) return false;
if (hasTxSettings() != other.hasTxSettings()) return false;
if (hasTxSettings()) {
if (!getTxSettings()
.equals(other.getTxSettings())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSessionId().hashCode();
if (hasTxSettings()) {
hash = (37 * hash) + TX_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getTxSettings().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.BeginTransactionRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.BeginTransactionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.BeginTransactionRequest)
tech.ydb.proto.query.YdbQuery.BeginTransactionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_BeginTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_BeginTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.BeginTransactionRequest.class, tech.ydb.proto.query.YdbQuery.BeginTransactionRequest.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.BeginTransactionRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTxSettingsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sessionId_ = "";
txSettings_ = null;
if (txSettingsBuilder_ != null) {
txSettingsBuilder_.dispose();
txSettingsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_BeginTransactionRequest_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.BeginTransactionRequest getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.BeginTransactionRequest.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.BeginTransactionRequest build() {
tech.ydb.proto.query.YdbQuery.BeginTransactionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.BeginTransactionRequest buildPartial() {
tech.ydb.proto.query.YdbQuery.BeginTransactionRequest result = new tech.ydb.proto.query.YdbQuery.BeginTransactionRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.BeginTransactionRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sessionId_ = sessionId_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.txSettings_ = txSettingsBuilder_ == null
? txSettings_
: txSettingsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.BeginTransactionRequest) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.BeginTransactionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.BeginTransactionRequest other) {
if (other == tech.ydb.proto.query.YdbQuery.BeginTransactionRequest.getDefaultInstance()) return this;
if (!other.getSessionId().isEmpty()) {
sessionId_ = other.sessionId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasTxSettings()) {
mergeTxSettings(other.getTxSettings());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
sessionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getTxSettingsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object sessionId_ = "";
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearSessionId() {
sessionId_ = getDefaultInstance().getSessionId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @param value The bytes for sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private tech.ydb.proto.query.YdbQuery.TransactionSettings txSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionSettings, tech.ydb.proto.query.YdbQuery.TransactionSettings.Builder, tech.ydb.proto.query.YdbQuery.TransactionSettingsOrBuilder> txSettingsBuilder_;
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
* @return Whether the txSettings field is set.
*/
public boolean hasTxSettings() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
* @return The txSettings.
*/
public tech.ydb.proto.query.YdbQuery.TransactionSettings getTxSettings() {
if (txSettingsBuilder_ == null) {
return txSettings_ == null ? tech.ydb.proto.query.YdbQuery.TransactionSettings.getDefaultInstance() : txSettings_;
} else {
return txSettingsBuilder_.getMessage();
}
}
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
*/
public Builder setTxSettings(tech.ydb.proto.query.YdbQuery.TransactionSettings value) {
if (txSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
txSettings_ = value;
} else {
txSettingsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
*/
public Builder setTxSettings(
tech.ydb.proto.query.YdbQuery.TransactionSettings.Builder builderForValue) {
if (txSettingsBuilder_ == null) {
txSettings_ = builderForValue.build();
} else {
txSettingsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
*/
public Builder mergeTxSettings(tech.ydb.proto.query.YdbQuery.TransactionSettings value) {
if (txSettingsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
txSettings_ != null &&
txSettings_ != tech.ydb.proto.query.YdbQuery.TransactionSettings.getDefaultInstance()) {
getTxSettingsBuilder().mergeFrom(value);
} else {
txSettings_ = value;
}
} else {
txSettingsBuilder_.mergeFrom(value);
}
if (txSettings_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
*/
public Builder clearTxSettings() {
bitField0_ = (bitField0_ & ~0x00000002);
txSettings_ = null;
if (txSettingsBuilder_ != null) {
txSettingsBuilder_.dispose();
txSettingsBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
*/
public tech.ydb.proto.query.YdbQuery.TransactionSettings.Builder getTxSettingsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTxSettingsFieldBuilder().getBuilder();
}
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
*/
public tech.ydb.proto.query.YdbQuery.TransactionSettingsOrBuilder getTxSettingsOrBuilder() {
if (txSettingsBuilder_ != null) {
return txSettingsBuilder_.getMessageOrBuilder();
} else {
return txSettings_ == null ?
tech.ydb.proto.query.YdbQuery.TransactionSettings.getDefaultInstance() : txSettings_;
}
}
/**
* .Ydb.Query.TransactionSettings tx_settings = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionSettings, tech.ydb.proto.query.YdbQuery.TransactionSettings.Builder, tech.ydb.proto.query.YdbQuery.TransactionSettingsOrBuilder>
getTxSettingsFieldBuilder() {
if (txSettingsBuilder_ == null) {
txSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionSettings, tech.ydb.proto.query.YdbQuery.TransactionSettings.Builder, tech.ydb.proto.query.YdbQuery.TransactionSettingsOrBuilder>(
getTxSettings(),
getParentForChildren(),
isClean());
txSettings_ = null;
}
return txSettingsBuilder_;
}
@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.Query.BeginTransactionRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.BeginTransactionRequest)
private static final tech.ydb.proto.query.YdbQuery.BeginTransactionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.BeginTransactionRequest();
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BeginTransactionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.BeginTransactionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionMetaOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.TransactionMeta)
com.google.protobuf.MessageOrBuilder {
/**
*
* Transaction identifier
*
*
* string id = 1 [(.Ydb.length) = { ... }
* @return The id.
*/
java.lang.String getId();
/**
*
* Transaction identifier
*
*
* string id = 1 [(.Ydb.length) = { ... }
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
}
/**
* Protobuf type {@code Ydb.Query.TransactionMeta}
*/
public static final class TransactionMeta extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.TransactionMeta)
TransactionMetaOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionMeta.newBuilder() to construct.
private TransactionMeta(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionMeta() {
id_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionMeta();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.TransactionMeta.class, tech.ydb.proto.query.YdbQuery.TransactionMeta.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object id_ = "";
/**
*
* Transaction identifier
*
*
* string id = 1 [(.Ydb.length) = { ... }
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* Transaction identifier
*
*
* string id = 1 [(.Ydb.length) = { ... }
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.TransactionMeta)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.TransactionMeta other = (tech.ydb.proto.query.YdbQuery.TransactionMeta) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.TransactionMeta parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.TransactionMeta parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionMeta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.TransactionMeta parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionMeta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.TransactionMeta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.TransactionMeta parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.TransactionMeta parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.TransactionMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.TransactionMeta parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.TransactionMeta prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.TransactionMeta}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.TransactionMeta)
tech.ydb.proto.query.YdbQuery.TransactionMetaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.TransactionMeta.class, tech.ydb.proto.query.YdbQuery.TransactionMeta.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.TransactionMeta.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_TransactionMeta_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionMeta getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.TransactionMeta.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionMeta build() {
tech.ydb.proto.query.YdbQuery.TransactionMeta result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionMeta buildPartial() {
tech.ydb.proto.query.YdbQuery.TransactionMeta result = new tech.ydb.proto.query.YdbQuery.TransactionMeta(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.TransactionMeta result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.TransactionMeta) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.TransactionMeta)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.TransactionMeta other) {
if (other == tech.ydb.proto.query.YdbQuery.TransactionMeta.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
id_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* Transaction identifier
*
*
* string id = 1 [(.Ydb.length) = { ... }
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Transaction identifier
*
*
* string id = 1 [(.Ydb.length) = { ... }
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Transaction identifier
*
*
* string id = 1 [(.Ydb.length) = { ... }
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Transaction identifier
*
*
* string id = 1 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Transaction identifier
*
*
* string id = 1 [(.Ydb.length) = { ... }
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000001;
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.Query.TransactionMeta)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.TransactionMeta)
private static final tech.ydb.proto.query.YdbQuery.TransactionMeta DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.TransactionMeta();
}
public static tech.ydb.proto.query.YdbQuery.TransactionMeta getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionMeta parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionMeta getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BeginTransactionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.BeginTransactionResponse)
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.
*/
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List
getIssuesList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index);
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
int getIssuesCount();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index);
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
* @return Whether the txMeta field is set.
*/
boolean hasTxMeta();
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
* @return The txMeta.
*/
tech.ydb.proto.query.YdbQuery.TransactionMeta getTxMeta();
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
*/
tech.ydb.proto.query.YdbQuery.TransactionMetaOrBuilder getTxMetaOrBuilder();
}
/**
* Protobuf type {@code Ydb.Query.BeginTransactionResponse}
*/
public static final class BeginTransactionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.BeginTransactionResponse)
BeginTransactionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BeginTransactionResponse.newBuilder() to construct.
private BeginTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BeginTransactionResponse() {
status_ = 0;
issues_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BeginTransactionResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_BeginTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_BeginTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.BeginTransactionResponse.class, tech.ydb.proto.query.YdbQuery.BeginTransactionResponse.Builder.class);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
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;
* @return The status.
*/
@java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
public static final int ISSUES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
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 tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) {
return issues_.get(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
@java.lang.Override
public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index) {
return issues_.get(index);
}
public static final int TX_META_FIELD_NUMBER = 3;
private tech.ydb.proto.query.YdbQuery.TransactionMeta txMeta_;
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
* @return Whether the txMeta field is set.
*/
@java.lang.Override
public boolean hasTxMeta() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
* @return The txMeta.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionMeta getTxMeta() {
return txMeta_ == null ? tech.ydb.proto.query.YdbQuery.TransactionMeta.getDefaultInstance() : txMeta_;
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionMetaOrBuilder getTxMetaOrBuilder() {
return txMeta_ == null ? tech.ydb.proto.query.YdbQuery.TransactionMeta.getDefaultInstance() : txMeta_;
}
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_ != tech.ydb.proto.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));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getTxMeta());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != tech.ydb.proto.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));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTxMeta());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.BeginTransactionResponse)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.BeginTransactionResponse other = (tech.ydb.proto.query.YdbQuery.BeginTransactionResponse) obj;
if (status_ != other.status_) return false;
if (!getIssuesList()
.equals(other.getIssuesList())) return false;
if (hasTxMeta() != other.hasTxMeta()) return false;
if (hasTxMeta()) {
if (!getTxMeta()
.equals(other.getTxMeta())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getIssuesCount() > 0) {
hash = (37 * hash) + ISSUES_FIELD_NUMBER;
hash = (53 * hash) + getIssuesList().hashCode();
}
if (hasTxMeta()) {
hash = (37 * hash) + TX_META_FIELD_NUMBER;
hash = (53 * hash) + getTxMeta().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.BeginTransactionResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.BeginTransactionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.BeginTransactionResponse)
tech.ydb.proto.query.YdbQuery.BeginTransactionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_BeginTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_BeginTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.BeginTransactionResponse.class, tech.ydb.proto.query.YdbQuery.BeginTransactionResponse.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.BeginTransactionResponse.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();
getTxMetaFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = 0;
if (issuesBuilder_ == null) {
issues_ = java.util.Collections.emptyList();
} else {
issues_ = null;
issuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
txMeta_ = null;
if (txMetaBuilder_ != null) {
txMetaBuilder_.dispose();
txMetaBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_BeginTransactionResponse_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.BeginTransactionResponse getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.BeginTransactionResponse.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.BeginTransactionResponse build() {
tech.ydb.proto.query.YdbQuery.BeginTransactionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.BeginTransactionResponse buildPartial() {
tech.ydb.proto.query.YdbQuery.BeginTransactionResponse result = new tech.ydb.proto.query.YdbQuery.BeginTransactionResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.ydb.proto.query.YdbQuery.BeginTransactionResponse result) {
if (issuesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
issues_ = java.util.Collections.unmodifiableList(issues_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.issues_ = issues_;
} else {
result.issues_ = issuesBuilder_.build();
}
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.BeginTransactionResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.txMeta_ = txMetaBuilder_ == null
? txMeta_
: txMetaBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.BeginTransactionResponse) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.BeginTransactionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.BeginTransactionResponse other) {
if (other == tech.ydb.proto.query.YdbQuery.BeginTransactionResponse.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_ & ~0x00000002);
} else {
ensureIssuesIsMutable();
issues_.addAll(other.issues_);
}
onChanged();
}
} else {
if (!other.issues_.isEmpty()) {
if (issuesBuilder_.isEmpty()) {
issuesBuilder_.dispose();
issuesBuilder_ = null;
issues_ = other.issues_;
bitField0_ = (bitField0_ & ~0x00000002);
issuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIssuesFieldBuilder() : null;
} else {
issuesBuilder_.addAllMessages(other.issues_);
}
}
}
if (other.hasTxMeta()) {
mergeTxMeta(other.getTxMeta());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
status_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
tech.ydb.proto.YdbIssueMessage.IssueMessage m =
input.readMessage(
tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(),
extensionRegistry);
if (issuesBuilder_ == null) {
ensureIssuesIsMutable();
issues_.add(m);
} else {
issuesBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
input.readMessage(
getTxMetaFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return The status.
*/
@java.lang.Override
public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private java.util.List issues_ =
java.util.Collections.emptyList();
private void ensureIssuesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
issues_ = new java.util.ArrayList(issues_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.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 tech.ydb.proto.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, tech.ydb.proto.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, tech.ydb.proto.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(tech.ydb.proto.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, tech.ydb.proto.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(
tech.ydb.proto.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, tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessage> 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_ & ~0x00000002);
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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder(
int index) {
return getIssuesFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList() {
if (issuesBuilder_ != null) {
return issuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(issues_);
}
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() {
return getIssuesFieldBuilder().addBuilder(
tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder(
int index) {
return getIssuesFieldBuilder().addBuilder(
index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public java.util.List
getIssuesBuilderList() {
return getIssuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesFieldBuilder() {
if (issuesBuilder_ == null) {
issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>(
issues_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
issues_ = null;
}
return issuesBuilder_;
}
private tech.ydb.proto.query.YdbQuery.TransactionMeta txMeta_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionMeta, tech.ydb.proto.query.YdbQuery.TransactionMeta.Builder, tech.ydb.proto.query.YdbQuery.TransactionMetaOrBuilder> txMetaBuilder_;
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
* @return Whether the txMeta field is set.
*/
public boolean hasTxMeta() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
* @return The txMeta.
*/
public tech.ydb.proto.query.YdbQuery.TransactionMeta getTxMeta() {
if (txMetaBuilder_ == null) {
return txMeta_ == null ? tech.ydb.proto.query.YdbQuery.TransactionMeta.getDefaultInstance() : txMeta_;
} else {
return txMetaBuilder_.getMessage();
}
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
*/
public Builder setTxMeta(tech.ydb.proto.query.YdbQuery.TransactionMeta value) {
if (txMetaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
txMeta_ = value;
} else {
txMetaBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
*/
public Builder setTxMeta(
tech.ydb.proto.query.YdbQuery.TransactionMeta.Builder builderForValue) {
if (txMetaBuilder_ == null) {
txMeta_ = builderForValue.build();
} else {
txMetaBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
*/
public Builder mergeTxMeta(tech.ydb.proto.query.YdbQuery.TransactionMeta value) {
if (txMetaBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
txMeta_ != null &&
txMeta_ != tech.ydb.proto.query.YdbQuery.TransactionMeta.getDefaultInstance()) {
getTxMetaBuilder().mergeFrom(value);
} else {
txMeta_ = value;
}
} else {
txMetaBuilder_.mergeFrom(value);
}
if (txMeta_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
*/
public Builder clearTxMeta() {
bitField0_ = (bitField0_ & ~0x00000004);
txMeta_ = null;
if (txMetaBuilder_ != null) {
txMetaBuilder_.dispose();
txMetaBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
*/
public tech.ydb.proto.query.YdbQuery.TransactionMeta.Builder getTxMetaBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTxMetaFieldBuilder().getBuilder();
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
*/
public tech.ydb.proto.query.YdbQuery.TransactionMetaOrBuilder getTxMetaOrBuilder() {
if (txMetaBuilder_ != null) {
return txMetaBuilder_.getMessageOrBuilder();
} else {
return txMeta_ == null ?
tech.ydb.proto.query.YdbQuery.TransactionMeta.getDefaultInstance() : txMeta_;
}
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionMeta, tech.ydb.proto.query.YdbQuery.TransactionMeta.Builder, tech.ydb.proto.query.YdbQuery.TransactionMetaOrBuilder>
getTxMetaFieldBuilder() {
if (txMetaBuilder_ == null) {
txMetaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionMeta, tech.ydb.proto.query.YdbQuery.TransactionMeta.Builder, tech.ydb.proto.query.YdbQuery.TransactionMetaOrBuilder>(
getTxMeta(),
getParentForChildren(),
isClean());
txMeta_ = null;
}
return txMetaBuilder_;
}
@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.Query.BeginTransactionResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.BeginTransactionResponse)
private static final tech.ydb.proto.query.YdbQuery.BeginTransactionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.BeginTransactionResponse();
}
public static tech.ydb.proto.query.YdbQuery.BeginTransactionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BeginTransactionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.BeginTransactionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommitTransactionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.CommitTransactionRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
java.lang.String getSessionId();
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
com.google.protobuf.ByteString
getSessionIdBytes();
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @return The txId.
*/
java.lang.String getTxId();
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @return The bytes for txId.
*/
com.google.protobuf.ByteString
getTxIdBytes();
}
/**
* Protobuf type {@code Ydb.Query.CommitTransactionRequest}
*/
public static final class CommitTransactionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.CommitTransactionRequest)
CommitTransactionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommitTransactionRequest.newBuilder() to construct.
private CommitTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommitTransactionRequest() {
sessionId_ = "";
txId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CommitTransactionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CommitTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CommitTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.CommitTransactionRequest.class, tech.ydb.proto.query.YdbQuery.CommitTransactionRequest.Builder.class);
}
public static final int SESSION_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sessionId_ = "";
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
}
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TX_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object txId_ = "";
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @return The txId.
*/
@java.lang.Override
public java.lang.String getTxId() {
java.lang.Object ref = txId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
txId_ = s;
return s;
}
}
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @return The bytes for txId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTxIdBytes() {
java.lang.Object ref = txId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
txId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, txId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, txId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.CommitTransactionRequest)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.CommitTransactionRequest other = (tech.ydb.proto.query.YdbQuery.CommitTransactionRequest) obj;
if (!getSessionId()
.equals(other.getSessionId())) return false;
if (!getTxId()
.equals(other.getTxId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSessionId().hashCode();
hash = (37 * hash) + TX_ID_FIELD_NUMBER;
hash = (53 * hash) + getTxId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.CommitTransactionRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.CommitTransactionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.CommitTransactionRequest)
tech.ydb.proto.query.YdbQuery.CommitTransactionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CommitTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CommitTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.CommitTransactionRequest.class, tech.ydb.proto.query.YdbQuery.CommitTransactionRequest.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.CommitTransactionRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sessionId_ = "";
txId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CommitTransactionRequest_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CommitTransactionRequest getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.CommitTransactionRequest.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CommitTransactionRequest build() {
tech.ydb.proto.query.YdbQuery.CommitTransactionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CommitTransactionRequest buildPartial() {
tech.ydb.proto.query.YdbQuery.CommitTransactionRequest result = new tech.ydb.proto.query.YdbQuery.CommitTransactionRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.CommitTransactionRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sessionId_ = sessionId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.txId_ = txId_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.CommitTransactionRequest) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.CommitTransactionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.CommitTransactionRequest other) {
if (other == tech.ydb.proto.query.YdbQuery.CommitTransactionRequest.getDefaultInstance()) return this;
if (!other.getSessionId().isEmpty()) {
sessionId_ = other.sessionId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getTxId().isEmpty()) {
txId_ = other.txId_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
sessionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
txId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object sessionId_ = "";
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearSessionId() {
sessionId_ = getDefaultInstance().getSessionId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @param value The bytes for sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object txId_ = "";
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @return The txId.
*/
public java.lang.String getTxId() {
java.lang.Object ref = txId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
txId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @return The bytes for txId.
*/
public com.google.protobuf.ByteString
getTxIdBytes() {
java.lang.Object ref = txId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
txId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @param value The txId to set.
* @return This builder for chaining.
*/
public Builder setTxId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
txId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearTxId() {
txId_ = getDefaultInstance().getTxId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @param value The bytes for txId to set.
* @return This builder for chaining.
*/
public Builder setTxIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
txId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Query.CommitTransactionRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.CommitTransactionRequest)
private static final tech.ydb.proto.query.YdbQuery.CommitTransactionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.CommitTransactionRequest();
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommitTransactionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CommitTransactionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommitTransactionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.CommitTransactionResponse)
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.
*/
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List
getIssuesList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index);
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
int getIssuesCount();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Query.CommitTransactionResponse}
*/
public static final class CommitTransactionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.CommitTransactionResponse)
CommitTransactionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommitTransactionResponse.newBuilder() to construct.
private CommitTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommitTransactionResponse() {
status_ = 0;
issues_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CommitTransactionResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CommitTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CommitTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.CommitTransactionResponse.class, tech.ydb.proto.query.YdbQuery.CommitTransactionResponse.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
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;
* @return The status.
*/
@java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
public static final int ISSUES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
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 tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) {
return issues_.get(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
@java.lang.Override
public tech.ydb.proto.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_ != tech.ydb.proto.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));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != tech.ydb.proto.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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.CommitTransactionResponse)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.CommitTransactionResponse other = (tech.ydb.proto.query.YdbQuery.CommitTransactionResponse) obj;
if (status_ != other.status_) return false;
if (!getIssuesList()
.equals(other.getIssuesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getIssuesCount() > 0) {
hash = (37 * hash) + ISSUES_FIELD_NUMBER;
hash = (53 * hash) + getIssuesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.CommitTransactionResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.CommitTransactionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.CommitTransactionResponse)
tech.ydb.proto.query.YdbQuery.CommitTransactionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CommitTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CommitTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.CommitTransactionResponse.class, tech.ydb.proto.query.YdbQuery.CommitTransactionResponse.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.CommitTransactionResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = 0;
if (issuesBuilder_ == null) {
issues_ = java.util.Collections.emptyList();
} else {
issues_ = null;
issuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_CommitTransactionResponse_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CommitTransactionResponse getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.CommitTransactionResponse.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CommitTransactionResponse build() {
tech.ydb.proto.query.YdbQuery.CommitTransactionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CommitTransactionResponse buildPartial() {
tech.ydb.proto.query.YdbQuery.CommitTransactionResponse result = new tech.ydb.proto.query.YdbQuery.CommitTransactionResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.ydb.proto.query.YdbQuery.CommitTransactionResponse result) {
if (issuesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
issues_ = java.util.Collections.unmodifiableList(issues_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.issues_ = issues_;
} else {
result.issues_ = issuesBuilder_.build();
}
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.CommitTransactionResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.CommitTransactionResponse) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.CommitTransactionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.CommitTransactionResponse other) {
if (other == tech.ydb.proto.query.YdbQuery.CommitTransactionResponse.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_ & ~0x00000002);
} else {
ensureIssuesIsMutable();
issues_.addAll(other.issues_);
}
onChanged();
}
} else {
if (!other.issues_.isEmpty()) {
if (issuesBuilder_.isEmpty()) {
issuesBuilder_.dispose();
issuesBuilder_ = null;
issues_ = other.issues_;
bitField0_ = (bitField0_ & ~0x00000002);
issuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIssuesFieldBuilder() : null;
} else {
issuesBuilder_.addAllMessages(other.issues_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
status_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
tech.ydb.proto.YdbIssueMessage.IssueMessage m =
input.readMessage(
tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(),
extensionRegistry);
if (issuesBuilder_ == null) {
ensureIssuesIsMutable();
issues_.add(m);
} else {
issuesBuilder_.addMessage(m);
}
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return The status.
*/
@java.lang.Override
public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private java.util.List issues_ =
java.util.Collections.emptyList();
private void ensureIssuesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
issues_ = new java.util.ArrayList(issues_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.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 tech.ydb.proto.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, tech.ydb.proto.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, tech.ydb.proto.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(tech.ydb.proto.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, tech.ydb.proto.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(
tech.ydb.proto.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, tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessage> 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_ & ~0x00000002);
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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder(
int index) {
return getIssuesFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList() {
if (issuesBuilder_ != null) {
return issuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(issues_);
}
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() {
return getIssuesFieldBuilder().addBuilder(
tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder(
int index) {
return getIssuesFieldBuilder().addBuilder(
index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public java.util.List
getIssuesBuilderList() {
return getIssuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesFieldBuilder() {
if (issuesBuilder_ == null) {
issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>(
issues_,
((bitField0_ & 0x00000002) != 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.Query.CommitTransactionResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.CommitTransactionResponse)
private static final tech.ydb.proto.query.YdbQuery.CommitTransactionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.CommitTransactionResponse();
}
public static tech.ydb.proto.query.YdbQuery.CommitTransactionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommitTransactionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.CommitTransactionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RollbackTransactionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.RollbackTransactionRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
java.lang.String getSessionId();
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
com.google.protobuf.ByteString
getSessionIdBytes();
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @return The txId.
*/
java.lang.String getTxId();
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @return The bytes for txId.
*/
com.google.protobuf.ByteString
getTxIdBytes();
}
/**
* Protobuf type {@code Ydb.Query.RollbackTransactionRequest}
*/
public static final class RollbackTransactionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.RollbackTransactionRequest)
RollbackTransactionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RollbackTransactionRequest.newBuilder() to construct.
private RollbackTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RollbackTransactionRequest() {
sessionId_ = "";
txId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RollbackTransactionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_RollbackTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_RollbackTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest.class, tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest.Builder.class);
}
public static final int SESSION_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sessionId_ = "";
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
}
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TX_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object txId_ = "";
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @return The txId.
*/
@java.lang.Override
public java.lang.String getTxId() {
java.lang.Object ref = txId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
txId_ = s;
return s;
}
}
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @return The bytes for txId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTxIdBytes() {
java.lang.Object ref = txId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
txId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, txId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, txId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest other = (tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest) obj;
if (!getSessionId()
.equals(other.getSessionId())) return false;
if (!getTxId()
.equals(other.getTxId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSessionId().hashCode();
hash = (37 * hash) + TX_ID_FIELD_NUMBER;
hash = (53 * hash) + getTxId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.RollbackTransactionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.RollbackTransactionRequest)
tech.ydb.proto.query.YdbQuery.RollbackTransactionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_RollbackTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_RollbackTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest.class, tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sessionId_ = "";
txId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_RollbackTransactionRequest_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest build() {
tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest buildPartial() {
tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest result = new tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sessionId_ = sessionId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.txId_ = txId_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest other) {
if (other == tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest.getDefaultInstance()) return this;
if (!other.getSessionId().isEmpty()) {
sessionId_ = other.sessionId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getTxId().isEmpty()) {
txId_ = other.txId_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
sessionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
txId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object sessionId_ = "";
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearSessionId() {
sessionId_ = getDefaultInstance().getSessionId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @param value The bytes for sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object txId_ = "";
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @return The txId.
*/
public java.lang.String getTxId() {
java.lang.Object ref = txId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
txId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @return The bytes for txId.
*/
public com.google.protobuf.ByteString
getTxIdBytes() {
java.lang.Object ref = txId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
txId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @param value The txId to set.
* @return This builder for chaining.
*/
public Builder setTxId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
txId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearTxId() {
txId_ = getDefaultInstance().getTxId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Transaction identifier (required)
*
*
* string tx_id = 2 [(.Ydb.length) = { ... }
* @param value The bytes for txId to set.
* @return This builder for chaining.
*/
public Builder setTxIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
txId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Query.RollbackTransactionRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.RollbackTransactionRequest)
private static final tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest();
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RollbackTransactionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.RollbackTransactionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RollbackTransactionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.RollbackTransactionResponse)
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.
*/
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List
getIssuesList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index);
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
int getIssuesCount();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Query.RollbackTransactionResponse}
*/
public static final class RollbackTransactionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.RollbackTransactionResponse)
RollbackTransactionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use RollbackTransactionResponse.newBuilder() to construct.
private RollbackTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RollbackTransactionResponse() {
status_ = 0;
issues_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RollbackTransactionResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_RollbackTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_RollbackTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse.class, tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
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;
* @return The status.
*/
@java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
public static final int ISSUES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
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 tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) {
return issues_.get(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
@java.lang.Override
public tech.ydb.proto.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_ != tech.ydb.proto.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));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != tech.ydb.proto.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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse other = (tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse) obj;
if (status_ != other.status_) return false;
if (!getIssuesList()
.equals(other.getIssuesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getIssuesCount() > 0) {
hash = (37 * hash) + ISSUES_FIELD_NUMBER;
hash = (53 * hash) + getIssuesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.RollbackTransactionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.RollbackTransactionResponse)
tech.ydb.proto.query.YdbQuery.RollbackTransactionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_RollbackTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_RollbackTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse.class, tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = 0;
if (issuesBuilder_ == null) {
issues_ = java.util.Collections.emptyList();
} else {
issues_ = null;
issuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_RollbackTransactionResponse_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse build() {
tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse buildPartial() {
tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse result = new tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse result) {
if (issuesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
issues_ = java.util.Collections.unmodifiableList(issues_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.issues_ = issues_;
} else {
result.issues_ = issuesBuilder_.build();
}
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse other) {
if (other == tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse.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_ & ~0x00000002);
} else {
ensureIssuesIsMutable();
issues_.addAll(other.issues_);
}
onChanged();
}
} else {
if (!other.issues_.isEmpty()) {
if (issuesBuilder_.isEmpty()) {
issuesBuilder_.dispose();
issuesBuilder_ = null;
issues_ = other.issues_;
bitField0_ = (bitField0_ & ~0x00000002);
issuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIssuesFieldBuilder() : null;
} else {
issuesBuilder_.addAllMessages(other.issues_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
status_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
tech.ydb.proto.YdbIssueMessage.IssueMessage m =
input.readMessage(
tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(),
extensionRegistry);
if (issuesBuilder_ == null) {
ensureIssuesIsMutable();
issues_.add(m);
} else {
issuesBuilder_.addMessage(m);
}
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return The status.
*/
@java.lang.Override
public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private java.util.List issues_ =
java.util.Collections.emptyList();
private void ensureIssuesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
issues_ = new java.util.ArrayList(issues_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.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 tech.ydb.proto.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, tech.ydb.proto.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, tech.ydb.proto.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(tech.ydb.proto.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, tech.ydb.proto.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(
tech.ydb.proto.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, tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessage> 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_ & ~0x00000002);
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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder(
int index) {
return getIssuesFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList() {
if (issuesBuilder_ != null) {
return issuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(issues_);
}
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() {
return getIssuesFieldBuilder().addBuilder(
tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder(
int index) {
return getIssuesFieldBuilder().addBuilder(
index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public java.util.List
getIssuesBuilderList() {
return getIssuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesFieldBuilder() {
if (issuesBuilder_ == null) {
issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>(
issues_,
((bitField0_ & 0x00000002) != 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.Query.RollbackTransactionResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.RollbackTransactionResponse)
private static final tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse();
}
public static tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RollbackTransactionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.RollbackTransactionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryContentOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.QueryContent)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Query.Syntax syntax = 1;
* @return The enum numeric value on the wire for syntax.
*/
int getSyntaxValue();
/**
* .Ydb.Query.Syntax syntax = 1;
* @return The syntax.
*/
tech.ydb.proto.query.YdbQuery.Syntax getSyntax();
/**
* string text = 2;
* @return The text.
*/
java.lang.String getText();
/**
* string text = 2;
* @return The bytes for text.
*/
com.google.protobuf.ByteString
getTextBytes();
}
/**
* Protobuf type {@code Ydb.Query.QueryContent}
*/
public static final class QueryContent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.QueryContent)
QueryContentOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryContent.newBuilder() to construct.
private QueryContent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryContent() {
syntax_ = 0;
text_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryContent();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_QueryContent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_QueryContent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.QueryContent.class, tech.ydb.proto.query.YdbQuery.QueryContent.Builder.class);
}
public static final int SYNTAX_FIELD_NUMBER = 1;
private int syntax_ = 0;
/**
* .Ydb.Query.Syntax syntax = 1;
* @return The enum numeric value on the wire for syntax.
*/
@java.lang.Override public int getSyntaxValue() {
return syntax_;
}
/**
* .Ydb.Query.Syntax syntax = 1;
* @return The syntax.
*/
@java.lang.Override public tech.ydb.proto.query.YdbQuery.Syntax getSyntax() {
tech.ydb.proto.query.YdbQuery.Syntax result = tech.ydb.proto.query.YdbQuery.Syntax.forNumber(syntax_);
return result == null ? tech.ydb.proto.query.YdbQuery.Syntax.UNRECOGNIZED : result;
}
public static final int TEXT_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object text_ = "";
/**
* string text = 2;
* @return The text.
*/
@java.lang.Override
public java.lang.String getText() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
text_ = s;
return s;
}
}
/**
* string text = 2;
* @return The bytes for text.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (syntax_ != tech.ydb.proto.query.YdbQuery.Syntax.SYNTAX_UNSPECIFIED.getNumber()) {
output.writeEnum(1, syntax_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, text_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (syntax_ != tech.ydb.proto.query.YdbQuery.Syntax.SYNTAX_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, syntax_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.QueryContent)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.QueryContent other = (tech.ydb.proto.query.YdbQuery.QueryContent) obj;
if (syntax_ != other.syntax_) return false;
if (!getText()
.equals(other.getText())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SYNTAX_FIELD_NUMBER;
hash = (53 * hash) + syntax_;
hash = (37 * hash) + TEXT_FIELD_NUMBER;
hash = (53 * hash) + getText().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.QueryContent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.QueryContent parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.QueryContent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.QueryContent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.QueryContent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.QueryContent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.QueryContent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.QueryContent parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.QueryContent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.QueryContent parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.QueryContent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.QueryContent parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.QueryContent prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.QueryContent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.QueryContent)
tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_QueryContent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_QueryContent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.QueryContent.class, tech.ydb.proto.query.YdbQuery.QueryContent.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.QueryContent.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
syntax_ = 0;
text_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_QueryContent_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.QueryContent getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.QueryContent build() {
tech.ydb.proto.query.YdbQuery.QueryContent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.QueryContent buildPartial() {
tech.ydb.proto.query.YdbQuery.QueryContent result = new tech.ydb.proto.query.YdbQuery.QueryContent(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.QueryContent result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.syntax_ = syntax_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.text_ = text_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.QueryContent) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.QueryContent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.QueryContent other) {
if (other == tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance()) return this;
if (other.syntax_ != 0) {
setSyntaxValue(other.getSyntaxValue());
}
if (!other.getText().isEmpty()) {
text_ = other.text_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
syntax_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
text_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int syntax_ = 0;
/**
* .Ydb.Query.Syntax syntax = 1;
* @return The enum numeric value on the wire for syntax.
*/
@java.lang.Override public int getSyntaxValue() {
return syntax_;
}
/**
* .Ydb.Query.Syntax syntax = 1;
* @param value The enum numeric value on the wire for syntax to set.
* @return This builder for chaining.
*/
public Builder setSyntaxValue(int value) {
syntax_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.Query.Syntax syntax = 1;
* @return The syntax.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.Syntax getSyntax() {
tech.ydb.proto.query.YdbQuery.Syntax result = tech.ydb.proto.query.YdbQuery.Syntax.forNumber(syntax_);
return result == null ? tech.ydb.proto.query.YdbQuery.Syntax.UNRECOGNIZED : result;
}
/**
* .Ydb.Query.Syntax syntax = 1;
* @param value The syntax to set.
* @return This builder for chaining.
*/
public Builder setSyntax(tech.ydb.proto.query.YdbQuery.Syntax value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
syntax_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Query.Syntax syntax = 1;
* @return This builder for chaining.
*/
public Builder clearSyntax() {
bitField0_ = (bitField0_ & ~0x00000001);
syntax_ = 0;
onChanged();
return this;
}
private java.lang.Object text_ = "";
/**
* string text = 2;
* @return The text.
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
text_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string text = 2;
* @return The bytes for text.
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string text = 2;
* @param value The text to set.
* @return This builder for chaining.
*/
public Builder setText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
text_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string text = 2;
* @return This builder for chaining.
*/
public Builder clearText() {
text_ = getDefaultInstance().getText();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string text = 2;
* @param value The bytes for text to set.
* @return This builder for chaining.
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
text_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Query.QueryContent)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.QueryContent)
private static final tech.ydb.proto.query.YdbQuery.QueryContent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.QueryContent();
}
public static tech.ydb.proto.query.YdbQuery.QueryContent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryContent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.QueryContent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteQueryRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.ExecuteQueryRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
java.lang.String getSessionId();
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
com.google.protobuf.ByteString
getSessionIdBytes();
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @return The enum numeric value on the wire for execMode.
*/
int getExecModeValue();
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @return The execMode.
*/
tech.ydb.proto.query.YdbQuery.ExecMode getExecMode();
/**
* .Ydb.Query.TransactionControl tx_control = 3;
* @return Whether the txControl field is set.
*/
boolean hasTxControl();
/**
* .Ydb.Query.TransactionControl tx_control = 3;
* @return The txControl.
*/
tech.ydb.proto.query.YdbQuery.TransactionControl getTxControl();
/**
* .Ydb.Query.TransactionControl tx_control = 3;
*/
tech.ydb.proto.query.YdbQuery.TransactionControlOrBuilder getTxControlOrBuilder();
/**
* .Ydb.Query.QueryContent query_content = 4;
* @return Whether the queryContent field is set.
*/
boolean hasQueryContent();
/**
* .Ydb.Query.QueryContent query_content = 4;
* @return The queryContent.
*/
tech.ydb.proto.query.YdbQuery.QueryContent getQueryContent();
/**
* .Ydb.Query.QueryContent query_content = 4;
*/
tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder getQueryContentOrBuilder();
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
int getParametersCount();
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
boolean containsParameters(
java.lang.String key);
/**
* Use {@link #getParametersMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getParameters();
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
java.util.Map
getParametersMap();
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
/* nullable */
tech.ydb.proto.ValueProtos.TypedValue getParametersOrDefault(
java.lang.String key,
/* nullable */
tech.ydb.proto.ValueProtos.TypedValue defaultValue);
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
tech.ydb.proto.ValueProtos.TypedValue getParametersOrThrow(
java.lang.String key);
/**
* .Ydb.Query.StatsMode stats_mode = 7;
* @return The enum numeric value on the wire for statsMode.
*/
int getStatsModeValue();
/**
* .Ydb.Query.StatsMode stats_mode = 7;
* @return The statsMode.
*/
tech.ydb.proto.query.YdbQuery.StatsMode getStatsMode();
/**
*
* For queries with multiple result sets, some of them may be computed concurrently.
* If true, parts of different results sets may be interleaved in response stream.
*
*
* bool concurrent_result_sets = 8;
* @return The concurrentResultSets.
*/
boolean getConcurrentResultSets();
tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest.QueryCase getQueryCase();
}
/**
* Protobuf type {@code Ydb.Query.ExecuteQueryRequest}
*/
public static final class ExecuteQueryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.ExecuteQueryRequest)
ExecuteQueryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteQueryRequest.newBuilder() to construct.
private ExecuteQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteQueryRequest() {
sessionId_ = "";
execMode_ = 0;
statsMode_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteQueryRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteQueryRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetParameters();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteQueryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest.class, tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest.Builder.class);
}
private int bitField0_;
private int queryCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object query_;
public enum QueryCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
QUERY_CONTENT(4),
QUERY_NOT_SET(0);
private final int value;
private QueryCase(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 QueryCase valueOf(int value) {
return forNumber(value);
}
public static QueryCase forNumber(int value) {
switch (value) {
case 4: return QUERY_CONTENT;
case 0: return QUERY_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public QueryCase
getQueryCase() {
return QueryCase.forNumber(
queryCase_);
}
public static final int SESSION_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sessionId_ = "";
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
}
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXEC_MODE_FIELD_NUMBER = 2;
private int execMode_ = 0;
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @return The enum numeric value on the wire for execMode.
*/
@java.lang.Override public int getExecModeValue() {
return execMode_;
}
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @return The execMode.
*/
@java.lang.Override public tech.ydb.proto.query.YdbQuery.ExecMode getExecMode() {
tech.ydb.proto.query.YdbQuery.ExecMode result = tech.ydb.proto.query.YdbQuery.ExecMode.forNumber(execMode_);
return result == null ? tech.ydb.proto.query.YdbQuery.ExecMode.UNRECOGNIZED : result;
}
public static final int TX_CONTROL_FIELD_NUMBER = 3;
private tech.ydb.proto.query.YdbQuery.TransactionControl txControl_;
/**
* .Ydb.Query.TransactionControl tx_control = 3;
* @return Whether the txControl field is set.
*/
@java.lang.Override
public boolean hasTxControl() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Query.TransactionControl tx_control = 3;
* @return The txControl.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionControl getTxControl() {
return txControl_ == null ? tech.ydb.proto.query.YdbQuery.TransactionControl.getDefaultInstance() : txControl_;
}
/**
* .Ydb.Query.TransactionControl tx_control = 3;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionControlOrBuilder getTxControlOrBuilder() {
return txControl_ == null ? tech.ydb.proto.query.YdbQuery.TransactionControl.getDefaultInstance() : txControl_;
}
public static final int QUERY_CONTENT_FIELD_NUMBER = 4;
/**
* .Ydb.Query.QueryContent query_content = 4;
* @return Whether the queryContent field is set.
*/
@java.lang.Override
public boolean hasQueryContent() {
return queryCase_ == 4;
}
/**
* .Ydb.Query.QueryContent query_content = 4;
* @return The queryContent.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.QueryContent getQueryContent() {
if (queryCase_ == 4) {
return (tech.ydb.proto.query.YdbQuery.QueryContent) query_;
}
return tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance();
}
/**
* .Ydb.Query.QueryContent query_content = 4;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder getQueryContentOrBuilder() {
if (queryCase_ == 4) {
return (tech.ydb.proto.query.YdbQuery.QueryContent) query_;
}
return tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance();
}
public static final int PARAMETERS_FIELD_NUMBER = 6;
private static final class ParametersDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, tech.ydb.proto.ValueProtos.TypedValue> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteQueryRequest_ParametersEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
tech.ydb.proto.ValueProtos.TypedValue.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, tech.ydb.proto.ValueProtos.TypedValue> parameters_;
private com.google.protobuf.MapField
internalGetParameters() {
if (parameters_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ParametersDefaultEntryHolder.defaultEntry);
}
return parameters_;
}
public int getParametersCount() {
return internalGetParameters().getMap().size();
}
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
@java.lang.Override
public boolean containsParameters(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetParameters().getMap().containsKey(key);
}
/**
* Use {@link #getParametersMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getParameters() {
return getParametersMap();
}
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
@java.lang.Override
public java.util.Map getParametersMap() {
return internalGetParameters().getMap();
}
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
@java.lang.Override
public /* nullable */
tech.ydb.proto.ValueProtos.TypedValue getParametersOrDefault(
java.lang.String key,
/* nullable */
tech.ydb.proto.ValueProtos.TypedValue defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetParameters().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.TypedValue getParametersOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetParameters().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int STATS_MODE_FIELD_NUMBER = 7;
private int statsMode_ = 0;
/**
* .Ydb.Query.StatsMode stats_mode = 7;
* @return The enum numeric value on the wire for statsMode.
*/
@java.lang.Override public int getStatsModeValue() {
return statsMode_;
}
/**
* .Ydb.Query.StatsMode stats_mode = 7;
* @return The statsMode.
*/
@java.lang.Override public tech.ydb.proto.query.YdbQuery.StatsMode getStatsMode() {
tech.ydb.proto.query.YdbQuery.StatsMode result = tech.ydb.proto.query.YdbQuery.StatsMode.forNumber(statsMode_);
return result == null ? tech.ydb.proto.query.YdbQuery.StatsMode.UNRECOGNIZED : result;
}
public static final int CONCURRENT_RESULT_SETS_FIELD_NUMBER = 8;
private boolean concurrentResultSets_ = false;
/**
*
* For queries with multiple result sets, some of them may be computed concurrently.
* If true, parts of different results sets may be interleaved in response stream.
*
*
* bool concurrent_result_sets = 8;
* @return The concurrentResultSets.
*/
@java.lang.Override
public boolean getConcurrentResultSets() {
return concurrentResultSets_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_);
}
if (execMode_ != tech.ydb.proto.query.YdbQuery.ExecMode.EXEC_MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, execMode_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getTxControl());
}
if (queryCase_ == 4) {
output.writeMessage(4, (tech.ydb.proto.query.YdbQuery.QueryContent) query_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetParameters(),
ParametersDefaultEntryHolder.defaultEntry,
6);
if (statsMode_ != tech.ydb.proto.query.YdbQuery.StatsMode.STATS_MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(7, statsMode_);
}
if (concurrentResultSets_ != false) {
output.writeBool(8, concurrentResultSets_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_);
}
if (execMode_ != tech.ydb.proto.query.YdbQuery.ExecMode.EXEC_MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, execMode_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTxControl());
}
if (queryCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (tech.ydb.proto.query.YdbQuery.QueryContent) query_);
}
for (java.util.Map.Entry entry
: internalGetParameters().getMap().entrySet()) {
com.google.protobuf.MapEntry
parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, parameters__);
}
if (statsMode_ != tech.ydb.proto.query.YdbQuery.StatsMode.STATS_MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, statsMode_);
}
if (concurrentResultSets_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, concurrentResultSets_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest other = (tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest) obj;
if (!getSessionId()
.equals(other.getSessionId())) return false;
if (execMode_ != other.execMode_) return false;
if (hasTxControl() != other.hasTxControl()) return false;
if (hasTxControl()) {
if (!getTxControl()
.equals(other.getTxControl())) return false;
}
if (!internalGetParameters().equals(
other.internalGetParameters())) return false;
if (statsMode_ != other.statsMode_) return false;
if (getConcurrentResultSets()
!= other.getConcurrentResultSets()) return false;
if (!getQueryCase().equals(other.getQueryCase())) return false;
switch (queryCase_) {
case 4:
if (!getQueryContent()
.equals(other.getQueryContent())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSessionId().hashCode();
hash = (37 * hash) + EXEC_MODE_FIELD_NUMBER;
hash = (53 * hash) + execMode_;
if (hasTxControl()) {
hash = (37 * hash) + TX_CONTROL_FIELD_NUMBER;
hash = (53 * hash) + getTxControl().hashCode();
}
if (!internalGetParameters().getMap().isEmpty()) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + internalGetParameters().hashCode();
}
hash = (37 * hash) + STATS_MODE_FIELD_NUMBER;
hash = (53 * hash) + statsMode_;
hash = (37 * hash) + CONCURRENT_RESULT_SETS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getConcurrentResultSets());
switch (queryCase_) {
case 4:
hash = (37 * hash) + QUERY_CONTENT_FIELD_NUMBER;
hash = (53 * hash) + getQueryContent().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.ExecuteQueryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.ExecuteQueryRequest)
tech.ydb.proto.query.YdbQuery.ExecuteQueryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteQueryRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetParameters();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 6:
return internalGetMutableParameters();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteQueryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest.class, tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTxControlFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sessionId_ = "";
execMode_ = 0;
txControl_ = null;
if (txControlBuilder_ != null) {
txControlBuilder_.dispose();
txControlBuilder_ = null;
}
if (queryContentBuilder_ != null) {
queryContentBuilder_.clear();
}
internalGetMutableParameters().clear();
statsMode_ = 0;
concurrentResultSets_ = false;
queryCase_ = 0;
query_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteQueryRequest_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest build() {
tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest buildPartial() {
tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest result = new tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sessionId_ = sessionId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.execMode_ = execMode_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.txControl_ = txControlBuilder_ == null
? txControl_
: txControlBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.parameters_ = internalGetParameters();
result.parameters_.makeImmutable();
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.statsMode_ = statsMode_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.concurrentResultSets_ = concurrentResultSets_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest result) {
result.queryCase_ = queryCase_;
result.query_ = this.query_;
if (queryCase_ == 4 &&
queryContentBuilder_ != null) {
result.query_ = queryContentBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest other) {
if (other == tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest.getDefaultInstance()) return this;
if (!other.getSessionId().isEmpty()) {
sessionId_ = other.sessionId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.execMode_ != 0) {
setExecModeValue(other.getExecModeValue());
}
if (other.hasTxControl()) {
mergeTxControl(other.getTxControl());
}
internalGetMutableParameters().mergeFrom(
other.internalGetParameters());
bitField0_ |= 0x00000010;
if (other.statsMode_ != 0) {
setStatsModeValue(other.getStatsModeValue());
}
if (other.getConcurrentResultSets() != false) {
setConcurrentResultSets(other.getConcurrentResultSets());
}
switch (other.getQueryCase()) {
case QUERY_CONTENT: {
mergeQueryContent(other.getQueryContent());
break;
}
case QUERY_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
sessionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
execMode_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getTxControlFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getQueryContentFieldBuilder().getBuilder(),
extensionRegistry);
queryCase_ = 4;
break;
} // case 34
case 50: {
com.google.protobuf.MapEntry
parameters__ = input.readMessage(
ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableParameters().getMutableMap().put(
parameters__.getKey(), parameters__.getValue());
bitField0_ |= 0x00000010;
break;
} // case 50
case 56: {
statsMode_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 56
case 64: {
concurrentResultSets_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 64
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int queryCase_ = 0;
private java.lang.Object query_;
public QueryCase
getQueryCase() {
return QueryCase.forNumber(
queryCase_);
}
public Builder clearQuery() {
queryCase_ = 0;
query_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object sessionId_ = "";
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The sessionId.
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for sessionId.
*/
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearSessionId() {
sessionId_ = getDefaultInstance().getSessionId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Session identifier (required)
*
*
* string session_id = 1 [(.Ydb.length) = { ... }
* @param value The bytes for sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int execMode_ = 0;
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @return The enum numeric value on the wire for execMode.
*/
@java.lang.Override public int getExecModeValue() {
return execMode_;
}
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @param value The enum numeric value on the wire for execMode to set.
* @return This builder for chaining.
*/
public Builder setExecModeValue(int value) {
execMode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @return The execMode.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecMode getExecMode() {
tech.ydb.proto.query.YdbQuery.ExecMode result = tech.ydb.proto.query.YdbQuery.ExecMode.forNumber(execMode_);
return result == null ? tech.ydb.proto.query.YdbQuery.ExecMode.UNRECOGNIZED : result;
}
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @param value The execMode to set.
* @return This builder for chaining.
*/
public Builder setExecMode(tech.ydb.proto.query.YdbQuery.ExecMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
execMode_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @return This builder for chaining.
*/
public Builder clearExecMode() {
bitField0_ = (bitField0_ & ~0x00000002);
execMode_ = 0;
onChanged();
return this;
}
private tech.ydb.proto.query.YdbQuery.TransactionControl txControl_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionControl, tech.ydb.proto.query.YdbQuery.TransactionControl.Builder, tech.ydb.proto.query.YdbQuery.TransactionControlOrBuilder> txControlBuilder_;
/**
* .Ydb.Query.TransactionControl tx_control = 3;
* @return Whether the txControl field is set.
*/
public boolean hasTxControl() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .Ydb.Query.TransactionControl tx_control = 3;
* @return The txControl.
*/
public tech.ydb.proto.query.YdbQuery.TransactionControl getTxControl() {
if (txControlBuilder_ == null) {
return txControl_ == null ? tech.ydb.proto.query.YdbQuery.TransactionControl.getDefaultInstance() : txControl_;
} else {
return txControlBuilder_.getMessage();
}
}
/**
* .Ydb.Query.TransactionControl tx_control = 3;
*/
public Builder setTxControl(tech.ydb.proto.query.YdbQuery.TransactionControl value) {
if (txControlBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
txControl_ = value;
} else {
txControlBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .Ydb.Query.TransactionControl tx_control = 3;
*/
public Builder setTxControl(
tech.ydb.proto.query.YdbQuery.TransactionControl.Builder builderForValue) {
if (txControlBuilder_ == null) {
txControl_ = builderForValue.build();
} else {
txControlBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .Ydb.Query.TransactionControl tx_control = 3;
*/
public Builder mergeTxControl(tech.ydb.proto.query.YdbQuery.TransactionControl value) {
if (txControlBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
txControl_ != null &&
txControl_ != tech.ydb.proto.query.YdbQuery.TransactionControl.getDefaultInstance()) {
getTxControlBuilder().mergeFrom(value);
} else {
txControl_ = value;
}
} else {
txControlBuilder_.mergeFrom(value);
}
if (txControl_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .Ydb.Query.TransactionControl tx_control = 3;
*/
public Builder clearTxControl() {
bitField0_ = (bitField0_ & ~0x00000004);
txControl_ = null;
if (txControlBuilder_ != null) {
txControlBuilder_.dispose();
txControlBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Query.TransactionControl tx_control = 3;
*/
public tech.ydb.proto.query.YdbQuery.TransactionControl.Builder getTxControlBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTxControlFieldBuilder().getBuilder();
}
/**
* .Ydb.Query.TransactionControl tx_control = 3;
*/
public tech.ydb.proto.query.YdbQuery.TransactionControlOrBuilder getTxControlOrBuilder() {
if (txControlBuilder_ != null) {
return txControlBuilder_.getMessageOrBuilder();
} else {
return txControl_ == null ?
tech.ydb.proto.query.YdbQuery.TransactionControl.getDefaultInstance() : txControl_;
}
}
/**
* .Ydb.Query.TransactionControl tx_control = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionControl, tech.ydb.proto.query.YdbQuery.TransactionControl.Builder, tech.ydb.proto.query.YdbQuery.TransactionControlOrBuilder>
getTxControlFieldBuilder() {
if (txControlBuilder_ == null) {
txControlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionControl, tech.ydb.proto.query.YdbQuery.TransactionControl.Builder, tech.ydb.proto.query.YdbQuery.TransactionControlOrBuilder>(
getTxControl(),
getParentForChildren(),
isClean());
txControl_ = null;
}
return txControlBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.QueryContent, tech.ydb.proto.query.YdbQuery.QueryContent.Builder, tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder> queryContentBuilder_;
/**
* .Ydb.Query.QueryContent query_content = 4;
* @return Whether the queryContent field is set.
*/
@java.lang.Override
public boolean hasQueryContent() {
return queryCase_ == 4;
}
/**
* .Ydb.Query.QueryContent query_content = 4;
* @return The queryContent.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.QueryContent getQueryContent() {
if (queryContentBuilder_ == null) {
if (queryCase_ == 4) {
return (tech.ydb.proto.query.YdbQuery.QueryContent) query_;
}
return tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance();
} else {
if (queryCase_ == 4) {
return queryContentBuilder_.getMessage();
}
return tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance();
}
}
/**
* .Ydb.Query.QueryContent query_content = 4;
*/
public Builder setQueryContent(tech.ydb.proto.query.YdbQuery.QueryContent value) {
if (queryContentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
} else {
queryContentBuilder_.setMessage(value);
}
queryCase_ = 4;
return this;
}
/**
* .Ydb.Query.QueryContent query_content = 4;
*/
public Builder setQueryContent(
tech.ydb.proto.query.YdbQuery.QueryContent.Builder builderForValue) {
if (queryContentBuilder_ == null) {
query_ = builderForValue.build();
onChanged();
} else {
queryContentBuilder_.setMessage(builderForValue.build());
}
queryCase_ = 4;
return this;
}
/**
* .Ydb.Query.QueryContent query_content = 4;
*/
public Builder mergeQueryContent(tech.ydb.proto.query.YdbQuery.QueryContent value) {
if (queryContentBuilder_ == null) {
if (queryCase_ == 4 &&
query_ != tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance()) {
query_ = tech.ydb.proto.query.YdbQuery.QueryContent.newBuilder((tech.ydb.proto.query.YdbQuery.QueryContent) query_)
.mergeFrom(value).buildPartial();
} else {
query_ = value;
}
onChanged();
} else {
if (queryCase_ == 4) {
queryContentBuilder_.mergeFrom(value);
} else {
queryContentBuilder_.setMessage(value);
}
}
queryCase_ = 4;
return this;
}
/**
* .Ydb.Query.QueryContent query_content = 4;
*/
public Builder clearQueryContent() {
if (queryContentBuilder_ == null) {
if (queryCase_ == 4) {
queryCase_ = 0;
query_ = null;
onChanged();
}
} else {
if (queryCase_ == 4) {
queryCase_ = 0;
query_ = null;
}
queryContentBuilder_.clear();
}
return this;
}
/**
* .Ydb.Query.QueryContent query_content = 4;
*/
public tech.ydb.proto.query.YdbQuery.QueryContent.Builder getQueryContentBuilder() {
return getQueryContentFieldBuilder().getBuilder();
}
/**
* .Ydb.Query.QueryContent query_content = 4;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder getQueryContentOrBuilder() {
if ((queryCase_ == 4) && (queryContentBuilder_ != null)) {
return queryContentBuilder_.getMessageOrBuilder();
} else {
if (queryCase_ == 4) {
return (tech.ydb.proto.query.YdbQuery.QueryContent) query_;
}
return tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance();
}
}
/**
* .Ydb.Query.QueryContent query_content = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.QueryContent, tech.ydb.proto.query.YdbQuery.QueryContent.Builder, tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder>
getQueryContentFieldBuilder() {
if (queryContentBuilder_ == null) {
if (!(queryCase_ == 4)) {
query_ = tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance();
}
queryContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.QueryContent, tech.ydb.proto.query.YdbQuery.QueryContent.Builder, tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder>(
(tech.ydb.proto.query.YdbQuery.QueryContent) query_,
getParentForChildren(),
isClean());
query_ = null;
}
queryCase_ = 4;
onChanged();
return queryContentBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, tech.ydb.proto.ValueProtos.TypedValue> parameters_;
private com.google.protobuf.MapField
internalGetParameters() {
if (parameters_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ParametersDefaultEntryHolder.defaultEntry);
}
return parameters_;
}
private com.google.protobuf.MapField
internalGetMutableParameters() {
if (parameters_ == null) {
parameters_ = com.google.protobuf.MapField.newMapField(
ParametersDefaultEntryHolder.defaultEntry);
}
if (!parameters_.isMutable()) {
parameters_ = parameters_.copy();
}
bitField0_ |= 0x00000010;
onChanged();
return parameters_;
}
public int getParametersCount() {
return internalGetParameters().getMap().size();
}
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
@java.lang.Override
public boolean containsParameters(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetParameters().getMap().containsKey(key);
}
/**
* Use {@link #getParametersMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getParameters() {
return getParametersMap();
}
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
@java.lang.Override
public java.util.Map getParametersMap() {
return internalGetParameters().getMap();
}
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
@java.lang.Override
public /* nullable */
tech.ydb.proto.ValueProtos.TypedValue getParametersOrDefault(
java.lang.String key,
/* nullable */
tech.ydb.proto.ValueProtos.TypedValue defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetParameters().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.TypedValue getParametersOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetParameters().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearParameters() {
bitField0_ = (bitField0_ & ~0x00000010);
internalGetMutableParameters().getMutableMap()
.clear();
return this;
}
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
public Builder removeParameters(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableParameters().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableParameters() {
bitField0_ |= 0x00000010;
return internalGetMutableParameters().getMutableMap();
}
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
public Builder putParameters(
java.lang.String key,
tech.ydb.proto.ValueProtos.TypedValue value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableParameters().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000010;
return this;
}
/**
* map<string, .Ydb.TypedValue> parameters = 6;
*/
public Builder putAllParameters(
java.util.Map values) {
internalGetMutableParameters().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000010;
return this;
}
private int statsMode_ = 0;
/**
* .Ydb.Query.StatsMode stats_mode = 7;
* @return The enum numeric value on the wire for statsMode.
*/
@java.lang.Override public int getStatsModeValue() {
return statsMode_;
}
/**
* .Ydb.Query.StatsMode stats_mode = 7;
* @param value The enum numeric value on the wire for statsMode to set.
* @return This builder for chaining.
*/
public Builder setStatsModeValue(int value) {
statsMode_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .Ydb.Query.StatsMode stats_mode = 7;
* @return The statsMode.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.StatsMode getStatsMode() {
tech.ydb.proto.query.YdbQuery.StatsMode result = tech.ydb.proto.query.YdbQuery.StatsMode.forNumber(statsMode_);
return result == null ? tech.ydb.proto.query.YdbQuery.StatsMode.UNRECOGNIZED : result;
}
/**
* .Ydb.Query.StatsMode stats_mode = 7;
* @param value The statsMode to set.
* @return This builder for chaining.
*/
public Builder setStatsMode(tech.ydb.proto.query.YdbQuery.StatsMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
statsMode_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Query.StatsMode stats_mode = 7;
* @return This builder for chaining.
*/
public Builder clearStatsMode() {
bitField0_ = (bitField0_ & ~0x00000020);
statsMode_ = 0;
onChanged();
return this;
}
private boolean concurrentResultSets_ ;
/**
*
* For queries with multiple result sets, some of them may be computed concurrently.
* If true, parts of different results sets may be interleaved in response stream.
*
*
* bool concurrent_result_sets = 8;
* @return The concurrentResultSets.
*/
@java.lang.Override
public boolean getConcurrentResultSets() {
return concurrentResultSets_;
}
/**
*
* For queries with multiple result sets, some of them may be computed concurrently.
* If true, parts of different results sets may be interleaved in response stream.
*
*
* bool concurrent_result_sets = 8;
* @param value The concurrentResultSets to set.
* @return This builder for chaining.
*/
public Builder setConcurrentResultSets(boolean value) {
concurrentResultSets_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* For queries with multiple result sets, some of them may be computed concurrently.
* If true, parts of different results sets may be interleaved in response stream.
*
*
* bool concurrent_result_sets = 8;
* @return This builder for chaining.
*/
public Builder clearConcurrentResultSets() {
bitField0_ = (bitField0_ & ~0x00000040);
concurrentResultSets_ = 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.Query.ExecuteQueryRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.ExecuteQueryRequest)
private static final tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest();
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteQueryRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteQueryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResultSetMetaOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.ResultSetMeta)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .Ydb.Column columns = 1;
*/
java.util.List
getColumnsList();
/**
* repeated .Ydb.Column columns = 1;
*/
tech.ydb.proto.ValueProtos.Column getColumns(int index);
/**
* repeated .Ydb.Column columns = 1;
*/
int getColumnsCount();
/**
* repeated .Ydb.Column columns = 1;
*/
java.util.List extends tech.ydb.proto.ValueProtos.ColumnOrBuilder>
getColumnsOrBuilderList();
/**
* repeated .Ydb.Column columns = 1;
*/
tech.ydb.proto.ValueProtos.ColumnOrBuilder getColumnsOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Query.ResultSetMeta}
*/
public static final class ResultSetMeta extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.ResultSetMeta)
ResultSetMetaOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResultSetMeta.newBuilder() to construct.
private ResultSetMeta(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResultSetMeta() {
columns_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResultSetMeta();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ResultSetMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ResultSetMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.ResultSetMeta.class, tech.ydb.proto.query.YdbQuery.ResultSetMeta.Builder.class);
}
public static final int COLUMNS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List columns_;
/**
* repeated .Ydb.Column columns = 1;
*/
@java.lang.Override
public java.util.List getColumnsList() {
return columns_;
}
/**
* repeated .Ydb.Column columns = 1;
*/
@java.lang.Override
public java.util.List extends tech.ydb.proto.ValueProtos.ColumnOrBuilder>
getColumnsOrBuilderList() {
return columns_;
}
/**
* repeated .Ydb.Column columns = 1;
*/
@java.lang.Override
public int getColumnsCount() {
return columns_.size();
}
/**
* repeated .Ydb.Column columns = 1;
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.Column getColumns(int index) {
return columns_.get(index);
}
/**
* repeated .Ydb.Column columns = 1;
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.ColumnOrBuilder getColumnsOrBuilder(
int index) {
return columns_.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 {
for (int i = 0; i < columns_.size(); i++) {
output.writeMessage(1, columns_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < columns_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, columns_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.ResultSetMeta)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.ResultSetMeta other = (tech.ydb.proto.query.YdbQuery.ResultSetMeta) obj;
if (!getColumnsList()
.equals(other.getColumnsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getColumnsCount() > 0) {
hash = (37 * hash) + COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getColumnsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.ResultSetMeta parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ResultSetMeta parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ResultSetMeta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ResultSetMeta parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ResultSetMeta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ResultSetMeta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ResultSetMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ResultSetMeta parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ResultSetMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ResultSetMeta parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ResultSetMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ResultSetMeta parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.ResultSetMeta prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.ResultSetMeta}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.ResultSetMeta)
tech.ydb.proto.query.YdbQuery.ResultSetMetaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ResultSetMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ResultSetMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.ResultSetMeta.class, tech.ydb.proto.query.YdbQuery.ResultSetMeta.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.ResultSetMeta.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (columnsBuilder_ == null) {
columns_ = java.util.Collections.emptyList();
} else {
columns_ = null;
columnsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ResultSetMeta_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ResultSetMeta getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.ResultSetMeta.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ResultSetMeta build() {
tech.ydb.proto.query.YdbQuery.ResultSetMeta result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ResultSetMeta buildPartial() {
tech.ydb.proto.query.YdbQuery.ResultSetMeta result = new tech.ydb.proto.query.YdbQuery.ResultSetMeta(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.ydb.proto.query.YdbQuery.ResultSetMeta result) {
if (columnsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
columns_ = java.util.Collections.unmodifiableList(columns_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.columns_ = columns_;
} else {
result.columns_ = columnsBuilder_.build();
}
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.ResultSetMeta result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.ResultSetMeta) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.ResultSetMeta)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.ResultSetMeta other) {
if (other == tech.ydb.proto.query.YdbQuery.ResultSetMeta.getDefaultInstance()) return this;
if (columnsBuilder_ == null) {
if (!other.columns_.isEmpty()) {
if (columns_.isEmpty()) {
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureColumnsIsMutable();
columns_.addAll(other.columns_);
}
onChanged();
}
} else {
if (!other.columns_.isEmpty()) {
if (columnsBuilder_.isEmpty()) {
columnsBuilder_.dispose();
columnsBuilder_ = null;
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000001);
columnsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getColumnsFieldBuilder() : null;
} else {
columnsBuilder_.addAllMessages(other.columns_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
tech.ydb.proto.ValueProtos.Column m =
input.readMessage(
tech.ydb.proto.ValueProtos.Column.parser(),
extensionRegistry);
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.add(m);
} else {
columnsBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List columns_ =
java.util.Collections.emptyList();
private void ensureColumnsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
columns_ = new java.util.ArrayList(columns_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.ValueProtos.Column, tech.ydb.proto.ValueProtos.Column.Builder, tech.ydb.proto.ValueProtos.ColumnOrBuilder> columnsBuilder_;
/**
* repeated .Ydb.Column columns = 1;
*/
public java.util.List getColumnsList() {
if (columnsBuilder_ == null) {
return java.util.Collections.unmodifiableList(columns_);
} else {
return columnsBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Column columns = 1;
*/
public int getColumnsCount() {
if (columnsBuilder_ == null) {
return columns_.size();
} else {
return columnsBuilder_.getCount();
}
}
/**
* repeated .Ydb.Column columns = 1;
*/
public tech.ydb.proto.ValueProtos.Column getColumns(int index) {
if (columnsBuilder_ == null) {
return columns_.get(index);
} else {
return columnsBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Column columns = 1;
*/
public Builder setColumns(
int index, tech.ydb.proto.ValueProtos.Column value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.set(index, value);
onChanged();
} else {
columnsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Column columns = 1;
*/
public Builder setColumns(
int index, tech.ydb.proto.ValueProtos.Column.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.set(index, builderForValue.build());
onChanged();
} else {
columnsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Column columns = 1;
*/
public Builder addColumns(tech.ydb.proto.ValueProtos.Column value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.add(value);
onChanged();
} else {
columnsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Column columns = 1;
*/
public Builder addColumns(
int index, tech.ydb.proto.ValueProtos.Column value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.add(index, value);
onChanged();
} else {
columnsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Column columns = 1;
*/
public Builder addColumns(
tech.ydb.proto.ValueProtos.Column.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.add(builderForValue.build());
onChanged();
} else {
columnsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Column columns = 1;
*/
public Builder addColumns(
int index, tech.ydb.proto.ValueProtos.Column.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.add(index, builderForValue.build());
onChanged();
} else {
columnsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Column columns = 1;
*/
public Builder addAllColumns(
java.lang.Iterable extends tech.ydb.proto.ValueProtos.Column> values) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, columns_);
onChanged();
} else {
columnsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Column columns = 1;
*/
public Builder clearColumns() {
if (columnsBuilder_ == null) {
columns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
columnsBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Column columns = 1;
*/
public Builder removeColumns(int index) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.remove(index);
onChanged();
} else {
columnsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Column columns = 1;
*/
public tech.ydb.proto.ValueProtos.Column.Builder getColumnsBuilder(
int index) {
return getColumnsFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Column columns = 1;
*/
public tech.ydb.proto.ValueProtos.ColumnOrBuilder getColumnsOrBuilder(
int index) {
if (columnsBuilder_ == null) {
return columns_.get(index); } else {
return columnsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Column columns = 1;
*/
public java.util.List extends tech.ydb.proto.ValueProtos.ColumnOrBuilder>
getColumnsOrBuilderList() {
if (columnsBuilder_ != null) {
return columnsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(columns_);
}
}
/**
* repeated .Ydb.Column columns = 1;
*/
public tech.ydb.proto.ValueProtos.Column.Builder addColumnsBuilder() {
return getColumnsFieldBuilder().addBuilder(
tech.ydb.proto.ValueProtos.Column.getDefaultInstance());
}
/**
* repeated .Ydb.Column columns = 1;
*/
public tech.ydb.proto.ValueProtos.Column.Builder addColumnsBuilder(
int index) {
return getColumnsFieldBuilder().addBuilder(
index, tech.ydb.proto.ValueProtos.Column.getDefaultInstance());
}
/**
* repeated .Ydb.Column columns = 1;
*/
public java.util.List
getColumnsBuilderList() {
return getColumnsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.ValueProtos.Column, tech.ydb.proto.ValueProtos.Column.Builder, tech.ydb.proto.ValueProtos.ColumnOrBuilder>
getColumnsFieldBuilder() {
if (columnsBuilder_ == null) {
columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.ValueProtos.Column, tech.ydb.proto.ValueProtos.Column.Builder, tech.ydb.proto.ValueProtos.ColumnOrBuilder>(
columns_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
columns_ = null;
}
return columnsBuilder_;
}
@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.Query.ResultSetMeta)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.ResultSetMeta)
private static final tech.ydb.proto.query.YdbQuery.ResultSetMeta DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.ResultSetMeta();
}
public static tech.ydb.proto.query.YdbQuery.ResultSetMeta getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResultSetMeta parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ResultSetMeta getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteQueryResponsePartOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.ExecuteQueryResponsePart)
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.
*/
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List
getIssuesList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index);
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
int getIssuesCount();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index);
/**
*
* Index of current result set
*
*
* int64 result_set_index = 3 [(.Ydb.value) = ">= 0"];
* @return The resultSetIndex.
*/
long getResultSetIndex();
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
* @return Whether the resultSet field is set.
*/
boolean hasResultSet();
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
* @return The resultSet.
*/
tech.ydb.proto.ValueProtos.ResultSet getResultSet();
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
*/
tech.ydb.proto.ValueProtos.ResultSetOrBuilder getResultSetOrBuilder();
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
* @return Whether the execStats field is set.
*/
boolean hasExecStats();
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
* @return The execStats.
*/
tech.ydb.proto.YdbQueryStats.QueryStats getExecStats();
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
*/
tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder getExecStatsOrBuilder();
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
* @return Whether the txMeta field is set.
*/
boolean hasTxMeta();
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
* @return The txMeta.
*/
tech.ydb.proto.query.YdbQuery.TransactionMeta getTxMeta();
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
*/
tech.ydb.proto.query.YdbQuery.TransactionMetaOrBuilder getTxMetaOrBuilder();
}
/**
* Protobuf type {@code Ydb.Query.ExecuteQueryResponsePart}
*/
public static final class ExecuteQueryResponsePart extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.ExecuteQueryResponsePart)
ExecuteQueryResponsePartOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteQueryResponsePart.newBuilder() to construct.
private ExecuteQueryResponsePart(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteQueryResponsePart() {
status_ = 0;
issues_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteQueryResponsePart();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteQueryResponsePart_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteQueryResponsePart_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart.class, tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart.Builder.class);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
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;
* @return The status.
*/
@java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
public static final int ISSUES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
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 tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) {
return issues_.get(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
@java.lang.Override
public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index) {
return issues_.get(index);
}
public static final int RESULT_SET_INDEX_FIELD_NUMBER = 3;
private long resultSetIndex_ = 0L;
/**
*
* Index of current result set
*
*
* int64 result_set_index = 3 [(.Ydb.value) = ">= 0"];
* @return The resultSetIndex.
*/
@java.lang.Override
public long getResultSetIndex() {
return resultSetIndex_;
}
public static final int RESULT_SET_FIELD_NUMBER = 4;
private tech.ydb.proto.ValueProtos.ResultSet resultSet_;
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
* @return Whether the resultSet field is set.
*/
@java.lang.Override
public boolean hasResultSet() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
* @return The resultSet.
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.ResultSet getResultSet() {
return resultSet_ == null ? tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance() : resultSet_;
}
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.ResultSetOrBuilder getResultSetOrBuilder() {
return resultSet_ == null ? tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance() : resultSet_;
}
public static final int EXEC_STATS_FIELD_NUMBER = 5;
private tech.ydb.proto.YdbQueryStats.QueryStats execStats_;
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
* @return Whether the execStats field is set.
*/
@java.lang.Override
public boolean hasExecStats() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
* @return The execStats.
*/
@java.lang.Override
public tech.ydb.proto.YdbQueryStats.QueryStats getExecStats() {
return execStats_ == null ? tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : execStats_;
}
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
*/
@java.lang.Override
public tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder getExecStatsOrBuilder() {
return execStats_ == null ? tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : execStats_;
}
public static final int TX_META_FIELD_NUMBER = 6;
private tech.ydb.proto.query.YdbQuery.TransactionMeta txMeta_;
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
* @return Whether the txMeta field is set.
*/
@java.lang.Override
public boolean hasTxMeta() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
* @return The txMeta.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionMeta getTxMeta() {
return txMeta_ == null ? tech.ydb.proto.query.YdbQuery.TransactionMeta.getDefaultInstance() : txMeta_;
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.TransactionMetaOrBuilder getTxMetaOrBuilder() {
return txMeta_ == null ? tech.ydb.proto.query.YdbQuery.TransactionMeta.getDefaultInstance() : txMeta_;
}
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_ != tech.ydb.proto.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));
}
if (resultSetIndex_ != 0L) {
output.writeInt64(3, resultSetIndex_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getResultSet());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getExecStats());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(6, getTxMeta());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != tech.ydb.proto.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));
}
if (resultSetIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, resultSetIndex_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getResultSet());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getExecStats());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getTxMeta());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart other = (tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart) obj;
if (status_ != other.status_) return false;
if (!getIssuesList()
.equals(other.getIssuesList())) return false;
if (getResultSetIndex()
!= other.getResultSetIndex()) return false;
if (hasResultSet() != other.hasResultSet()) return false;
if (hasResultSet()) {
if (!getResultSet()
.equals(other.getResultSet())) return false;
}
if (hasExecStats() != other.hasExecStats()) return false;
if (hasExecStats()) {
if (!getExecStats()
.equals(other.getExecStats())) return false;
}
if (hasTxMeta() != other.hasTxMeta()) return false;
if (hasTxMeta()) {
if (!getTxMeta()
.equals(other.getTxMeta())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getIssuesCount() > 0) {
hash = (37 * hash) + ISSUES_FIELD_NUMBER;
hash = (53 * hash) + getIssuesList().hashCode();
}
hash = (37 * hash) + RESULT_SET_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getResultSetIndex());
if (hasResultSet()) {
hash = (37 * hash) + RESULT_SET_FIELD_NUMBER;
hash = (53 * hash) + getResultSet().hashCode();
}
if (hasExecStats()) {
hash = (37 * hash) + EXEC_STATS_FIELD_NUMBER;
hash = (53 * hash) + getExecStats().hashCode();
}
if (hasTxMeta()) {
hash = (37 * hash) + TX_META_FIELD_NUMBER;
hash = (53 * hash) + getTxMeta().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.ExecuteQueryResponsePart}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.ExecuteQueryResponsePart)
tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePartOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteQueryResponsePart_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteQueryResponsePart_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart.class, tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart.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();
getResultSetFieldBuilder();
getExecStatsFieldBuilder();
getTxMetaFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = 0;
if (issuesBuilder_ == null) {
issues_ = java.util.Collections.emptyList();
} else {
issues_ = null;
issuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
resultSetIndex_ = 0L;
resultSet_ = null;
if (resultSetBuilder_ != null) {
resultSetBuilder_.dispose();
resultSetBuilder_ = null;
}
execStats_ = null;
if (execStatsBuilder_ != null) {
execStatsBuilder_.dispose();
execStatsBuilder_ = null;
}
txMeta_ = null;
if (txMetaBuilder_ != null) {
txMetaBuilder_.dispose();
txMetaBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteQueryResponsePart_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart build() {
tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart buildPartial() {
tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart result = new tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart result) {
if (issuesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
issues_ = java.util.Collections.unmodifiableList(issues_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.issues_ = issues_;
} else {
result.issues_ = issuesBuilder_.build();
}
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.resultSetIndex_ = resultSetIndex_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.resultSet_ = resultSetBuilder_ == null
? resultSet_
: resultSetBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.execStats_ = execStatsBuilder_ == null
? execStats_
: execStatsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.txMeta_ = txMetaBuilder_ == null
? txMeta_
: txMetaBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart other) {
if (other == tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart.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_ & ~0x00000002);
} else {
ensureIssuesIsMutable();
issues_.addAll(other.issues_);
}
onChanged();
}
} else {
if (!other.issues_.isEmpty()) {
if (issuesBuilder_.isEmpty()) {
issuesBuilder_.dispose();
issuesBuilder_ = null;
issues_ = other.issues_;
bitField0_ = (bitField0_ & ~0x00000002);
issuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIssuesFieldBuilder() : null;
} else {
issuesBuilder_.addAllMessages(other.issues_);
}
}
}
if (other.getResultSetIndex() != 0L) {
setResultSetIndex(other.getResultSetIndex());
}
if (other.hasResultSet()) {
mergeResultSet(other.getResultSet());
}
if (other.hasExecStats()) {
mergeExecStats(other.getExecStats());
}
if (other.hasTxMeta()) {
mergeTxMeta(other.getTxMeta());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
status_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
tech.ydb.proto.YdbIssueMessage.IssueMessage m =
input.readMessage(
tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(),
extensionRegistry);
if (issuesBuilder_ == null) {
ensureIssuesIsMutable();
issues_.add(m);
} else {
issuesBuilder_.addMessage(m);
}
break;
} // case 18
case 24: {
resultSetIndex_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
input.readMessage(
getResultSetFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getExecStatsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getTxMetaFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return The status.
*/
@java.lang.Override
public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private java.util.List issues_ =
java.util.Collections.emptyList();
private void ensureIssuesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
issues_ = new java.util.ArrayList(issues_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.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 tech.ydb.proto.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, tech.ydb.proto.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, tech.ydb.proto.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(tech.ydb.proto.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, tech.ydb.proto.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(
tech.ydb.proto.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, tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessage> 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_ & ~0x00000002);
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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder(
int index) {
return getIssuesFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList() {
if (issuesBuilder_ != null) {
return issuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(issues_);
}
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() {
return getIssuesFieldBuilder().addBuilder(
tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder(
int index) {
return getIssuesFieldBuilder().addBuilder(
index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public java.util.List
getIssuesBuilderList() {
return getIssuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesFieldBuilder() {
if (issuesBuilder_ == null) {
issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>(
issues_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
issues_ = null;
}
return issuesBuilder_;
}
private long resultSetIndex_ ;
/**
*
* Index of current result set
*
*
* int64 result_set_index = 3 [(.Ydb.value) = ">= 0"];
* @return The resultSetIndex.
*/
@java.lang.Override
public long getResultSetIndex() {
return resultSetIndex_;
}
/**
*
* Index of current result set
*
*
* int64 result_set_index = 3 [(.Ydb.value) = ">= 0"];
* @param value The resultSetIndex to set.
* @return This builder for chaining.
*/
public Builder setResultSetIndex(long value) {
resultSetIndex_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Index of current result set
*
*
* int64 result_set_index = 3 [(.Ydb.value) = ">= 0"];
* @return This builder for chaining.
*/
public Builder clearResultSetIndex() {
bitField0_ = (bitField0_ & ~0x00000004);
resultSetIndex_ = 0L;
onChanged();
return this;
}
private tech.ydb.proto.ValueProtos.ResultSet resultSet_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.ValueProtos.ResultSet, tech.ydb.proto.ValueProtos.ResultSet.Builder, tech.ydb.proto.ValueProtos.ResultSetOrBuilder> resultSetBuilder_;
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
* @return Whether the resultSet field is set.
*/
public boolean hasResultSet() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
* @return The resultSet.
*/
public tech.ydb.proto.ValueProtos.ResultSet getResultSet() {
if (resultSetBuilder_ == null) {
return resultSet_ == null ? tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance() : resultSet_;
} else {
return resultSetBuilder_.getMessage();
}
}
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
*/
public Builder setResultSet(tech.ydb.proto.ValueProtos.ResultSet value) {
if (resultSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resultSet_ = value;
} else {
resultSetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
*/
public Builder setResultSet(
tech.ydb.proto.ValueProtos.ResultSet.Builder builderForValue) {
if (resultSetBuilder_ == null) {
resultSet_ = builderForValue.build();
} else {
resultSetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
*/
public Builder mergeResultSet(tech.ydb.proto.ValueProtos.ResultSet value) {
if (resultSetBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
resultSet_ != null &&
resultSet_ != tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance()) {
getResultSetBuilder().mergeFrom(value);
} else {
resultSet_ = value;
}
} else {
resultSetBuilder_.mergeFrom(value);
}
if (resultSet_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
*/
public Builder clearResultSet() {
bitField0_ = (bitField0_ & ~0x00000008);
resultSet_ = null;
if (resultSetBuilder_ != null) {
resultSetBuilder_.dispose();
resultSetBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
*/
public tech.ydb.proto.ValueProtos.ResultSet.Builder getResultSetBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getResultSetFieldBuilder().getBuilder();
}
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
*/
public tech.ydb.proto.ValueProtos.ResultSetOrBuilder getResultSetOrBuilder() {
if (resultSetBuilder_ != null) {
return resultSetBuilder_.getMessageOrBuilder();
} else {
return resultSet_ == null ?
tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance() : resultSet_;
}
}
/**
*
* Result set part
*
*
* .Ydb.ResultSet result_set = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.ValueProtos.ResultSet, tech.ydb.proto.ValueProtos.ResultSet.Builder, tech.ydb.proto.ValueProtos.ResultSetOrBuilder>
getResultSetFieldBuilder() {
if (resultSetBuilder_ == null) {
resultSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.ValueProtos.ResultSet, tech.ydb.proto.ValueProtos.ResultSet.Builder, tech.ydb.proto.ValueProtos.ResultSetOrBuilder>(
getResultSet(),
getParentForChildren(),
isClean());
resultSet_ = null;
}
return resultSetBuilder_;
}
private tech.ydb.proto.YdbQueryStats.QueryStats execStats_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.YdbQueryStats.QueryStats, tech.ydb.proto.YdbQueryStats.QueryStats.Builder, tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder> execStatsBuilder_;
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
* @return Whether the execStats field is set.
*/
public boolean hasExecStats() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
* @return The execStats.
*/
public tech.ydb.proto.YdbQueryStats.QueryStats getExecStats() {
if (execStatsBuilder_ == null) {
return execStats_ == null ? tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : execStats_;
} else {
return execStatsBuilder_.getMessage();
}
}
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
*/
public Builder setExecStats(tech.ydb.proto.YdbQueryStats.QueryStats value) {
if (execStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
execStats_ = value;
} else {
execStatsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
*/
public Builder setExecStats(
tech.ydb.proto.YdbQueryStats.QueryStats.Builder builderForValue) {
if (execStatsBuilder_ == null) {
execStats_ = builderForValue.build();
} else {
execStatsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
*/
public Builder mergeExecStats(tech.ydb.proto.YdbQueryStats.QueryStats value) {
if (execStatsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
execStats_ != null &&
execStats_ != tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance()) {
getExecStatsBuilder().mergeFrom(value);
} else {
execStats_ = value;
}
} else {
execStatsBuilder_.mergeFrom(value);
}
if (execStats_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
*/
public Builder clearExecStats() {
bitField0_ = (bitField0_ & ~0x00000010);
execStats_ = null;
if (execStatsBuilder_ != null) {
execStatsBuilder_.dispose();
execStatsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
*/
public tech.ydb.proto.YdbQueryStats.QueryStats.Builder getExecStatsBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getExecStatsFieldBuilder().getBuilder();
}
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
*/
public tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder getExecStatsOrBuilder() {
if (execStatsBuilder_ != null) {
return execStatsBuilder_.getMessageOrBuilder();
} else {
return execStats_ == null ?
tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : execStats_;
}
}
/**
*
* Execution statistics (last part only)
*
*
* .Ydb.TableStats.QueryStats exec_stats = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.YdbQueryStats.QueryStats, tech.ydb.proto.YdbQueryStats.QueryStats.Builder, tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder>
getExecStatsFieldBuilder() {
if (execStatsBuilder_ == null) {
execStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.YdbQueryStats.QueryStats, tech.ydb.proto.YdbQueryStats.QueryStats.Builder, tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder>(
getExecStats(),
getParentForChildren(),
isClean());
execStats_ = null;
}
return execStatsBuilder_;
}
private tech.ydb.proto.query.YdbQuery.TransactionMeta txMeta_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionMeta, tech.ydb.proto.query.YdbQuery.TransactionMeta.Builder, tech.ydb.proto.query.YdbQuery.TransactionMetaOrBuilder> txMetaBuilder_;
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
* @return Whether the txMeta field is set.
*/
public boolean hasTxMeta() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
* @return The txMeta.
*/
public tech.ydb.proto.query.YdbQuery.TransactionMeta getTxMeta() {
if (txMetaBuilder_ == null) {
return txMeta_ == null ? tech.ydb.proto.query.YdbQuery.TransactionMeta.getDefaultInstance() : txMeta_;
} else {
return txMetaBuilder_.getMessage();
}
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
*/
public Builder setTxMeta(tech.ydb.proto.query.YdbQuery.TransactionMeta value) {
if (txMetaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
txMeta_ = value;
} else {
txMetaBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
*/
public Builder setTxMeta(
tech.ydb.proto.query.YdbQuery.TransactionMeta.Builder builderForValue) {
if (txMetaBuilder_ == null) {
txMeta_ = builderForValue.build();
} else {
txMetaBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
*/
public Builder mergeTxMeta(tech.ydb.proto.query.YdbQuery.TransactionMeta value) {
if (txMetaBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
txMeta_ != null &&
txMeta_ != tech.ydb.proto.query.YdbQuery.TransactionMeta.getDefaultInstance()) {
getTxMetaBuilder().mergeFrom(value);
} else {
txMeta_ = value;
}
} else {
txMetaBuilder_.mergeFrom(value);
}
if (txMeta_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
*/
public Builder clearTxMeta() {
bitField0_ = (bitField0_ & ~0x00000020);
txMeta_ = null;
if (txMetaBuilder_ != null) {
txMetaBuilder_.dispose();
txMetaBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
*/
public tech.ydb.proto.query.YdbQuery.TransactionMeta.Builder getTxMetaBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getTxMetaFieldBuilder().getBuilder();
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
*/
public tech.ydb.proto.query.YdbQuery.TransactionMetaOrBuilder getTxMetaOrBuilder() {
if (txMetaBuilder_ != null) {
return txMetaBuilder_.getMessageOrBuilder();
} else {
return txMeta_ == null ?
tech.ydb.proto.query.YdbQuery.TransactionMeta.getDefaultInstance() : txMeta_;
}
}
/**
* .Ydb.Query.TransactionMeta tx_meta = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionMeta, tech.ydb.proto.query.YdbQuery.TransactionMeta.Builder, tech.ydb.proto.query.YdbQuery.TransactionMetaOrBuilder>
getTxMetaFieldBuilder() {
if (txMetaBuilder_ == null) {
txMetaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.TransactionMeta, tech.ydb.proto.query.YdbQuery.TransactionMeta.Builder, tech.ydb.proto.query.YdbQuery.TransactionMetaOrBuilder>(
getTxMeta(),
getParentForChildren(),
isClean());
txMeta_ = null;
}
return txMetaBuilder_;
}
@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.Query.ExecuteQueryResponsePart)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.ExecuteQueryResponsePart)
private static final tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart();
}
public static tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteQueryResponsePart parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteQueryResponsePart getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteScriptRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.ExecuteScriptRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
boolean hasOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
tech.ydb.proto.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @return The enum numeric value on the wire for execMode.
*/
int getExecModeValue();
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @return The execMode.
*/
tech.ydb.proto.query.YdbQuery.ExecMode getExecMode();
/**
* .Ydb.Query.QueryContent script_content = 3;
* @return Whether the scriptContent field is set.
*/
boolean hasScriptContent();
/**
* .Ydb.Query.QueryContent script_content = 3;
* @return The scriptContent.
*/
tech.ydb.proto.query.YdbQuery.QueryContent getScriptContent();
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder getScriptContentOrBuilder();
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
int getParametersCount();
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
boolean containsParameters(
java.lang.String key);
/**
* Use {@link #getParametersMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getParameters();
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
java.util.Map
getParametersMap();
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
/* nullable */
tech.ydb.proto.ValueProtos.TypedValue getParametersOrDefault(
java.lang.String key,
/* nullable */
tech.ydb.proto.ValueProtos.TypedValue defaultValue);
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
tech.ydb.proto.ValueProtos.TypedValue getParametersOrThrow(
java.lang.String key);
/**
* .Ydb.Query.StatsMode stats_mode = 5;
* @return The enum numeric value on the wire for statsMode.
*/
int getStatsModeValue();
/**
* .Ydb.Query.StatsMode stats_mode = 5;
* @return The statsMode.
*/
tech.ydb.proto.query.YdbQuery.StatsMode getStatsMode();
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
* @return Whether the resultsTtl field is set.
*/
boolean hasResultsTtl();
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
* @return The resultsTtl.
*/
com.google.protobuf.Duration getResultsTtl();
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
*/
com.google.protobuf.DurationOrBuilder getResultsTtlOrBuilder();
}
/**
* Protobuf type {@code Ydb.Query.ExecuteScriptRequest}
*/
public static final class ExecuteScriptRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.ExecuteScriptRequest)
ExecuteScriptRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteScriptRequest.newBuilder() to construct.
private ExecuteScriptRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteScriptRequest() {
execMode_ = 0;
statsMode_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteScriptRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteScriptRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetParameters();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteScriptRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest.class, tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest.Builder.class);
}
private int bitField0_;
public static final int OPERATION_PARAMS_FIELD_NUMBER = 1;
private tech.ydb.proto.OperationProtos.OperationParams operationParams_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
@java.lang.Override
public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
@java.lang.Override
public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
public static final int EXEC_MODE_FIELD_NUMBER = 2;
private int execMode_ = 0;
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @return The enum numeric value on the wire for execMode.
*/
@java.lang.Override public int getExecModeValue() {
return execMode_;
}
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @return The execMode.
*/
@java.lang.Override public tech.ydb.proto.query.YdbQuery.ExecMode getExecMode() {
tech.ydb.proto.query.YdbQuery.ExecMode result = tech.ydb.proto.query.YdbQuery.ExecMode.forNumber(execMode_);
return result == null ? tech.ydb.proto.query.YdbQuery.ExecMode.UNRECOGNIZED : result;
}
public static final int SCRIPT_CONTENT_FIELD_NUMBER = 3;
private tech.ydb.proto.query.YdbQuery.QueryContent scriptContent_;
/**
* .Ydb.Query.QueryContent script_content = 3;
* @return Whether the scriptContent field is set.
*/
@java.lang.Override
public boolean hasScriptContent() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .Ydb.Query.QueryContent script_content = 3;
* @return The scriptContent.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.QueryContent getScriptContent() {
return scriptContent_ == null ? tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance() : scriptContent_;
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder getScriptContentOrBuilder() {
return scriptContent_ == null ? tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance() : scriptContent_;
}
public static final int PARAMETERS_FIELD_NUMBER = 4;
private static final class ParametersDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, tech.ydb.proto.ValueProtos.TypedValue> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteScriptRequest_ParametersEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
tech.ydb.proto.ValueProtos.TypedValue.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, tech.ydb.proto.ValueProtos.TypedValue> parameters_;
private com.google.protobuf.MapField
internalGetParameters() {
if (parameters_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ParametersDefaultEntryHolder.defaultEntry);
}
return parameters_;
}
public int getParametersCount() {
return internalGetParameters().getMap().size();
}
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
@java.lang.Override
public boolean containsParameters(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetParameters().getMap().containsKey(key);
}
/**
* Use {@link #getParametersMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getParameters() {
return getParametersMap();
}
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
@java.lang.Override
public java.util.Map getParametersMap() {
return internalGetParameters().getMap();
}
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
@java.lang.Override
public /* nullable */
tech.ydb.proto.ValueProtos.TypedValue getParametersOrDefault(
java.lang.String key,
/* nullable */
tech.ydb.proto.ValueProtos.TypedValue defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetParameters().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.TypedValue getParametersOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetParameters().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int STATS_MODE_FIELD_NUMBER = 5;
private int statsMode_ = 0;
/**
* .Ydb.Query.StatsMode stats_mode = 5;
* @return The enum numeric value on the wire for statsMode.
*/
@java.lang.Override public int getStatsModeValue() {
return statsMode_;
}
/**
* .Ydb.Query.StatsMode stats_mode = 5;
* @return The statsMode.
*/
@java.lang.Override public tech.ydb.proto.query.YdbQuery.StatsMode getStatsMode() {
tech.ydb.proto.query.YdbQuery.StatsMode result = tech.ydb.proto.query.YdbQuery.StatsMode.forNumber(statsMode_);
return result == null ? tech.ydb.proto.query.YdbQuery.StatsMode.UNRECOGNIZED : result;
}
public static final int RESULTS_TTL_FIELD_NUMBER = 6;
private com.google.protobuf.Duration resultsTtl_;
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
* @return Whether the resultsTtl field is set.
*/
@java.lang.Override
public boolean hasResultsTtl() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
* @return The resultsTtl.
*/
@java.lang.Override
public com.google.protobuf.Duration getResultsTtl() {
return resultsTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultsTtl_;
}
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getResultsTtlOrBuilder() {
return resultsTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultsTtl_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getOperationParams());
}
if (execMode_ != tech.ydb.proto.query.YdbQuery.ExecMode.EXEC_MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, execMode_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getScriptContent());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetParameters(),
ParametersDefaultEntryHolder.defaultEntry,
4);
if (statsMode_ != tech.ydb.proto.query.YdbQuery.StatsMode.STATS_MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(5, statsMode_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(6, getResultsTtl());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperationParams());
}
if (execMode_ != tech.ydb.proto.query.YdbQuery.ExecMode.EXEC_MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, execMode_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getScriptContent());
}
for (java.util.Map.Entry entry
: internalGetParameters().getMap().entrySet()) {
com.google.protobuf.MapEntry
parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, parameters__);
}
if (statsMode_ != tech.ydb.proto.query.YdbQuery.StatsMode.STATS_MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, statsMode_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getResultsTtl());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest other = (tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest) obj;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (execMode_ != other.execMode_) return false;
if (hasScriptContent() != other.hasScriptContent()) return false;
if (hasScriptContent()) {
if (!getScriptContent()
.equals(other.getScriptContent())) return false;
}
if (!internalGetParameters().equals(
other.internalGetParameters())) return false;
if (statsMode_ != other.statsMode_) return false;
if (hasResultsTtl() != other.hasResultsTtl()) return false;
if (hasResultsTtl()) {
if (!getResultsTtl()
.equals(other.getResultsTtl())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (37 * hash) + EXEC_MODE_FIELD_NUMBER;
hash = (53 * hash) + execMode_;
if (hasScriptContent()) {
hash = (37 * hash) + SCRIPT_CONTENT_FIELD_NUMBER;
hash = (53 * hash) + getScriptContent().hashCode();
}
if (!internalGetParameters().getMap().isEmpty()) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + internalGetParameters().hashCode();
}
hash = (37 * hash) + STATS_MODE_FIELD_NUMBER;
hash = (53 * hash) + statsMode_;
if (hasResultsTtl()) {
hash = (37 * hash) + RESULTS_TTL_FIELD_NUMBER;
hash = (53 * hash) + getResultsTtl().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.ExecuteScriptRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.ExecuteScriptRequest)
tech.ydb.proto.query.YdbQuery.ExecuteScriptRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteScriptRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetParameters();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 4:
return internalGetMutableParameters();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteScriptRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest.class, tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOperationParamsFieldBuilder();
getScriptContentFieldBuilder();
getResultsTtlFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
operationParams_ = null;
if (operationParamsBuilder_ != null) {
operationParamsBuilder_.dispose();
operationParamsBuilder_ = null;
}
execMode_ = 0;
scriptContent_ = null;
if (scriptContentBuilder_ != null) {
scriptContentBuilder_.dispose();
scriptContentBuilder_ = null;
}
internalGetMutableParameters().clear();
statsMode_ = 0;
resultsTtl_ = null;
if (resultsTtlBuilder_ != null) {
resultsTtlBuilder_.dispose();
resultsTtlBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteScriptRequest_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest build() {
tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest buildPartial() {
tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest result = new tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.operationParams_ = operationParamsBuilder_ == null
? operationParams_
: operationParamsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.execMode_ = execMode_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.scriptContent_ = scriptContentBuilder_ == null
? scriptContent_
: scriptContentBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.parameters_ = internalGetParameters();
result.parameters_.makeImmutable();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.statsMode_ = statsMode_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.resultsTtl_ = resultsTtlBuilder_ == null
? resultsTtl_
: resultsTtlBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest other) {
if (other == tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest.getDefaultInstance()) return this;
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
if (other.execMode_ != 0) {
setExecModeValue(other.getExecModeValue());
}
if (other.hasScriptContent()) {
mergeScriptContent(other.getScriptContent());
}
internalGetMutableParameters().mergeFrom(
other.internalGetParameters());
bitField0_ |= 0x00000008;
if (other.statsMode_ != 0) {
setStatsModeValue(other.getStatsModeValue());
}
if (other.hasResultsTtl()) {
mergeResultsTtl(other.getResultsTtl());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getOperationParamsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
execMode_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getScriptContentFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
com.google.protobuf.MapEntry
parameters__ = input.readMessage(
ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableParameters().getMutableMap().put(
parameters__.getKey(), parameters__.getValue());
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
statsMode_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
input.readMessage(
getResultsTtlFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private tech.ydb.proto.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
} else {
operationParamsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(
tech.ydb.proto.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder mergeOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
operationParams_ != null &&
operationParams_ != tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance()) {
getOperationParamsBuilder().mergeFrom(value);
} else {
operationParams_ = value;
}
} else {
operationParamsBuilder_.mergeFrom(value);
}
if (operationParams_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder clearOperationParams() {
bitField0_ = (bitField0_ & ~0x00000001);
operationParams_ = null;
if (operationParamsBuilder_ != null) {
operationParamsBuilder_.dispose();
operationParamsBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public tech.ydb.proto.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>(
getOperationParams(),
getParentForChildren(),
isClean());
operationParams_ = null;
}
return operationParamsBuilder_;
}
private int execMode_ = 0;
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @return The enum numeric value on the wire for execMode.
*/
@java.lang.Override public int getExecModeValue() {
return execMode_;
}
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @param value The enum numeric value on the wire for execMode to set.
* @return This builder for chaining.
*/
public Builder setExecModeValue(int value) {
execMode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @return The execMode.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecMode getExecMode() {
tech.ydb.proto.query.YdbQuery.ExecMode result = tech.ydb.proto.query.YdbQuery.ExecMode.forNumber(execMode_);
return result == null ? tech.ydb.proto.query.YdbQuery.ExecMode.UNRECOGNIZED : result;
}
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @param value The execMode to set.
* @return This builder for chaining.
*/
public Builder setExecMode(tech.ydb.proto.query.YdbQuery.ExecMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
execMode_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Query.ExecMode exec_mode = 2;
* @return This builder for chaining.
*/
public Builder clearExecMode() {
bitField0_ = (bitField0_ & ~0x00000002);
execMode_ = 0;
onChanged();
return this;
}
private tech.ydb.proto.query.YdbQuery.QueryContent scriptContent_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.QueryContent, tech.ydb.proto.query.YdbQuery.QueryContent.Builder, tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder> scriptContentBuilder_;
/**
* .Ydb.Query.QueryContent script_content = 3;
* @return Whether the scriptContent field is set.
*/
public boolean hasScriptContent() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .Ydb.Query.QueryContent script_content = 3;
* @return The scriptContent.
*/
public tech.ydb.proto.query.YdbQuery.QueryContent getScriptContent() {
if (scriptContentBuilder_ == null) {
return scriptContent_ == null ? tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance() : scriptContent_;
} else {
return scriptContentBuilder_.getMessage();
}
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
public Builder setScriptContent(tech.ydb.proto.query.YdbQuery.QueryContent value) {
if (scriptContentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scriptContent_ = value;
} else {
scriptContentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
public Builder setScriptContent(
tech.ydb.proto.query.YdbQuery.QueryContent.Builder builderForValue) {
if (scriptContentBuilder_ == null) {
scriptContent_ = builderForValue.build();
} else {
scriptContentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
public Builder mergeScriptContent(tech.ydb.proto.query.YdbQuery.QueryContent value) {
if (scriptContentBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
scriptContent_ != null &&
scriptContent_ != tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance()) {
getScriptContentBuilder().mergeFrom(value);
} else {
scriptContent_ = value;
}
} else {
scriptContentBuilder_.mergeFrom(value);
}
if (scriptContent_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
public Builder clearScriptContent() {
bitField0_ = (bitField0_ & ~0x00000004);
scriptContent_ = null;
if (scriptContentBuilder_ != null) {
scriptContentBuilder_.dispose();
scriptContentBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
public tech.ydb.proto.query.YdbQuery.QueryContent.Builder getScriptContentBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getScriptContentFieldBuilder().getBuilder();
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
public tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder getScriptContentOrBuilder() {
if (scriptContentBuilder_ != null) {
return scriptContentBuilder_.getMessageOrBuilder();
} else {
return scriptContent_ == null ?
tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance() : scriptContent_;
}
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.QueryContent, tech.ydb.proto.query.YdbQuery.QueryContent.Builder, tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder>
getScriptContentFieldBuilder() {
if (scriptContentBuilder_ == null) {
scriptContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.QueryContent, tech.ydb.proto.query.YdbQuery.QueryContent.Builder, tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder>(
getScriptContent(),
getParentForChildren(),
isClean());
scriptContent_ = null;
}
return scriptContentBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, tech.ydb.proto.ValueProtos.TypedValue> parameters_;
private com.google.protobuf.MapField
internalGetParameters() {
if (parameters_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ParametersDefaultEntryHolder.defaultEntry);
}
return parameters_;
}
private com.google.protobuf.MapField
internalGetMutableParameters() {
if (parameters_ == null) {
parameters_ = com.google.protobuf.MapField.newMapField(
ParametersDefaultEntryHolder.defaultEntry);
}
if (!parameters_.isMutable()) {
parameters_ = parameters_.copy();
}
bitField0_ |= 0x00000008;
onChanged();
return parameters_;
}
public int getParametersCount() {
return internalGetParameters().getMap().size();
}
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
@java.lang.Override
public boolean containsParameters(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetParameters().getMap().containsKey(key);
}
/**
* Use {@link #getParametersMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getParameters() {
return getParametersMap();
}
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
@java.lang.Override
public java.util.Map getParametersMap() {
return internalGetParameters().getMap();
}
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
@java.lang.Override
public /* nullable */
tech.ydb.proto.ValueProtos.TypedValue getParametersOrDefault(
java.lang.String key,
/* nullable */
tech.ydb.proto.ValueProtos.TypedValue defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetParameters().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.TypedValue getParametersOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetParameters().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearParameters() {
bitField0_ = (bitField0_ & ~0x00000008);
internalGetMutableParameters().getMutableMap()
.clear();
return this;
}
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
public Builder removeParameters(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableParameters().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableParameters() {
bitField0_ |= 0x00000008;
return internalGetMutableParameters().getMutableMap();
}
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
public Builder putParameters(
java.lang.String key,
tech.ydb.proto.ValueProtos.TypedValue value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableParameters().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000008;
return this;
}
/**
* map<string, .Ydb.TypedValue> parameters = 4;
*/
public Builder putAllParameters(
java.util.Map values) {
internalGetMutableParameters().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000008;
return this;
}
private int statsMode_ = 0;
/**
* .Ydb.Query.StatsMode stats_mode = 5;
* @return The enum numeric value on the wire for statsMode.
*/
@java.lang.Override public int getStatsModeValue() {
return statsMode_;
}
/**
* .Ydb.Query.StatsMode stats_mode = 5;
* @param value The enum numeric value on the wire for statsMode to set.
* @return This builder for chaining.
*/
public Builder setStatsModeValue(int value) {
statsMode_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .Ydb.Query.StatsMode stats_mode = 5;
* @return The statsMode.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.StatsMode getStatsMode() {
tech.ydb.proto.query.YdbQuery.StatsMode result = tech.ydb.proto.query.YdbQuery.StatsMode.forNumber(statsMode_);
return result == null ? tech.ydb.proto.query.YdbQuery.StatsMode.UNRECOGNIZED : result;
}
/**
* .Ydb.Query.StatsMode stats_mode = 5;
* @param value The statsMode to set.
* @return This builder for chaining.
*/
public Builder setStatsMode(tech.ydb.proto.query.YdbQuery.StatsMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
statsMode_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Query.StatsMode stats_mode = 5;
* @return This builder for chaining.
*/
public Builder clearStatsMode() {
bitField0_ = (bitField0_ & ~0x00000010);
statsMode_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Duration resultsTtl_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultsTtlBuilder_;
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
* @return Whether the resultsTtl field is set.
*/
public boolean hasResultsTtl() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
* @return The resultsTtl.
*/
public com.google.protobuf.Duration getResultsTtl() {
if (resultsTtlBuilder_ == null) {
return resultsTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultsTtl_;
} else {
return resultsTtlBuilder_.getMessage();
}
}
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
*/
public Builder setResultsTtl(com.google.protobuf.Duration value) {
if (resultsTtlBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resultsTtl_ = value;
} else {
resultsTtlBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
*/
public Builder setResultsTtl(
com.google.protobuf.Duration.Builder builderForValue) {
if (resultsTtlBuilder_ == null) {
resultsTtl_ = builderForValue.build();
} else {
resultsTtlBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
*/
public Builder mergeResultsTtl(com.google.protobuf.Duration value) {
if (resultsTtlBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
resultsTtl_ != null &&
resultsTtl_ != com.google.protobuf.Duration.getDefaultInstance()) {
getResultsTtlBuilder().mergeFrom(value);
} else {
resultsTtl_ = value;
}
} else {
resultsTtlBuilder_.mergeFrom(value);
}
if (resultsTtl_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
*/
public Builder clearResultsTtl() {
bitField0_ = (bitField0_ & ~0x00000020);
resultsTtl_ = null;
if (resultsTtlBuilder_ != null) {
resultsTtlBuilder_.dispose();
resultsTtlBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
*/
public com.google.protobuf.Duration.Builder getResultsTtlBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getResultsTtlFieldBuilder().getBuilder();
}
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
*/
public com.google.protobuf.DurationOrBuilder getResultsTtlOrBuilder() {
if (resultsTtlBuilder_ != null) {
return resultsTtlBuilder_.getMessageOrBuilder();
} else {
return resultsTtl_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : resultsTtl_;
}
}
/**
*
* After script execution operation finishes, TTL will start counting.
* After this TTL the results will be removed from database.
*
*
* .google.protobuf.Duration results_ttl = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getResultsTtlFieldBuilder() {
if (resultsTtlBuilder_ == null) {
resultsTtlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getResultsTtl(),
getParentForChildren(),
isClean());
resultsTtl_ = null;
}
return resultsTtlBuilder_;
}
@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.Query.ExecuteScriptRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.ExecuteScriptRequest)
private static final tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest();
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteScriptRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteScriptRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteScriptMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.ExecuteScriptMetadata)
com.google.protobuf.MessageOrBuilder {
/**
* string execution_id = 1 [(.Ydb.length) = { ... }
* @return The executionId.
*/
java.lang.String getExecutionId();
/**
* string execution_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for executionId.
*/
com.google.protobuf.ByteString
getExecutionIdBytes();
/**
* .Ydb.Query.ExecStatus exec_status = 2;
* @return The enum numeric value on the wire for execStatus.
*/
int getExecStatusValue();
/**
* .Ydb.Query.ExecStatus exec_status = 2;
* @return The execStatus.
*/
tech.ydb.proto.query.YdbQuery.ExecStatus getExecStatus();
/**
* .Ydb.Query.QueryContent script_content = 3;
* @return Whether the scriptContent field is set.
*/
boolean hasScriptContent();
/**
* .Ydb.Query.QueryContent script_content = 3;
* @return The scriptContent.
*/
tech.ydb.proto.query.YdbQuery.QueryContent getScriptContent();
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder getScriptContentOrBuilder();
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
java.util.List
getResultSetsMetaList();
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
tech.ydb.proto.query.YdbQuery.ResultSetMeta getResultSetsMeta(int index);
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
int getResultSetsMetaCount();
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
java.util.List extends tech.ydb.proto.query.YdbQuery.ResultSetMetaOrBuilder>
getResultSetsMetaOrBuilderList();
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
tech.ydb.proto.query.YdbQuery.ResultSetMetaOrBuilder getResultSetsMetaOrBuilder(
int index);
/**
* .Ydb.Query.ExecMode exec_mode = 5;
* @return The enum numeric value on the wire for execMode.
*/
int getExecModeValue();
/**
* .Ydb.Query.ExecMode exec_mode = 5;
* @return The execMode.
*/
tech.ydb.proto.query.YdbQuery.ExecMode getExecMode();
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
* @return Whether the execStats field is set.
*/
boolean hasExecStats();
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
* @return The execStats.
*/
tech.ydb.proto.YdbQueryStats.QueryStats getExecStats();
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
*/
tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder getExecStatsOrBuilder();
}
/**
* Protobuf type {@code Ydb.Query.ExecuteScriptMetadata}
*/
public static final class ExecuteScriptMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.ExecuteScriptMetadata)
ExecuteScriptMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteScriptMetadata.newBuilder() to construct.
private ExecuteScriptMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteScriptMetadata() {
executionId_ = "";
execStatus_ = 0;
resultSetsMeta_ = java.util.Collections.emptyList();
execMode_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteScriptMetadata();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteScriptMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteScriptMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata.class, tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata.Builder.class);
}
private int bitField0_;
public static final int EXECUTION_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object executionId_ = "";
/**
* string execution_id = 1 [(.Ydb.length) = { ... }
* @return The executionId.
*/
@java.lang.Override
public java.lang.String getExecutionId() {
java.lang.Object ref = executionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
executionId_ = s;
return s;
}
}
/**
* string execution_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for executionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExecutionIdBytes() {
java.lang.Object ref = executionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
executionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXEC_STATUS_FIELD_NUMBER = 2;
private int execStatus_ = 0;
/**
* .Ydb.Query.ExecStatus exec_status = 2;
* @return The enum numeric value on the wire for execStatus.
*/
@java.lang.Override public int getExecStatusValue() {
return execStatus_;
}
/**
* .Ydb.Query.ExecStatus exec_status = 2;
* @return The execStatus.
*/
@java.lang.Override public tech.ydb.proto.query.YdbQuery.ExecStatus getExecStatus() {
tech.ydb.proto.query.YdbQuery.ExecStatus result = tech.ydb.proto.query.YdbQuery.ExecStatus.forNumber(execStatus_);
return result == null ? tech.ydb.proto.query.YdbQuery.ExecStatus.UNRECOGNIZED : result;
}
public static final int SCRIPT_CONTENT_FIELD_NUMBER = 3;
private tech.ydb.proto.query.YdbQuery.QueryContent scriptContent_;
/**
* .Ydb.Query.QueryContent script_content = 3;
* @return Whether the scriptContent field is set.
*/
@java.lang.Override
public boolean hasScriptContent() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Query.QueryContent script_content = 3;
* @return The scriptContent.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.QueryContent getScriptContent() {
return scriptContent_ == null ? tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance() : scriptContent_;
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder getScriptContentOrBuilder() {
return scriptContent_ == null ? tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance() : scriptContent_;
}
public static final int RESULT_SETS_META_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List resultSetsMeta_;
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
@java.lang.Override
public java.util.List getResultSetsMetaList() {
return resultSetsMeta_;
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
@java.lang.Override
public java.util.List extends tech.ydb.proto.query.YdbQuery.ResultSetMetaOrBuilder>
getResultSetsMetaOrBuilderList() {
return resultSetsMeta_;
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
@java.lang.Override
public int getResultSetsMetaCount() {
return resultSetsMeta_.size();
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ResultSetMeta getResultSetsMeta(int index) {
return resultSetsMeta_.get(index);
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ResultSetMetaOrBuilder getResultSetsMetaOrBuilder(
int index) {
return resultSetsMeta_.get(index);
}
public static final int EXEC_MODE_FIELD_NUMBER = 5;
private int execMode_ = 0;
/**
* .Ydb.Query.ExecMode exec_mode = 5;
* @return The enum numeric value on the wire for execMode.
*/
@java.lang.Override public int getExecModeValue() {
return execMode_;
}
/**
* .Ydb.Query.ExecMode exec_mode = 5;
* @return The execMode.
*/
@java.lang.Override public tech.ydb.proto.query.YdbQuery.ExecMode getExecMode() {
tech.ydb.proto.query.YdbQuery.ExecMode result = tech.ydb.proto.query.YdbQuery.ExecMode.forNumber(execMode_);
return result == null ? tech.ydb.proto.query.YdbQuery.ExecMode.UNRECOGNIZED : result;
}
public static final int EXEC_STATS_FIELD_NUMBER = 6;
private tech.ydb.proto.YdbQueryStats.QueryStats execStats_;
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
* @return Whether the execStats field is set.
*/
@java.lang.Override
public boolean hasExecStats() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
* @return The execStats.
*/
@java.lang.Override
public tech.ydb.proto.YdbQueryStats.QueryStats getExecStats() {
return execStats_ == null ? tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : execStats_;
}
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
*/
@java.lang.Override
public tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder getExecStatsOrBuilder() {
return execStats_ == null ? tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : execStats_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executionId_);
}
if (execStatus_ != tech.ydb.proto.query.YdbQuery.ExecStatus.EXEC_STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(2, execStatus_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getScriptContent());
}
for (int i = 0; i < resultSetsMeta_.size(); i++) {
output.writeMessage(4, resultSetsMeta_.get(i));
}
if (execMode_ != tech.ydb.proto.query.YdbQuery.ExecMode.EXEC_MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(5, execMode_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getExecStats());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executionId_);
}
if (execStatus_ != tech.ydb.proto.query.YdbQuery.ExecStatus.EXEC_STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, execStatus_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getScriptContent());
}
for (int i = 0; i < resultSetsMeta_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, resultSetsMeta_.get(i));
}
if (execMode_ != tech.ydb.proto.query.YdbQuery.ExecMode.EXEC_MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, execMode_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getExecStats());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata other = (tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata) obj;
if (!getExecutionId()
.equals(other.getExecutionId())) return false;
if (execStatus_ != other.execStatus_) return false;
if (hasScriptContent() != other.hasScriptContent()) return false;
if (hasScriptContent()) {
if (!getScriptContent()
.equals(other.getScriptContent())) return false;
}
if (!getResultSetsMetaList()
.equals(other.getResultSetsMetaList())) return false;
if (execMode_ != other.execMode_) return false;
if (hasExecStats() != other.hasExecStats()) return false;
if (hasExecStats()) {
if (!getExecStats()
.equals(other.getExecStats())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getExecutionId().hashCode();
hash = (37 * hash) + EXEC_STATUS_FIELD_NUMBER;
hash = (53 * hash) + execStatus_;
if (hasScriptContent()) {
hash = (37 * hash) + SCRIPT_CONTENT_FIELD_NUMBER;
hash = (53 * hash) + getScriptContent().hashCode();
}
if (getResultSetsMetaCount() > 0) {
hash = (37 * hash) + RESULT_SETS_META_FIELD_NUMBER;
hash = (53 * hash) + getResultSetsMetaList().hashCode();
}
hash = (37 * hash) + EXEC_MODE_FIELD_NUMBER;
hash = (53 * hash) + execMode_;
if (hasExecStats()) {
hash = (37 * hash) + EXEC_STATS_FIELD_NUMBER;
hash = (53 * hash) + getExecStats().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.ExecuteScriptMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.ExecuteScriptMetadata)
tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteScriptMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteScriptMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata.class, tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getScriptContentFieldBuilder();
getResultSetsMetaFieldBuilder();
getExecStatsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
executionId_ = "";
execStatus_ = 0;
scriptContent_ = null;
if (scriptContentBuilder_ != null) {
scriptContentBuilder_.dispose();
scriptContentBuilder_ = null;
}
if (resultSetsMetaBuilder_ == null) {
resultSetsMeta_ = java.util.Collections.emptyList();
} else {
resultSetsMeta_ = null;
resultSetsMetaBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
execMode_ = 0;
execStats_ = null;
if (execStatsBuilder_ != null) {
execStatsBuilder_.dispose();
execStatsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_ExecuteScriptMetadata_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata build() {
tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata buildPartial() {
tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata result = new tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata result) {
if (resultSetsMetaBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
resultSetsMeta_ = java.util.Collections.unmodifiableList(resultSetsMeta_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.resultSetsMeta_ = resultSetsMeta_;
} else {
result.resultSetsMeta_ = resultSetsMetaBuilder_.build();
}
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.executionId_ = executionId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.execStatus_ = execStatus_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.scriptContent_ = scriptContentBuilder_ == null
? scriptContent_
: scriptContentBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.execMode_ = execMode_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.execStats_ = execStatsBuilder_ == null
? execStats_
: execStatsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata other) {
if (other == tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata.getDefaultInstance()) return this;
if (!other.getExecutionId().isEmpty()) {
executionId_ = other.executionId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.execStatus_ != 0) {
setExecStatusValue(other.getExecStatusValue());
}
if (other.hasScriptContent()) {
mergeScriptContent(other.getScriptContent());
}
if (resultSetsMetaBuilder_ == null) {
if (!other.resultSetsMeta_.isEmpty()) {
if (resultSetsMeta_.isEmpty()) {
resultSetsMeta_ = other.resultSetsMeta_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureResultSetsMetaIsMutable();
resultSetsMeta_.addAll(other.resultSetsMeta_);
}
onChanged();
}
} else {
if (!other.resultSetsMeta_.isEmpty()) {
if (resultSetsMetaBuilder_.isEmpty()) {
resultSetsMetaBuilder_.dispose();
resultSetsMetaBuilder_ = null;
resultSetsMeta_ = other.resultSetsMeta_;
bitField0_ = (bitField0_ & ~0x00000008);
resultSetsMetaBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResultSetsMetaFieldBuilder() : null;
} else {
resultSetsMetaBuilder_.addAllMessages(other.resultSetsMeta_);
}
}
}
if (other.execMode_ != 0) {
setExecModeValue(other.getExecModeValue());
}
if (other.hasExecStats()) {
mergeExecStats(other.getExecStats());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
executionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
execStatus_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getScriptContentFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
tech.ydb.proto.query.YdbQuery.ResultSetMeta m =
input.readMessage(
tech.ydb.proto.query.YdbQuery.ResultSetMeta.parser(),
extensionRegistry);
if (resultSetsMetaBuilder_ == null) {
ensureResultSetsMetaIsMutable();
resultSetsMeta_.add(m);
} else {
resultSetsMetaBuilder_.addMessage(m);
}
break;
} // case 34
case 40: {
execMode_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
input.readMessage(
getExecStatsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object executionId_ = "";
/**
* string execution_id = 1 [(.Ydb.length) = { ... }
* @return The executionId.
*/
public java.lang.String getExecutionId() {
java.lang.Object ref = executionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
executionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string execution_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for executionId.
*/
public com.google.protobuf.ByteString
getExecutionIdBytes() {
java.lang.Object ref = executionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
executionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string execution_id = 1 [(.Ydb.length) = { ... }
* @param value The executionId to set.
* @return This builder for chaining.
*/
public Builder setExecutionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
executionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string execution_id = 1 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearExecutionId() {
executionId_ = getDefaultInstance().getExecutionId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string execution_id = 1 [(.Ydb.length) = { ... }
* @param value The bytes for executionId to set.
* @return This builder for chaining.
*/
public Builder setExecutionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
executionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int execStatus_ = 0;
/**
* .Ydb.Query.ExecStatus exec_status = 2;
* @return The enum numeric value on the wire for execStatus.
*/
@java.lang.Override public int getExecStatusValue() {
return execStatus_;
}
/**
* .Ydb.Query.ExecStatus exec_status = 2;
* @param value The enum numeric value on the wire for execStatus to set.
* @return This builder for chaining.
*/
public Builder setExecStatusValue(int value) {
execStatus_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Query.ExecStatus exec_status = 2;
* @return The execStatus.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecStatus getExecStatus() {
tech.ydb.proto.query.YdbQuery.ExecStatus result = tech.ydb.proto.query.YdbQuery.ExecStatus.forNumber(execStatus_);
return result == null ? tech.ydb.proto.query.YdbQuery.ExecStatus.UNRECOGNIZED : result;
}
/**
* .Ydb.Query.ExecStatus exec_status = 2;
* @param value The execStatus to set.
* @return This builder for chaining.
*/
public Builder setExecStatus(tech.ydb.proto.query.YdbQuery.ExecStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
execStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Query.ExecStatus exec_status = 2;
* @return This builder for chaining.
*/
public Builder clearExecStatus() {
bitField0_ = (bitField0_ & ~0x00000002);
execStatus_ = 0;
onChanged();
return this;
}
private tech.ydb.proto.query.YdbQuery.QueryContent scriptContent_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.QueryContent, tech.ydb.proto.query.YdbQuery.QueryContent.Builder, tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder> scriptContentBuilder_;
/**
* .Ydb.Query.QueryContent script_content = 3;
* @return Whether the scriptContent field is set.
*/
public boolean hasScriptContent() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .Ydb.Query.QueryContent script_content = 3;
* @return The scriptContent.
*/
public tech.ydb.proto.query.YdbQuery.QueryContent getScriptContent() {
if (scriptContentBuilder_ == null) {
return scriptContent_ == null ? tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance() : scriptContent_;
} else {
return scriptContentBuilder_.getMessage();
}
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
public Builder setScriptContent(tech.ydb.proto.query.YdbQuery.QueryContent value) {
if (scriptContentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scriptContent_ = value;
} else {
scriptContentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
public Builder setScriptContent(
tech.ydb.proto.query.YdbQuery.QueryContent.Builder builderForValue) {
if (scriptContentBuilder_ == null) {
scriptContent_ = builderForValue.build();
} else {
scriptContentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
public Builder mergeScriptContent(tech.ydb.proto.query.YdbQuery.QueryContent value) {
if (scriptContentBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
scriptContent_ != null &&
scriptContent_ != tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance()) {
getScriptContentBuilder().mergeFrom(value);
} else {
scriptContent_ = value;
}
} else {
scriptContentBuilder_.mergeFrom(value);
}
if (scriptContent_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
public Builder clearScriptContent() {
bitField0_ = (bitField0_ & ~0x00000004);
scriptContent_ = null;
if (scriptContentBuilder_ != null) {
scriptContentBuilder_.dispose();
scriptContentBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
public tech.ydb.proto.query.YdbQuery.QueryContent.Builder getScriptContentBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getScriptContentFieldBuilder().getBuilder();
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
public tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder getScriptContentOrBuilder() {
if (scriptContentBuilder_ != null) {
return scriptContentBuilder_.getMessageOrBuilder();
} else {
return scriptContent_ == null ?
tech.ydb.proto.query.YdbQuery.QueryContent.getDefaultInstance() : scriptContent_;
}
}
/**
* .Ydb.Query.QueryContent script_content = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.QueryContent, tech.ydb.proto.query.YdbQuery.QueryContent.Builder, tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder>
getScriptContentFieldBuilder() {
if (scriptContentBuilder_ == null) {
scriptContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.QueryContent, tech.ydb.proto.query.YdbQuery.QueryContent.Builder, tech.ydb.proto.query.YdbQuery.QueryContentOrBuilder>(
getScriptContent(),
getParentForChildren(),
isClean());
scriptContent_ = null;
}
return scriptContentBuilder_;
}
private java.util.List resultSetsMeta_ =
java.util.Collections.emptyList();
private void ensureResultSetsMetaIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
resultSetsMeta_ = new java.util.ArrayList(resultSetsMeta_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.ResultSetMeta, tech.ydb.proto.query.YdbQuery.ResultSetMeta.Builder, tech.ydb.proto.query.YdbQuery.ResultSetMetaOrBuilder> resultSetsMetaBuilder_;
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public java.util.List getResultSetsMetaList() {
if (resultSetsMetaBuilder_ == null) {
return java.util.Collections.unmodifiableList(resultSetsMeta_);
} else {
return resultSetsMetaBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public int getResultSetsMetaCount() {
if (resultSetsMetaBuilder_ == null) {
return resultSetsMeta_.size();
} else {
return resultSetsMetaBuilder_.getCount();
}
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public tech.ydb.proto.query.YdbQuery.ResultSetMeta getResultSetsMeta(int index) {
if (resultSetsMetaBuilder_ == null) {
return resultSetsMeta_.get(index);
} else {
return resultSetsMetaBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public Builder setResultSetsMeta(
int index, tech.ydb.proto.query.YdbQuery.ResultSetMeta value) {
if (resultSetsMetaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultSetsMetaIsMutable();
resultSetsMeta_.set(index, value);
onChanged();
} else {
resultSetsMetaBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public Builder setResultSetsMeta(
int index, tech.ydb.proto.query.YdbQuery.ResultSetMeta.Builder builderForValue) {
if (resultSetsMetaBuilder_ == null) {
ensureResultSetsMetaIsMutable();
resultSetsMeta_.set(index, builderForValue.build());
onChanged();
} else {
resultSetsMetaBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public Builder addResultSetsMeta(tech.ydb.proto.query.YdbQuery.ResultSetMeta value) {
if (resultSetsMetaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultSetsMetaIsMutable();
resultSetsMeta_.add(value);
onChanged();
} else {
resultSetsMetaBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public Builder addResultSetsMeta(
int index, tech.ydb.proto.query.YdbQuery.ResultSetMeta value) {
if (resultSetsMetaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultSetsMetaIsMutable();
resultSetsMeta_.add(index, value);
onChanged();
} else {
resultSetsMetaBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public Builder addResultSetsMeta(
tech.ydb.proto.query.YdbQuery.ResultSetMeta.Builder builderForValue) {
if (resultSetsMetaBuilder_ == null) {
ensureResultSetsMetaIsMutable();
resultSetsMeta_.add(builderForValue.build());
onChanged();
} else {
resultSetsMetaBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public Builder addResultSetsMeta(
int index, tech.ydb.proto.query.YdbQuery.ResultSetMeta.Builder builderForValue) {
if (resultSetsMetaBuilder_ == null) {
ensureResultSetsMetaIsMutable();
resultSetsMeta_.add(index, builderForValue.build());
onChanged();
} else {
resultSetsMetaBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public Builder addAllResultSetsMeta(
java.lang.Iterable extends tech.ydb.proto.query.YdbQuery.ResultSetMeta> values) {
if (resultSetsMetaBuilder_ == null) {
ensureResultSetsMetaIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, resultSetsMeta_);
onChanged();
} else {
resultSetsMetaBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public Builder clearResultSetsMeta() {
if (resultSetsMetaBuilder_ == null) {
resultSetsMeta_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
resultSetsMetaBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public Builder removeResultSetsMeta(int index) {
if (resultSetsMetaBuilder_ == null) {
ensureResultSetsMetaIsMutable();
resultSetsMeta_.remove(index);
onChanged();
} else {
resultSetsMetaBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public tech.ydb.proto.query.YdbQuery.ResultSetMeta.Builder getResultSetsMetaBuilder(
int index) {
return getResultSetsMetaFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public tech.ydb.proto.query.YdbQuery.ResultSetMetaOrBuilder getResultSetsMetaOrBuilder(
int index) {
if (resultSetsMetaBuilder_ == null) {
return resultSetsMeta_.get(index); } else {
return resultSetsMetaBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public java.util.List extends tech.ydb.proto.query.YdbQuery.ResultSetMetaOrBuilder>
getResultSetsMetaOrBuilderList() {
if (resultSetsMetaBuilder_ != null) {
return resultSetsMetaBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(resultSetsMeta_);
}
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public tech.ydb.proto.query.YdbQuery.ResultSetMeta.Builder addResultSetsMetaBuilder() {
return getResultSetsMetaFieldBuilder().addBuilder(
tech.ydb.proto.query.YdbQuery.ResultSetMeta.getDefaultInstance());
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public tech.ydb.proto.query.YdbQuery.ResultSetMeta.Builder addResultSetsMetaBuilder(
int index) {
return getResultSetsMetaFieldBuilder().addBuilder(
index, tech.ydb.proto.query.YdbQuery.ResultSetMeta.getDefaultInstance());
}
/**
* repeated .Ydb.Query.ResultSetMeta result_sets_meta = 4;
*/
public java.util.List
getResultSetsMetaBuilderList() {
return getResultSetsMetaFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.ResultSetMeta, tech.ydb.proto.query.YdbQuery.ResultSetMeta.Builder, tech.ydb.proto.query.YdbQuery.ResultSetMetaOrBuilder>
getResultSetsMetaFieldBuilder() {
if (resultSetsMetaBuilder_ == null) {
resultSetsMetaBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.query.YdbQuery.ResultSetMeta, tech.ydb.proto.query.YdbQuery.ResultSetMeta.Builder, tech.ydb.proto.query.YdbQuery.ResultSetMetaOrBuilder>(
resultSetsMeta_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
resultSetsMeta_ = null;
}
return resultSetsMetaBuilder_;
}
private int execMode_ = 0;
/**
* .Ydb.Query.ExecMode exec_mode = 5;
* @return The enum numeric value on the wire for execMode.
*/
@java.lang.Override public int getExecModeValue() {
return execMode_;
}
/**
* .Ydb.Query.ExecMode exec_mode = 5;
* @param value The enum numeric value on the wire for execMode to set.
* @return This builder for chaining.
*/
public Builder setExecModeValue(int value) {
execMode_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .Ydb.Query.ExecMode exec_mode = 5;
* @return The execMode.
*/
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecMode getExecMode() {
tech.ydb.proto.query.YdbQuery.ExecMode result = tech.ydb.proto.query.YdbQuery.ExecMode.forNumber(execMode_);
return result == null ? tech.ydb.proto.query.YdbQuery.ExecMode.UNRECOGNIZED : result;
}
/**
* .Ydb.Query.ExecMode exec_mode = 5;
* @param value The execMode to set.
* @return This builder for chaining.
*/
public Builder setExecMode(tech.ydb.proto.query.YdbQuery.ExecMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
execMode_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Query.ExecMode exec_mode = 5;
* @return This builder for chaining.
*/
public Builder clearExecMode() {
bitField0_ = (bitField0_ & ~0x00000010);
execMode_ = 0;
onChanged();
return this;
}
private tech.ydb.proto.YdbQueryStats.QueryStats execStats_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.YdbQueryStats.QueryStats, tech.ydb.proto.YdbQueryStats.QueryStats.Builder, tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder> execStatsBuilder_;
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
* @return Whether the execStats field is set.
*/
public boolean hasExecStats() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
* @return The execStats.
*/
public tech.ydb.proto.YdbQueryStats.QueryStats getExecStats() {
if (execStatsBuilder_ == null) {
return execStats_ == null ? tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : execStats_;
} else {
return execStatsBuilder_.getMessage();
}
}
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
*/
public Builder setExecStats(tech.ydb.proto.YdbQueryStats.QueryStats value) {
if (execStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
execStats_ = value;
} else {
execStatsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
*/
public Builder setExecStats(
tech.ydb.proto.YdbQueryStats.QueryStats.Builder builderForValue) {
if (execStatsBuilder_ == null) {
execStats_ = builderForValue.build();
} else {
execStatsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
*/
public Builder mergeExecStats(tech.ydb.proto.YdbQueryStats.QueryStats value) {
if (execStatsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
execStats_ != null &&
execStats_ != tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance()) {
getExecStatsBuilder().mergeFrom(value);
} else {
execStats_ = value;
}
} else {
execStatsBuilder_.mergeFrom(value);
}
if (execStats_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
*/
public Builder clearExecStats() {
bitField0_ = (bitField0_ & ~0x00000020);
execStats_ = null;
if (execStatsBuilder_ != null) {
execStatsBuilder_.dispose();
execStatsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
*/
public tech.ydb.proto.YdbQueryStats.QueryStats.Builder getExecStatsBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getExecStatsFieldBuilder().getBuilder();
}
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
*/
public tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder getExecStatsOrBuilder() {
if (execStatsBuilder_ != null) {
return execStatsBuilder_.getMessageOrBuilder();
} else {
return execStats_ == null ?
tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : execStats_;
}
}
/**
*
* Execution statistics
*
*
* .Ydb.TableStats.QueryStats exec_stats = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.YdbQueryStats.QueryStats, tech.ydb.proto.YdbQueryStats.QueryStats.Builder, tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder>
getExecStatsFieldBuilder() {
if (execStatsBuilder_ == null) {
execStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.YdbQueryStats.QueryStats, tech.ydb.proto.YdbQueryStats.QueryStats.Builder, tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder>(
getExecStats(),
getParentForChildren(),
isClean());
execStats_ = null;
}
return execStatsBuilder_;
}
@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.Query.ExecuteScriptMetadata)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.ExecuteScriptMetadata)
private static final tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata();
}
public static tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteScriptMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.ExecuteScriptMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FetchScriptResultsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.FetchScriptResultsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string operation_id = 1 [(.Ydb.length) = { ... }
* @return The operationId.
*/
java.lang.String getOperationId();
/**
* string operation_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for operationId.
*/
com.google.protobuf.ByteString
getOperationIdBytes();
/**
* int64 result_set_index = 2;
* @return The resultSetIndex.
*/
long getResultSetIndex();
/**
* string fetch_token = 3 [(.Ydb.length) = { ... }
* @return The fetchToken.
*/
java.lang.String getFetchToken();
/**
* string fetch_token = 3 [(.Ydb.length) = { ... }
* @return The bytes for fetchToken.
*/
com.google.protobuf.ByteString
getFetchTokenBytes();
/**
* int64 rows_limit = 4 [(.Ydb.value) = ">= 0"];
* @return The rowsLimit.
*/
long getRowsLimit();
}
/**
* Protobuf type {@code Ydb.Query.FetchScriptResultsRequest}
*/
public static final class FetchScriptResultsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.FetchScriptResultsRequest)
FetchScriptResultsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use FetchScriptResultsRequest.newBuilder() to construct.
private FetchScriptResultsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FetchScriptResultsRequest() {
operationId_ = "";
fetchToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FetchScriptResultsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_FetchScriptResultsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_FetchScriptResultsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest.class, tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest.Builder.class);
}
public static final int OPERATION_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object operationId_ = "";
/**
* string operation_id = 1 [(.Ydb.length) = { ... }
* @return The operationId.
*/
@java.lang.Override
public java.lang.String getOperationId() {
java.lang.Object ref = operationId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
operationId_ = s;
return s;
}
}
/**
* string operation_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for operationId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOperationIdBytes() {
java.lang.Object ref = operationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESULT_SET_INDEX_FIELD_NUMBER = 2;
private long resultSetIndex_ = 0L;
/**
* int64 result_set_index = 2;
* @return The resultSetIndex.
*/
@java.lang.Override
public long getResultSetIndex() {
return resultSetIndex_;
}
public static final int FETCH_TOKEN_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object fetchToken_ = "";
/**
* string fetch_token = 3 [(.Ydb.length) = { ... }
* @return The fetchToken.
*/
@java.lang.Override
public java.lang.String getFetchToken() {
java.lang.Object ref = fetchToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fetchToken_ = s;
return s;
}
}
/**
* string fetch_token = 3 [(.Ydb.length) = { ... }
* @return The bytes for fetchToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFetchTokenBytes() {
java.lang.Object ref = fetchToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fetchToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROWS_LIMIT_FIELD_NUMBER = 4;
private long rowsLimit_ = 0L;
/**
* int64 rows_limit = 4 [(.Ydb.value) = ">= 0"];
* @return The rowsLimit.
*/
@java.lang.Override
public long getRowsLimit() {
return rowsLimit_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationId_);
}
if (resultSetIndex_ != 0L) {
output.writeInt64(2, resultSetIndex_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fetchToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fetchToken_);
}
if (rowsLimit_ != 0L) {
output.writeInt64(4, rowsLimit_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operationId_);
}
if (resultSetIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, resultSetIndex_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fetchToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fetchToken_);
}
if (rowsLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, rowsLimit_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest other = (tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest) obj;
if (!getOperationId()
.equals(other.getOperationId())) return false;
if (getResultSetIndex()
!= other.getResultSetIndex()) return false;
if (!getFetchToken()
.equals(other.getFetchToken())) return false;
if (getRowsLimit()
!= other.getRowsLimit()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getOperationId().hashCode();
hash = (37 * hash) + RESULT_SET_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getResultSetIndex());
hash = (37 * hash) + FETCH_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getFetchToken().hashCode();
hash = (37 * hash) + ROWS_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRowsLimit());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.FetchScriptResultsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.FetchScriptResultsRequest)
tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_FetchScriptResultsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_FetchScriptResultsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest.class, tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
operationId_ = "";
resultSetIndex_ = 0L;
fetchToken_ = "";
rowsLimit_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_FetchScriptResultsRequest_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest build() {
tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest buildPartial() {
tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest result = new tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.operationId_ = operationId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.resultSetIndex_ = resultSetIndex_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.fetchToken_ = fetchToken_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.rowsLimit_ = rowsLimit_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest other) {
if (other == tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest.getDefaultInstance()) return this;
if (!other.getOperationId().isEmpty()) {
operationId_ = other.operationId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getResultSetIndex() != 0L) {
setResultSetIndex(other.getResultSetIndex());
}
if (!other.getFetchToken().isEmpty()) {
fetchToken_ = other.fetchToken_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.getRowsLimit() != 0L) {
setRowsLimit(other.getRowsLimit());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
operationId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
resultSetIndex_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
fetchToken_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
rowsLimit_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object operationId_ = "";
/**
* string operation_id = 1 [(.Ydb.length) = { ... }
* @return The operationId.
*/
public java.lang.String getOperationId() {
java.lang.Object ref = operationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
operationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string operation_id = 1 [(.Ydb.length) = { ... }
* @return The bytes for operationId.
*/
public com.google.protobuf.ByteString
getOperationIdBytes() {
java.lang.Object ref = operationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string operation_id = 1 [(.Ydb.length) = { ... }
* @param value The operationId to set.
* @return This builder for chaining.
*/
public Builder setOperationId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
operationId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string operation_id = 1 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearOperationId() {
operationId_ = getDefaultInstance().getOperationId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string operation_id = 1 [(.Ydb.length) = { ... }
* @param value The bytes for operationId to set.
* @return This builder for chaining.
*/
public Builder setOperationIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
operationId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long resultSetIndex_ ;
/**
* int64 result_set_index = 2;
* @return The resultSetIndex.
*/
@java.lang.Override
public long getResultSetIndex() {
return resultSetIndex_;
}
/**
* int64 result_set_index = 2;
* @param value The resultSetIndex to set.
* @return This builder for chaining.
*/
public Builder setResultSetIndex(long value) {
resultSetIndex_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 result_set_index = 2;
* @return This builder for chaining.
*/
public Builder clearResultSetIndex() {
bitField0_ = (bitField0_ & ~0x00000002);
resultSetIndex_ = 0L;
onChanged();
return this;
}
private java.lang.Object fetchToken_ = "";
/**
* string fetch_token = 3 [(.Ydb.length) = { ... }
* @return The fetchToken.
*/
public java.lang.String getFetchToken() {
java.lang.Object ref = fetchToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fetchToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string fetch_token = 3 [(.Ydb.length) = { ... }
* @return The bytes for fetchToken.
*/
public com.google.protobuf.ByteString
getFetchTokenBytes() {
java.lang.Object ref = fetchToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fetchToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string fetch_token = 3 [(.Ydb.length) = { ... }
* @param value The fetchToken to set.
* @return This builder for chaining.
*/
public Builder setFetchToken(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
fetchToken_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string fetch_token = 3 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearFetchToken() {
fetchToken_ = getDefaultInstance().getFetchToken();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string fetch_token = 3 [(.Ydb.length) = { ... }
* @param value The bytes for fetchToken to set.
* @return This builder for chaining.
*/
public Builder setFetchTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
fetchToken_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private long rowsLimit_ ;
/**
* int64 rows_limit = 4 [(.Ydb.value) = ">= 0"];
* @return The rowsLimit.
*/
@java.lang.Override
public long getRowsLimit() {
return rowsLimit_;
}
/**
* int64 rows_limit = 4 [(.Ydb.value) = ">= 0"];
* @param value The rowsLimit to set.
* @return This builder for chaining.
*/
public Builder setRowsLimit(long value) {
rowsLimit_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* int64 rows_limit = 4 [(.Ydb.value) = ">= 0"];
* @return This builder for chaining.
*/
public Builder clearRowsLimit() {
bitField0_ = (bitField0_ & ~0x00000008);
rowsLimit_ = 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.Query.FetchScriptResultsRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.FetchScriptResultsRequest)
private static final tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest();
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FetchScriptResultsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.FetchScriptResultsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FetchScriptResultsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Query.FetchScriptResultsResponse)
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.
*/
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List
getIssuesList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index);
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
int getIssuesCount();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index);
/**
* int64 result_set_index = 3 [(.Ydb.value) = ">= 0"];
* @return The resultSetIndex.
*/
long getResultSetIndex();
/**
* .Ydb.ResultSet result_set = 4;
* @return Whether the resultSet field is set.
*/
boolean hasResultSet();
/**
* .Ydb.ResultSet result_set = 4;
* @return The resultSet.
*/
tech.ydb.proto.ValueProtos.ResultSet getResultSet();
/**
* .Ydb.ResultSet result_set = 4;
*/
tech.ydb.proto.ValueProtos.ResultSetOrBuilder getResultSetOrBuilder();
/**
* string next_fetch_token = 5 [(.Ydb.length) = { ... }
* @return The nextFetchToken.
*/
java.lang.String getNextFetchToken();
/**
* string next_fetch_token = 5 [(.Ydb.length) = { ... }
* @return The bytes for nextFetchToken.
*/
com.google.protobuf.ByteString
getNextFetchTokenBytes();
}
/**
* Protobuf type {@code Ydb.Query.FetchScriptResultsResponse}
*/
public static final class FetchScriptResultsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Query.FetchScriptResultsResponse)
FetchScriptResultsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use FetchScriptResultsResponse.newBuilder() to construct.
private FetchScriptResultsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FetchScriptResultsResponse() {
status_ = 0;
issues_ = java.util.Collections.emptyList();
nextFetchToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FetchScriptResultsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_FetchScriptResultsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_FetchScriptResultsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse.class, tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse.Builder.class);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
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;
* @return The status.
*/
@java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
public static final int ISSUES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
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 tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) {
return issues_.get(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
@java.lang.Override
public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index) {
return issues_.get(index);
}
public static final int RESULT_SET_INDEX_FIELD_NUMBER = 3;
private long resultSetIndex_ = 0L;
/**
* int64 result_set_index = 3 [(.Ydb.value) = ">= 0"];
* @return The resultSetIndex.
*/
@java.lang.Override
public long getResultSetIndex() {
return resultSetIndex_;
}
public static final int RESULT_SET_FIELD_NUMBER = 4;
private tech.ydb.proto.ValueProtos.ResultSet resultSet_;
/**
* .Ydb.ResultSet result_set = 4;
* @return Whether the resultSet field is set.
*/
@java.lang.Override
public boolean hasResultSet() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.ResultSet result_set = 4;
* @return The resultSet.
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.ResultSet getResultSet() {
return resultSet_ == null ? tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance() : resultSet_;
}
/**
* .Ydb.ResultSet result_set = 4;
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.ResultSetOrBuilder getResultSetOrBuilder() {
return resultSet_ == null ? tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance() : resultSet_;
}
public static final int NEXT_FETCH_TOKEN_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object nextFetchToken_ = "";
/**
* string next_fetch_token = 5 [(.Ydb.length) = { ... }
* @return The nextFetchToken.
*/
@java.lang.Override
public java.lang.String getNextFetchToken() {
java.lang.Object ref = nextFetchToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextFetchToken_ = s;
return s;
}
}
/**
* string next_fetch_token = 5 [(.Ydb.length) = { ... }
* @return The bytes for nextFetchToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextFetchTokenBytes() {
java.lang.Object ref = nextFetchToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextFetchToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != tech.ydb.proto.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));
}
if (resultSetIndex_ != 0L) {
output.writeInt64(3, resultSetIndex_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getResultSet());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextFetchToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nextFetchToken_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != tech.ydb.proto.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));
}
if (resultSetIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, resultSetIndex_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getResultSet());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextFetchToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nextFetchToken_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse)) {
return super.equals(obj);
}
tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse other = (tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse) obj;
if (status_ != other.status_) return false;
if (!getIssuesList()
.equals(other.getIssuesList())) return false;
if (getResultSetIndex()
!= other.getResultSetIndex()) return false;
if (hasResultSet() != other.hasResultSet()) return false;
if (hasResultSet()) {
if (!getResultSet()
.equals(other.getResultSet())) return false;
}
if (!getNextFetchToken()
.equals(other.getNextFetchToken())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getIssuesCount() > 0) {
hash = (37 * hash) + ISSUES_FIELD_NUMBER;
hash = (53 * hash) + getIssuesList().hashCode();
}
hash = (37 * hash) + RESULT_SET_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getResultSetIndex());
if (hasResultSet()) {
hash = (37 * hash) + RESULT_SET_FIELD_NUMBER;
hash = (53 * hash) + getResultSet().hashCode();
}
hash = (37 * hash) + NEXT_FETCH_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextFetchToken().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Query.FetchScriptResultsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Query.FetchScriptResultsResponse)
tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_FetchScriptResultsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_FetchScriptResultsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse.class, tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse.Builder.class);
}
// Construct using tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse.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();
getResultSetFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = 0;
if (issuesBuilder_ == null) {
issues_ = java.util.Collections.emptyList();
} else {
issues_ = null;
issuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
resultSetIndex_ = 0L;
resultSet_ = null;
if (resultSetBuilder_ != null) {
resultSetBuilder_.dispose();
resultSetBuilder_ = null;
}
nextFetchToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.query.YdbQuery.internal_static_Ydb_Query_FetchScriptResultsResponse_descriptor;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse getDefaultInstanceForType() {
return tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse build() {
tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse buildPartial() {
tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse result = new tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse result) {
if (issuesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
issues_ = java.util.Collections.unmodifiableList(issues_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.issues_ = issues_;
} else {
result.issues_ = issuesBuilder_.build();
}
}
private void buildPartial0(tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.resultSetIndex_ = resultSetIndex_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.resultSet_ = resultSetBuilder_ == null
? resultSet_
: resultSetBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.nextFetchToken_ = nextFetchToken_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse) {
return mergeFrom((tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse other) {
if (other == tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse.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_ & ~0x00000002);
} else {
ensureIssuesIsMutable();
issues_.addAll(other.issues_);
}
onChanged();
}
} else {
if (!other.issues_.isEmpty()) {
if (issuesBuilder_.isEmpty()) {
issuesBuilder_.dispose();
issuesBuilder_ = null;
issues_ = other.issues_;
bitField0_ = (bitField0_ & ~0x00000002);
issuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIssuesFieldBuilder() : null;
} else {
issuesBuilder_.addAllMessages(other.issues_);
}
}
}
if (other.getResultSetIndex() != 0L) {
setResultSetIndex(other.getResultSetIndex());
}
if (other.hasResultSet()) {
mergeResultSet(other.getResultSet());
}
if (!other.getNextFetchToken().isEmpty()) {
nextFetchToken_ = other.nextFetchToken_;
bitField0_ |= 0x00000010;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
status_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
tech.ydb.proto.YdbIssueMessage.IssueMessage m =
input.readMessage(
tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(),
extensionRegistry);
if (issuesBuilder_ == null) {
ensureIssuesIsMutable();
issues_.add(m);
} else {
issuesBuilder_.addMessage(m);
}
break;
} // case 18
case 24: {
resultSetIndex_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
input.readMessage(
getResultSetFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
nextFetchToken_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return The status.
*/
@java.lang.Override
public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() {
tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_);
return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private java.util.List issues_ =
java.util.Collections.emptyList();
private void ensureIssuesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
issues_ = new java.util.ArrayList(issues_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.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 tech.ydb.proto.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, tech.ydb.proto.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, tech.ydb.proto.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(tech.ydb.proto.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, tech.ydb.proto.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(
tech.ydb.proto.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, tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessage> 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_ & ~0x00000002);
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 tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder(
int index) {
return getIssuesFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.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 extends tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList() {
if (issuesBuilder_ != null) {
return issuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(issues_);
}
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() {
return getIssuesFieldBuilder().addBuilder(
tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder(
int index) {
return getIssuesFieldBuilder().addBuilder(
index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public java.util.List
getIssuesBuilderList() {
return getIssuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesFieldBuilder() {
if (issuesBuilder_ == null) {
issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>(
issues_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
issues_ = null;
}
return issuesBuilder_;
}
private long resultSetIndex_ ;
/**
* int64 result_set_index = 3 [(.Ydb.value) = ">= 0"];
* @return The resultSetIndex.
*/
@java.lang.Override
public long getResultSetIndex() {
return resultSetIndex_;
}
/**
* int64 result_set_index = 3 [(.Ydb.value) = ">= 0"];
* @param value The resultSetIndex to set.
* @return This builder for chaining.
*/
public Builder setResultSetIndex(long value) {
resultSetIndex_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int64 result_set_index = 3 [(.Ydb.value) = ">= 0"];
* @return This builder for chaining.
*/
public Builder clearResultSetIndex() {
bitField0_ = (bitField0_ & ~0x00000004);
resultSetIndex_ = 0L;
onChanged();
return this;
}
private tech.ydb.proto.ValueProtos.ResultSet resultSet_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.ValueProtos.ResultSet, tech.ydb.proto.ValueProtos.ResultSet.Builder, tech.ydb.proto.ValueProtos.ResultSetOrBuilder> resultSetBuilder_;
/**
* .Ydb.ResultSet result_set = 4;
* @return Whether the resultSet field is set.
*/
public boolean hasResultSet() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .Ydb.ResultSet result_set = 4;
* @return The resultSet.
*/
public tech.ydb.proto.ValueProtos.ResultSet getResultSet() {
if (resultSetBuilder_ == null) {
return resultSet_ == null ? tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance() : resultSet_;
} else {
return resultSetBuilder_.getMessage();
}
}
/**
* .Ydb.ResultSet result_set = 4;
*/
public Builder setResultSet(tech.ydb.proto.ValueProtos.ResultSet value) {
if (resultSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resultSet_ = value;
} else {
resultSetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .Ydb.ResultSet result_set = 4;
*/
public Builder setResultSet(
tech.ydb.proto.ValueProtos.ResultSet.Builder builderForValue) {
if (resultSetBuilder_ == null) {
resultSet_ = builderForValue.build();
} else {
resultSetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .Ydb.ResultSet result_set = 4;
*/
public Builder mergeResultSet(tech.ydb.proto.ValueProtos.ResultSet value) {
if (resultSetBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
resultSet_ != null &&
resultSet_ != tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance()) {
getResultSetBuilder().mergeFrom(value);
} else {
resultSet_ = value;
}
} else {
resultSetBuilder_.mergeFrom(value);
}
if (resultSet_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .Ydb.ResultSet result_set = 4;
*/
public Builder clearResultSet() {
bitField0_ = (bitField0_ & ~0x00000008);
resultSet_ = null;
if (resultSetBuilder_ != null) {
resultSetBuilder_.dispose();
resultSetBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.ResultSet result_set = 4;
*/
public tech.ydb.proto.ValueProtos.ResultSet.Builder getResultSetBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getResultSetFieldBuilder().getBuilder();
}
/**
* .Ydb.ResultSet result_set = 4;
*/
public tech.ydb.proto.ValueProtos.ResultSetOrBuilder getResultSetOrBuilder() {
if (resultSetBuilder_ != null) {
return resultSetBuilder_.getMessageOrBuilder();
} else {
return resultSet_ == null ?
tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance() : resultSet_;
}
}
/**
* .Ydb.ResultSet result_set = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.ValueProtos.ResultSet, tech.ydb.proto.ValueProtos.ResultSet.Builder, tech.ydb.proto.ValueProtos.ResultSetOrBuilder>
getResultSetFieldBuilder() {
if (resultSetBuilder_ == null) {
resultSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.ValueProtos.ResultSet, tech.ydb.proto.ValueProtos.ResultSet.Builder, tech.ydb.proto.ValueProtos.ResultSetOrBuilder>(
getResultSet(),
getParentForChildren(),
isClean());
resultSet_ = null;
}
return resultSetBuilder_;
}
private java.lang.Object nextFetchToken_ = "";
/**
* string next_fetch_token = 5 [(.Ydb.length) = { ... }
* @return The nextFetchToken.
*/
public java.lang.String getNextFetchToken() {
java.lang.Object ref = nextFetchToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextFetchToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string next_fetch_token = 5 [(.Ydb.length) = { ... }
* @return The bytes for nextFetchToken.
*/
public com.google.protobuf.ByteString
getNextFetchTokenBytes() {
java.lang.Object ref = nextFetchToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextFetchToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string next_fetch_token = 5 [(.Ydb.length) = { ... }
* @param value The nextFetchToken to set.
* @return This builder for chaining.
*/
public Builder setNextFetchToken(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
nextFetchToken_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* string next_fetch_token = 5 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearNextFetchToken() {
nextFetchToken_ = getDefaultInstance().getNextFetchToken();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* string next_fetch_token = 5 [(.Ydb.length) = { ... }
* @param value The bytes for nextFetchToken to set.
* @return This builder for chaining.
*/
public Builder setNextFetchTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
nextFetchToken_ = value;
bitField0_ |= 0x00000010;
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.Query.FetchScriptResultsResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Query.FetchScriptResultsResponse)
private static final tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse();
}
public static tech.ydb.proto.query.YdbQuery.FetchScriptResultsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FetchScriptResultsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser