Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ydb/public/api/protos/ydb_scripting.proto
package com.yandex.ydb.scripting;
public final class ScriptingProtos {
private ScriptingProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface ExecuteYqlRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scripting.ExecuteYqlRequest)
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.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
/**
* string script = 2;
* @return The script.
*/
java.lang.String getScript();
/**
* string script = 2;
* @return The bytes for script.
*/
com.google.protobuf.ByteString
getScriptBytes();
/**
* map<string, .Ydb.TypedValue> parameters = 3;
*/
int getParametersCount();
/**
* map<string, .Ydb.TypedValue> parameters = 3;
*/
boolean containsParameters(
java.lang.String key);
/**
* Use {@link #getParametersMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getParameters();
/**
* map<string, .Ydb.TypedValue> parameters = 3;
*/
java.util.Map
getParametersMap();
/**
* map<string, .Ydb.TypedValue> parameters = 3;
*/
com.yandex.ydb.ValueProtos.TypedValue getParametersOrDefault(
java.lang.String key,
com.yandex.ydb.ValueProtos.TypedValue defaultValue);
/**
* map<string, .Ydb.TypedValue> parameters = 3;
*/
com.yandex.ydb.ValueProtos.TypedValue getParametersOrThrow(
java.lang.String key);
/**
* .Ydb.Table.QueryStatsCollection.Mode collect_stats = 4;
* @return The enum numeric value on the wire for collectStats.
*/
int getCollectStatsValue();
/**
* .Ydb.Table.QueryStatsCollection.Mode collect_stats = 4;
* @return The collectStats.
*/
com.yandex.ydb.table.YdbTable.QueryStatsCollection.Mode getCollectStats();
}
/**
* Protobuf type {@code Ydb.Scripting.ExecuteYqlRequest}
*/
public static final class ExecuteYqlRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scripting.ExecuteYqlRequest)
ExecuteYqlRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteYqlRequest.newBuilder() to construct.
private ExecuteYqlRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteYqlRequest() {
script_ = "";
collectStats_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteYqlRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteYqlRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
script_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
parameters_ = com.google.protobuf.MapField.newMapField(
ParametersDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
parameters__ = input.readMessage(
ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
parameters_.getMutableMap().put(
parameters__.getKey(), parameters__.getValue());
break;
}
case 32: {
int rawValue = input.readEnum();
collectStats_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetParameters();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest.class, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest.Builder.class);
}
public static final int OPERATION_PARAMS_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
public static final int SCRIPT_FIELD_NUMBER = 2;
private volatile java.lang.Object script_;
/**
* string script = 2;
* @return The script.
*/
@java.lang.Override
public java.lang.String getScript() {
java.lang.Object ref = script_;
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();
script_ = s;
return s;
}
}
/**
* string script = 2;
* @return The bytes for script.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScriptBytes() {
java.lang.Object ref = script_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
script_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARAMETERS_FIELD_NUMBER = 3;
private static final class ParametersDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.yandex.ydb.ValueProtos.TypedValue> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlRequest_ParametersEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.yandex.ydb.ValueProtos.TypedValue.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, com.yandex.ydb.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 = 3;
*/
@java.lang.Override
public boolean containsParameters(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
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 = 3;
*/
@java.lang.Override
public java.util.Map getParametersMap() {
return internalGetParameters().getMap();
}
/**
* map<string, .Ydb.TypedValue> parameters = 3;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypedValue getParametersOrDefault(
java.lang.String key,
com.yandex.ydb.ValueProtos.TypedValue defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetParameters().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .Ydb.TypedValue> parameters = 3;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypedValue getParametersOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetParameters().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int COLLECT_STATS_FIELD_NUMBER = 4;
private int collectStats_;
/**
* .Ydb.Table.QueryStatsCollection.Mode collect_stats = 4;
* @return The enum numeric value on the wire for collectStats.
*/
@java.lang.Override public int getCollectStatsValue() {
return collectStats_;
}
/**
* .Ydb.Table.QueryStatsCollection.Mode collect_stats = 4;
* @return The collectStats.
*/
@java.lang.Override public com.yandex.ydb.table.YdbTable.QueryStatsCollection.Mode getCollectStats() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.QueryStatsCollection.Mode result = com.yandex.ydb.table.YdbTable.QueryStatsCollection.Mode.valueOf(collectStats_);
return result == null ? com.yandex.ydb.table.YdbTable.QueryStatsCollection.Mode.UNRECOGNIZED : result;
}
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 (operationParams_ != null) {
output.writeMessage(1, getOperationParams());
}
if (!getScriptBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, script_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetParameters(),
ParametersDefaultEntryHolder.defaultEntry,
3);
if (collectStats_ != com.yandex.ydb.table.YdbTable.QueryStatsCollection.Mode.STATS_COLLECTION_UNSPECIFIED.getNumber()) {
output.writeEnum(4, collectStats_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperationParams());
}
if (!getScriptBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, script_);
}
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(3, parameters__);
}
if (collectStats_ != com.yandex.ydb.table.YdbTable.QueryStatsCollection.Mode.STATS_COLLECTION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, collectStats_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest)) {
return super.equals(obj);
}
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest other = (com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest) obj;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (!getScript()
.equals(other.getScript())) return false;
if (!internalGetParameters().equals(
other.internalGetParameters())) return false;
if (collectStats_ != other.collectStats_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (37 * hash) + SCRIPT_FIELD_NUMBER;
hash = (53 * hash) + getScript().hashCode();
if (!internalGetParameters().getMap().isEmpty()) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + internalGetParameters().hashCode();
}
hash = (37 * hash) + COLLECT_STATS_FIELD_NUMBER;
hash = (53 * hash) + collectStats_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest 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.Scripting.ExecuteYqlRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scripting.ExecuteYqlRequest)
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetParameters();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 3:
return internalGetMutableParameters();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest.class, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest.Builder.class);
}
// Construct using com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
script_ = "";
internalGetMutableParameters().clear();
collectStats_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest getDefaultInstanceForType() {
return com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest build() {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest buildPartial() {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest result = new com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest(this);
int from_bitField0_ = bitField0_;
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.build();
}
result.script_ = script_;
result.parameters_ = internalGetParameters();
result.parameters_.makeImmutable();
result.collectStats_ = collectStats_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest) {
return mergeFrom((com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest other) {
if (other == com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest.getDefaultInstance()) return this;
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
if (!other.getScript().isEmpty()) {
script_ = other.script_;
onChanged();
}
internalGetMutableParameters().mergeFrom(
other.internalGetParameters());
if (other.collectStats_ != 0) {
setCollectStatsValue(other.getCollectStatsValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return operationParamsBuilder_ != null || operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
onChanged();
} else {
operationParamsBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(
com.yandex.ydb.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
onChanged();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder mergeOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (operationParams_ != null) {
operationParams_ =
com.yandex.ydb.OperationProtos.OperationParams.newBuilder(operationParams_).mergeFrom(value).buildPartial();
} else {
operationParams_ = value;
}
onChanged();
} else {
operationParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder clearOperationParams() {
if (operationParamsBuilder_ == null) {
operationParams_ = null;
onChanged();
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>(
getOperationParams(),
getParentForChildren(),
isClean());
operationParams_ = null;
}
return operationParamsBuilder_;
}
private java.lang.Object script_ = "";
/**
* string script = 2;
* @return The script.
*/
public java.lang.String getScript() {
java.lang.Object ref = script_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
script_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string script = 2;
* @return The bytes for script.
*/
public com.google.protobuf.ByteString
getScriptBytes() {
java.lang.Object ref = script_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
script_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string script = 2;
* @param value The script to set.
* @return This builder for chaining.
*/
public Builder setScript(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
script_ = value;
onChanged();
return this;
}
/**
* string script = 2;
* @return This builder for chaining.
*/
public Builder clearScript() {
script_ = getDefaultInstance().getScript();
onChanged();
return this;
}
/**
* string script = 2;
* @param value The bytes for script to set.
* @return This builder for chaining.
*/
public Builder setScriptBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
script_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, com.yandex.ydb.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() {
onChanged();;
if (parameters_ == null) {
parameters_ = com.google.protobuf.MapField.newMapField(
ParametersDefaultEntryHolder.defaultEntry);
}
if (!parameters_.isMutable()) {
parameters_ = parameters_.copy();
}
return parameters_;
}
public int getParametersCount() {
return internalGetParameters().getMap().size();
}
/**
* map<string, .Ydb.TypedValue> parameters = 3;
*/
@java.lang.Override
public boolean containsParameters(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
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 = 3;
*/
@java.lang.Override
public java.util.Map getParametersMap() {
return internalGetParameters().getMap();
}
/**
* map<string, .Ydb.TypedValue> parameters = 3;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypedValue getParametersOrDefault(
java.lang.String key,
com.yandex.ydb.ValueProtos.TypedValue defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetParameters().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .Ydb.TypedValue> parameters = 3;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypedValue getParametersOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetParameters().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearParameters() {
internalGetMutableParameters().getMutableMap()
.clear();
return this;
}
/**
* map<string, .Ydb.TypedValue> parameters = 3;
*/
public Builder removeParameters(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableParameters().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableParameters() {
return internalGetMutableParameters().getMutableMap();
}
/**
* map<string, .Ydb.TypedValue> parameters = 3;
*/
public Builder putParameters(
java.lang.String key,
com.yandex.ydb.ValueProtos.TypedValue value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableParameters().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .Ydb.TypedValue> parameters = 3;
*/
public Builder putAllParameters(
java.util.Map values) {
internalGetMutableParameters().getMutableMap()
.putAll(values);
return this;
}
private int collectStats_ = 0;
/**
* .Ydb.Table.QueryStatsCollection.Mode collect_stats = 4;
* @return The enum numeric value on the wire for collectStats.
*/
@java.lang.Override public int getCollectStatsValue() {
return collectStats_;
}
/**
* .Ydb.Table.QueryStatsCollection.Mode collect_stats = 4;
* @param value The enum numeric value on the wire for collectStats to set.
* @return This builder for chaining.
*/
public Builder setCollectStatsValue(int value) {
collectStats_ = value;
onChanged();
return this;
}
/**
* .Ydb.Table.QueryStatsCollection.Mode collect_stats = 4;
* @return The collectStats.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.QueryStatsCollection.Mode getCollectStats() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.QueryStatsCollection.Mode result = com.yandex.ydb.table.YdbTable.QueryStatsCollection.Mode.valueOf(collectStats_);
return result == null ? com.yandex.ydb.table.YdbTable.QueryStatsCollection.Mode.UNRECOGNIZED : result;
}
/**
* .Ydb.Table.QueryStatsCollection.Mode collect_stats = 4;
* @param value The collectStats to set.
* @return This builder for chaining.
*/
public Builder setCollectStats(com.yandex.ydb.table.YdbTable.QueryStatsCollection.Mode value) {
if (value == null) {
throw new NullPointerException();
}
collectStats_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Table.QueryStatsCollection.Mode collect_stats = 4;
* @return This builder for chaining.
*/
public Builder clearCollectStats() {
collectStats_ = 0;
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.Scripting.ExecuteYqlRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Scripting.ExecuteYqlRequest)
private static final com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest();
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteYqlRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteYqlRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteYqlResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scripting.ExecuteYqlResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
com.yandex.ydb.OperationProtos.Operation getOperation();
/**
* .Ydb.Operations.Operation operation = 1;
*/
com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
* Protobuf type {@code Ydb.Scripting.ExecuteYqlResponse}
*/
public static final class ExecuteYqlResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scripting.ExecuteYqlResponse)
ExecuteYqlResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteYqlResponse.newBuilder() to construct.
private ExecuteYqlResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteYqlResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteYqlResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteYqlResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.Operation.Builder subBuilder = null;
if (operation_ != null) {
subBuilder = operation_.toBuilder();
}
operation_ = input.readMessage(com.yandex.ydb.OperationProtos.Operation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operation_);
operation_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse.class, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse.Builder.class);
}
public static final int OPERATION_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.Operation operation_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return operation_ != null;
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.Operation getOperation() {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
return getOperation();
}
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 (operation_ != null) {
output.writeMessage(1, getOperation());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperation());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse)) {
return super.equals(obj);
}
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse other = (com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse) obj;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperation()) {
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse 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.Scripting.ExecuteYqlResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scripting.ExecuteYqlResponse)
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse.class, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse.Builder.class);
}
// Construct using com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationBuilder_ == null) {
operation_ = null;
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse getDefaultInstanceForType() {
return com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse build() {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse buildPartial() {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse result = new com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse(this);
if (operationBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = operationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse) {
return mergeFrom((com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse other) {
if (other == com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse.getDefaultInstance()) return this;
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.Operation operation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> operationBuilder_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return operationBuilder_ != null || operation_ != null;
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
public com.yandex.ydb.OperationProtos.Operation getOperation() {
if (operationBuilder_ == null) {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
} else {
return operationBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
operationBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(
com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder mergeOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (operation_ != null) {
operation_ =
com.yandex.ydb.OperationProtos.Operation.newBuilder(operation_).mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
operationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
if (operationBuilder_ == null) {
operation_ = null;
onChanged();
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.Operation.Builder getOperationBuilder() {
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
if (operationBuilder_ != null) {
return operationBuilder_.getMessageOrBuilder();
} else {
return operation_ == null ?
com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>(
getOperation(),
getParentForChildren(),
isClean());
operation_ = null;
}
return operationBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Scripting.ExecuteYqlResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Scripting.ExecuteYqlResponse)
private static final com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse();
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteYqlResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteYqlResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteYqlResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scripting.ExecuteYqlResult)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
java.util.List
getResultSetsList();
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
com.yandex.ydb.ValueProtos.ResultSet getResultSets(int index);
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
int getResultSetsCount();
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
java.util.List extends com.yandex.ydb.ValueProtos.ResultSetOrBuilder>
getResultSetsOrBuilderList();
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
com.yandex.ydb.ValueProtos.ResultSetOrBuilder getResultSetsOrBuilder(
int index);
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
* @return Whether the queryStats field is set.
*/
boolean hasQueryStats();
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
* @return The queryStats.
*/
com.yandex.ydb.YdbQueryStats.QueryStats getQueryStats();
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
*/
com.yandex.ydb.YdbQueryStats.QueryStatsOrBuilder getQueryStatsOrBuilder();
}
/**
* Protobuf type {@code Ydb.Scripting.ExecuteYqlResult}
*/
public static final class ExecuteYqlResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scripting.ExecuteYqlResult)
ExecuteYqlResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteYqlResult.newBuilder() to construct.
private ExecuteYqlResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteYqlResult() {
resultSets_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteYqlResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteYqlResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
resultSets_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
resultSets_.add(
input.readMessage(com.yandex.ydb.ValueProtos.ResultSet.parser(), extensionRegistry));
break;
}
case 18: {
com.yandex.ydb.YdbQueryStats.QueryStats.Builder subBuilder = null;
if (queryStats_ != null) {
subBuilder = queryStats_.toBuilder();
}
queryStats_ = input.readMessage(com.yandex.ydb.YdbQueryStats.QueryStats.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(queryStats_);
queryStats_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
resultSets_ = java.util.Collections.unmodifiableList(resultSets_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult.class, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult.Builder.class);
}
public static final int RESULT_SETS_FIELD_NUMBER = 1;
private java.util.List resultSets_;
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
@java.lang.Override
public java.util.List getResultSetsList() {
return resultSets_;
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.ValueProtos.ResultSetOrBuilder>
getResultSetsOrBuilderList() {
return resultSets_;
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
@java.lang.Override
public int getResultSetsCount() {
return resultSets_.size();
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ResultSet getResultSets(int index) {
return resultSets_.get(index);
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ResultSetOrBuilder getResultSetsOrBuilder(
int index) {
return resultSets_.get(index);
}
public static final int QUERY_STATS_FIELD_NUMBER = 2;
private com.yandex.ydb.YdbQueryStats.QueryStats queryStats_;
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
* @return Whether the queryStats field is set.
*/
@java.lang.Override
public boolean hasQueryStats() {
return queryStats_ != null;
}
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
* @return The queryStats.
*/
@java.lang.Override
public com.yandex.ydb.YdbQueryStats.QueryStats getQueryStats() {
return queryStats_ == null ? com.yandex.ydb.YdbQueryStats.QueryStats.getDefaultInstance() : queryStats_;
}
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
*/
@java.lang.Override
public com.yandex.ydb.YdbQueryStats.QueryStatsOrBuilder getQueryStatsOrBuilder() {
return getQueryStats();
}
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 < resultSets_.size(); i++) {
output.writeMessage(1, resultSets_.get(i));
}
if (queryStats_ != null) {
output.writeMessage(2, getQueryStats());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < resultSets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, resultSets_.get(i));
}
if (queryStats_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getQueryStats());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult)) {
return super.equals(obj);
}
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult other = (com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult) obj;
if (!getResultSetsList()
.equals(other.getResultSetsList())) return false;
if (hasQueryStats() != other.hasQueryStats()) return false;
if (hasQueryStats()) {
if (!getQueryStats()
.equals(other.getQueryStats())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getResultSetsCount() > 0) {
hash = (37 * hash) + RESULT_SETS_FIELD_NUMBER;
hash = (53 * hash) + getResultSetsList().hashCode();
}
if (hasQueryStats()) {
hash = (37 * hash) + QUERY_STATS_FIELD_NUMBER;
hash = (53 * hash) + getQueryStats().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult 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.Scripting.ExecuteYqlResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scripting.ExecuteYqlResult)
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult.class, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult.Builder.class);
}
// Construct using com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResultSetsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (resultSetsBuilder_ == null) {
resultSets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
resultSetsBuilder_.clear();
}
if (queryStatsBuilder_ == null) {
queryStats_ = null;
} else {
queryStats_ = null;
queryStatsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResult_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult getDefaultInstanceForType() {
return com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult build() {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult buildPartial() {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult result = new com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult(this);
int from_bitField0_ = bitField0_;
if (resultSetsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
resultSets_ = java.util.Collections.unmodifiableList(resultSets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.resultSets_ = resultSets_;
} else {
result.resultSets_ = resultSetsBuilder_.build();
}
if (queryStatsBuilder_ == null) {
result.queryStats_ = queryStats_;
} else {
result.queryStats_ = queryStatsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult) {
return mergeFrom((com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult other) {
if (other == com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult.getDefaultInstance()) return this;
if (resultSetsBuilder_ == null) {
if (!other.resultSets_.isEmpty()) {
if (resultSets_.isEmpty()) {
resultSets_ = other.resultSets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResultSetsIsMutable();
resultSets_.addAll(other.resultSets_);
}
onChanged();
}
} else {
if (!other.resultSets_.isEmpty()) {
if (resultSetsBuilder_.isEmpty()) {
resultSetsBuilder_.dispose();
resultSetsBuilder_ = null;
resultSets_ = other.resultSets_;
bitField0_ = (bitField0_ & ~0x00000001);
resultSetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResultSetsFieldBuilder() : null;
} else {
resultSetsBuilder_.addAllMessages(other.resultSets_);
}
}
}
if (other.hasQueryStats()) {
mergeQueryStats(other.getQueryStats());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List resultSets_ =
java.util.Collections.emptyList();
private void ensureResultSetsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
resultSets_ = new java.util.ArrayList(resultSets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.ResultSet, com.yandex.ydb.ValueProtos.ResultSet.Builder, com.yandex.ydb.ValueProtos.ResultSetOrBuilder> resultSetsBuilder_;
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public java.util.List getResultSetsList() {
if (resultSetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(resultSets_);
} else {
return resultSetsBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public int getResultSetsCount() {
if (resultSetsBuilder_ == null) {
return resultSets_.size();
} else {
return resultSetsBuilder_.getCount();
}
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public com.yandex.ydb.ValueProtos.ResultSet getResultSets(int index) {
if (resultSetsBuilder_ == null) {
return resultSets_.get(index);
} else {
return resultSetsBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public Builder setResultSets(
int index, com.yandex.ydb.ValueProtos.ResultSet value) {
if (resultSetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultSetsIsMutable();
resultSets_.set(index, value);
onChanged();
} else {
resultSetsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public Builder setResultSets(
int index, com.yandex.ydb.ValueProtos.ResultSet.Builder builderForValue) {
if (resultSetsBuilder_ == null) {
ensureResultSetsIsMutable();
resultSets_.set(index, builderForValue.build());
onChanged();
} else {
resultSetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public Builder addResultSets(com.yandex.ydb.ValueProtos.ResultSet value) {
if (resultSetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultSetsIsMutable();
resultSets_.add(value);
onChanged();
} else {
resultSetsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public Builder addResultSets(
int index, com.yandex.ydb.ValueProtos.ResultSet value) {
if (resultSetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultSetsIsMutable();
resultSets_.add(index, value);
onChanged();
} else {
resultSetsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public Builder addResultSets(
com.yandex.ydb.ValueProtos.ResultSet.Builder builderForValue) {
if (resultSetsBuilder_ == null) {
ensureResultSetsIsMutable();
resultSets_.add(builderForValue.build());
onChanged();
} else {
resultSetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public Builder addResultSets(
int index, com.yandex.ydb.ValueProtos.ResultSet.Builder builderForValue) {
if (resultSetsBuilder_ == null) {
ensureResultSetsIsMutable();
resultSets_.add(index, builderForValue.build());
onChanged();
} else {
resultSetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public Builder addAllResultSets(
java.lang.Iterable extends com.yandex.ydb.ValueProtos.ResultSet> values) {
if (resultSetsBuilder_ == null) {
ensureResultSetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, resultSets_);
onChanged();
} else {
resultSetsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public Builder clearResultSets() {
if (resultSetsBuilder_ == null) {
resultSets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
resultSetsBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public Builder removeResultSets(int index) {
if (resultSetsBuilder_ == null) {
ensureResultSetsIsMutable();
resultSets_.remove(index);
onChanged();
} else {
resultSetsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public com.yandex.ydb.ValueProtos.ResultSet.Builder getResultSetsBuilder(
int index) {
return getResultSetsFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public com.yandex.ydb.ValueProtos.ResultSetOrBuilder getResultSetsOrBuilder(
int index) {
if (resultSetsBuilder_ == null) {
return resultSets_.get(index); } else {
return resultSetsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public java.util.List extends com.yandex.ydb.ValueProtos.ResultSetOrBuilder>
getResultSetsOrBuilderList() {
if (resultSetsBuilder_ != null) {
return resultSetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(resultSets_);
}
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public com.yandex.ydb.ValueProtos.ResultSet.Builder addResultSetsBuilder() {
return getResultSetsFieldBuilder().addBuilder(
com.yandex.ydb.ValueProtos.ResultSet.getDefaultInstance());
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public com.yandex.ydb.ValueProtos.ResultSet.Builder addResultSetsBuilder(
int index) {
return getResultSetsFieldBuilder().addBuilder(
index, com.yandex.ydb.ValueProtos.ResultSet.getDefaultInstance());
}
/**
* repeated .Ydb.ResultSet result_sets = 1;
*/
public java.util.List
getResultSetsBuilderList() {
return getResultSetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.ResultSet, com.yandex.ydb.ValueProtos.ResultSet.Builder, com.yandex.ydb.ValueProtos.ResultSetOrBuilder>
getResultSetsFieldBuilder() {
if (resultSetsBuilder_ == null) {
resultSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.ResultSet, com.yandex.ydb.ValueProtos.ResultSet.Builder, com.yandex.ydb.ValueProtos.ResultSetOrBuilder>(
resultSets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
resultSets_ = null;
}
return resultSetsBuilder_;
}
private com.yandex.ydb.YdbQueryStats.QueryStats queryStats_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.YdbQueryStats.QueryStats, com.yandex.ydb.YdbQueryStats.QueryStats.Builder, com.yandex.ydb.YdbQueryStats.QueryStatsOrBuilder> queryStatsBuilder_;
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
* @return Whether the queryStats field is set.
*/
public boolean hasQueryStats() {
return queryStatsBuilder_ != null || queryStats_ != null;
}
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
* @return The queryStats.
*/
public com.yandex.ydb.YdbQueryStats.QueryStats getQueryStats() {
if (queryStatsBuilder_ == null) {
return queryStats_ == null ? com.yandex.ydb.YdbQueryStats.QueryStats.getDefaultInstance() : queryStats_;
} else {
return queryStatsBuilder_.getMessage();
}
}
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
*/
public Builder setQueryStats(com.yandex.ydb.YdbQueryStats.QueryStats value) {
if (queryStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryStats_ = value;
onChanged();
} else {
queryStatsBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
*/
public Builder setQueryStats(
com.yandex.ydb.YdbQueryStats.QueryStats.Builder builderForValue) {
if (queryStatsBuilder_ == null) {
queryStats_ = builderForValue.build();
onChanged();
} else {
queryStatsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
*/
public Builder mergeQueryStats(com.yandex.ydb.YdbQueryStats.QueryStats value) {
if (queryStatsBuilder_ == null) {
if (queryStats_ != null) {
queryStats_ =
com.yandex.ydb.YdbQueryStats.QueryStats.newBuilder(queryStats_).mergeFrom(value).buildPartial();
} else {
queryStats_ = value;
}
onChanged();
} else {
queryStatsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
*/
public Builder clearQueryStats() {
if (queryStatsBuilder_ == null) {
queryStats_ = null;
onChanged();
} else {
queryStats_ = null;
queryStatsBuilder_ = null;
}
return this;
}
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
*/
public com.yandex.ydb.YdbQueryStats.QueryStats.Builder getQueryStatsBuilder() {
onChanged();
return getQueryStatsFieldBuilder().getBuilder();
}
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
*/
public com.yandex.ydb.YdbQueryStats.QueryStatsOrBuilder getQueryStatsOrBuilder() {
if (queryStatsBuilder_ != null) {
return queryStatsBuilder_.getMessageOrBuilder();
} else {
return queryStats_ == null ?
com.yandex.ydb.YdbQueryStats.QueryStats.getDefaultInstance() : queryStats_;
}
}
/**
* .Ydb.TableStats.QueryStats query_stats = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.YdbQueryStats.QueryStats, com.yandex.ydb.YdbQueryStats.QueryStats.Builder, com.yandex.ydb.YdbQueryStats.QueryStatsOrBuilder>
getQueryStatsFieldBuilder() {
if (queryStatsBuilder_ == null) {
queryStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.YdbQueryStats.QueryStats, com.yandex.ydb.YdbQueryStats.QueryStats.Builder, com.yandex.ydb.YdbQueryStats.QueryStatsOrBuilder>(
getQueryStats(),
getParentForChildren(),
isClean());
queryStats_ = null;
}
return queryStatsBuilder_;
}
@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.Scripting.ExecuteYqlResult)
}
// @@protoc_insertion_point(class_scope:Ydb.Scripting.ExecuteYqlResult)
private static final com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult();
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteYqlResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteYqlResult(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteYqlPartialResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scripting.ExecuteYqlPartialResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return The status.
*/
com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List
getIssuesList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index);
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
int getIssuesCount();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
java.util.List extends com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList();
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index);
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
* @return Whether the result field is set.
*/
boolean hasResult();
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
* @return The result.
*/
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult getResult();
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
*/
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResultOrBuilder getResultOrBuilder();
}
/**
*
* Response for StreamExecuteYql is a stream of ExecuteYqlPartialResponse messages.
* These responses can contain ExecuteYqlPartialResult messages with
* results (or result parts) for data or scan queries in the script.
* YqlScript can have multiple results (result sets).
* Each result set has an index (starting at 0).
*
*
* Protobuf type {@code Ydb.Scripting.ExecuteYqlPartialResponse}
*/
public static final class ExecuteYqlPartialResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scripting.ExecuteYqlPartialResponse)
ExecuteYqlPartialResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteYqlPartialResponse.newBuilder() to construct.
private ExecuteYqlPartialResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteYqlPartialResponse() {
status_ = 0;
issues_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteYqlPartialResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteYqlPartialResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
issues_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
issues_.add(
input.readMessage(com.yandex.ydb.YdbIssueMessage.IssueMessage.parser(), extensionRegistry));
break;
}
case 26: {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
issues_ = java.util.Collections.unmodifiableList(issues_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse.class, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return The status.
*/
@java.lang.Override public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() {
@SuppressWarnings("deprecation")
com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_);
return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
public static final int ISSUES_FIELD_NUMBER = 2;
private java.util.List issues_;
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
@java.lang.Override
public java.util.List getIssuesList() {
return issues_;
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.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 com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) {
return issues_.get(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
@java.lang.Override
public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index) {
return issues_.get(index);
}
public static final int RESULT_FIELD_NUMBER = 3;
private com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult result_;
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
* @return Whether the result field is set.
*/
@java.lang.Override
public boolean hasResult() {
return result_ != null;
}
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
* @return The result.
*/
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult getResult() {
return result_ == null ? com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.getDefaultInstance() : result_;
}
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
*/
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResultOrBuilder getResultOrBuilder() {
return getResult();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) {
output.writeEnum(1, status_);
}
for (int i = 0; i < issues_.size(); i++) {
output.writeMessage(2, issues_.get(i));
}
if (result_ != null) {
output.writeMessage(3, getResult());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
for (int i = 0; i < issues_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, issues_.get(i));
}
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getResult());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse)) {
return super.equals(obj);
}
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse other = (com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse) obj;
if (status_ != other.status_) return false;
if (!getIssuesList()
.equals(other.getIssuesList())) return false;
if (hasResult() != other.hasResult()) return false;
if (hasResult()) {
if (!getResult()
.equals(other.getResult())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getIssuesCount() > 0) {
hash = (37 * hash) + ISSUES_FIELD_NUMBER;
hash = (53 * hash) + getIssuesList().hashCode();
}
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse 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;
}
/**
*
* Response for StreamExecuteYql is a stream of ExecuteYqlPartialResponse messages.
* These responses can contain ExecuteYqlPartialResult messages with
* results (or result parts) for data or scan queries in the script.
* YqlScript can have multiple results (result sets).
* Each result set has an index (starting at 0).
*
*
* Protobuf type {@code Ydb.Scripting.ExecuteYqlPartialResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scripting.ExecuteYqlPartialResponse)
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse.class, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse.Builder.class);
}
// Construct using com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIssuesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
status_ = 0;
if (issuesBuilder_ == null) {
issues_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
issuesBuilder_.clear();
}
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse getDefaultInstanceForType() {
return com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse build() {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse buildPartial() {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse result = new com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse(this);
int from_bitField0_ = bitField0_;
result.status_ = status_;
if (issuesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
issues_ = java.util.Collections.unmodifiableList(issues_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.issues_ = issues_;
} else {
result.issues_ = issuesBuilder_.build();
}
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse) {
return mergeFrom((com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse other) {
if (other == com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (issuesBuilder_ == null) {
if (!other.issues_.isEmpty()) {
if (issues_.isEmpty()) {
issues_ = other.issues_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIssuesIsMutable();
issues_.addAll(other.issues_);
}
onChanged();
}
} else {
if (!other.issues_.isEmpty()) {
if (issuesBuilder_.isEmpty()) {
issuesBuilder_.dispose();
issuesBuilder_ = null;
issues_ = other.issues_;
bitField0_ = (bitField0_ & ~0x00000001);
issuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIssuesFieldBuilder() : null;
} else {
issuesBuilder_.addAllMessages(other.issues_);
}
}
}
if (other.hasResult()) {
mergeResult(other.getResult());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int status_ = 0;
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return The status.
*/
@java.lang.Override
public com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode getStatus() {
@SuppressWarnings("deprecation")
com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode result = com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.valueOf(status_);
return result == null ? com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.yandex.ydb.StatusCodesProtos.StatusIds.StatusCode value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.StatusIds.StatusCode status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private java.util.List issues_ =
java.util.Collections.emptyList();
private void ensureIssuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
issues_ = new java.util.ArrayList(issues_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_;
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public java.util.List getIssuesList() {
if (issuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(issues_);
} else {
return issuesBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public int getIssuesCount() {
if (issuesBuilder_ == null) {
return issues_.size();
} else {
return issuesBuilder_.getCount();
}
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public com.yandex.ydb.YdbIssueMessage.IssueMessage getIssues(int index) {
if (issuesBuilder_ == null) {
return issues_.get(index);
} else {
return issuesBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public Builder setIssues(
int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) {
if (issuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIssuesIsMutable();
issues_.set(index, value);
onChanged();
} else {
issuesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public Builder setIssues(
int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) {
if (issuesBuilder_ == null) {
ensureIssuesIsMutable();
issues_.set(index, builderForValue.build());
onChanged();
} else {
issuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public Builder addIssues(com.yandex.ydb.YdbIssueMessage.IssueMessage value) {
if (issuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIssuesIsMutable();
issues_.add(value);
onChanged();
} else {
issuesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public Builder addIssues(
int index, com.yandex.ydb.YdbIssueMessage.IssueMessage value) {
if (issuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIssuesIsMutable();
issues_.add(index, value);
onChanged();
} else {
issuesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public Builder addIssues(
com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) {
if (issuesBuilder_ == null) {
ensureIssuesIsMutable();
issues_.add(builderForValue.build());
onChanged();
} else {
issuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public Builder addIssues(
int index, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder builderForValue) {
if (issuesBuilder_ == null) {
ensureIssuesIsMutable();
issues_.add(index, builderForValue.build());
onChanged();
} else {
issuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public Builder addAllIssues(
java.lang.Iterable extends com.yandex.ydb.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_ & ~0x00000001);
onChanged();
} else {
issuesBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public Builder removeIssues(int index) {
if (issuesBuilder_ == null) {
ensureIssuesIsMutable();
issues_.remove(index);
onChanged();
} else {
issuesBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder(
int index) {
return getIssuesFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder(
int index) {
if (issuesBuilder_ == null) {
return issues_.get(index); } else {
return issuesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public java.util.List extends com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesOrBuilderList() {
if (issuesBuilder_ != null) {
return issuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(issues_);
}
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() {
return getIssuesFieldBuilder().addBuilder(
com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder(
int index) {
return getIssuesFieldBuilder().addBuilder(
index, com.yandex.ydb.YdbIssueMessage.IssueMessage.getDefaultInstance());
}
/**
* repeated .Ydb.Issue.IssueMessage issues = 2;
*/
public java.util.List
getIssuesBuilderList() {
return getIssuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>
getIssuesFieldBuilder() {
if (issuesBuilder_ == null) {
issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.YdbIssueMessage.IssueMessage, com.yandex.ydb.YdbIssueMessage.IssueMessage.Builder, com.yandex.ydb.YdbIssueMessage.IssueMessageOrBuilder>(
issues_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
issues_ = null;
}
return issuesBuilder_;
}
private com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult result_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResultOrBuilder> resultBuilder_;
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
* @return Whether the result field is set.
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
* @return The result.
*/
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult getResult() {
if (resultBuilder_ == null) {
return result_ == null ? com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
*/
public Builder setResult(com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
*/
public Builder setResult(
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
*/
public Builder mergeResult(com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
*/
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
*/
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResultOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.getDefaultInstance() : result_;
}
}
/**
* .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResultOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResultOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
@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.Scripting.ExecuteYqlPartialResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Scripting.ExecuteYqlPartialResponse)
private static final com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse();
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteYqlPartialResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteYqlPartialResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteYqlPartialResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Scripting.ExecuteYqlPartialResult)
com.google.protobuf.MessageOrBuilder {
/**
*
* Index of current result
*
*
* uint32 result_set_index = 1;
* @return The resultSetIndex.
*/
int getResultSetIndex();
/**
*
* Result set (or a result set part) for one data or scan query
*
*
* .Ydb.ResultSet result_set = 2;
* @return Whether the resultSet field is set.
*/
boolean hasResultSet();
/**
*
* Result set (or a result set part) for one data or scan query
*
* Contains result set (or a result set part) for one data or scan query in the script.
* One result set can be split into several responses with same result_index.
* Only the final response can contain query stats.
*
*
* Protobuf type {@code Ydb.Scripting.ExecuteYqlPartialResult}
*/
public static final class ExecuteYqlPartialResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Scripting.ExecuteYqlPartialResult)
ExecuteYqlPartialResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteYqlPartialResult.newBuilder() to construct.
private ExecuteYqlPartialResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteYqlPartialResult() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteYqlPartialResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteYqlPartialResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
resultSetIndex_ = input.readUInt32();
break;
}
case 18: {
com.yandex.ydb.ValueProtos.ResultSet.Builder subBuilder = null;
if (resultSet_ != null) {
subBuilder = resultSet_.toBuilder();
}
resultSet_ = input.readMessage(com.yandex.ydb.ValueProtos.ResultSet.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resultSet_);
resultSet_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.yandex.ydb.YdbQueryStats.QueryStats.Builder subBuilder = null;
if (queryStats_ != null) {
subBuilder = queryStats_.toBuilder();
}
queryStats_ = input.readMessage(com.yandex.ydb.YdbQueryStats.QueryStats.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(queryStats_);
queryStats_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.class, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder.class);
}
public static final int RESULT_SET_INDEX_FIELD_NUMBER = 1;
private int resultSetIndex_;
/**
*
* Index of current result
*
*
* uint32 result_set_index = 1;
* @return The resultSetIndex.
*/
@java.lang.Override
public int getResultSetIndex() {
return resultSetIndex_;
}
public static final int RESULT_SET_FIELD_NUMBER = 2;
private com.yandex.ydb.ValueProtos.ResultSet resultSet_;
/**
*
* Result set (or a result set part) for one data or scan query
*
*
* .Ydb.ResultSet result_set = 2;
* @return Whether the resultSet field is set.
*/
@java.lang.Override
public boolean hasResultSet() {
return resultSet_ != null;
}
/**
*
* Result set (or a result set part) for one data or scan query
*
* Result set (or a result set part) for one data or scan query
*
*
* .Ydb.ResultSet result_set = 2;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.ResultSetOrBuilder getResultSetOrBuilder() {
return getResultSet();
}
public static final int QUERY_STATS_FIELD_NUMBER = 3;
private com.yandex.ydb.YdbQueryStats.QueryStats queryStats_;
/**
* .Ydb.TableStats.QueryStats query_stats = 3;
* @return Whether the queryStats field is set.
*/
@java.lang.Override
public boolean hasQueryStats() {
return queryStats_ != null;
}
/**
* .Ydb.TableStats.QueryStats query_stats = 3;
* @return The queryStats.
*/
@java.lang.Override
public com.yandex.ydb.YdbQueryStats.QueryStats getQueryStats() {
return queryStats_ == null ? com.yandex.ydb.YdbQueryStats.QueryStats.getDefaultInstance() : queryStats_;
}
/**
* .Ydb.TableStats.QueryStats query_stats = 3;
*/
@java.lang.Override
public com.yandex.ydb.YdbQueryStats.QueryStatsOrBuilder getQueryStatsOrBuilder() {
return getQueryStats();
}
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 (resultSetIndex_ != 0) {
output.writeUInt32(1, resultSetIndex_);
}
if (resultSet_ != null) {
output.writeMessage(2, getResultSet());
}
if (queryStats_ != null) {
output.writeMessage(3, getQueryStats());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (resultSetIndex_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, resultSetIndex_);
}
if (resultSet_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResultSet());
}
if (queryStats_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getQueryStats());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult)) {
return super.equals(obj);
}
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult other = (com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult) obj;
if (getResultSetIndex()
!= other.getResultSetIndex()) return false;
if (hasResultSet() != other.hasResultSet()) return false;
if (hasResultSet()) {
if (!getResultSet()
.equals(other.getResultSet())) return false;
}
if (hasQueryStats() != other.hasQueryStats()) return false;
if (hasQueryStats()) {
if (!getQueryStats()
.equals(other.getQueryStats())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RESULT_SET_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getResultSetIndex();
if (hasResultSet()) {
hash = (37 * hash) + RESULT_SET_FIELD_NUMBER;
hash = (53 * hash) + getResultSet().hashCode();
}
if (hasQueryStats()) {
hash = (37 * hash) + QUERY_STATS_FIELD_NUMBER;
hash = (53 * hash) + getQueryStats().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult 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;
}
/**
*
* Contains result set (or a result set part) for one data or scan query in the script.
* One result set can be split into several responses with same result_index.
* Only the final response can contain query stats.
*
*
* Protobuf type {@code Ydb.Scripting.ExecuteYqlPartialResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Scripting.ExecuteYqlPartialResult)
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.class, com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder.class);
}
// Construct using com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
resultSetIndex_ = 0;
if (resultSetBuilder_ == null) {
resultSet_ = null;
} else {
resultSet_ = null;
resultSetBuilder_ = null;
}
if (queryStatsBuilder_ == null) {
queryStats_ = null;
} else {
queryStats_ = null;
queryStatsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResult_descriptor;
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult getDefaultInstanceForType() {
return com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult build() {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult buildPartial() {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult result = new com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult(this);
result.resultSetIndex_ = resultSetIndex_;
if (resultSetBuilder_ == null) {
result.resultSet_ = resultSet_;
} else {
result.resultSet_ = resultSetBuilder_.build();
}
if (queryStatsBuilder_ == null) {
result.queryStats_ = queryStats_;
} else {
result.queryStats_ = queryStatsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult) {
return mergeFrom((com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult other) {
if (other == com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult.getDefaultInstance()) return this;
if (other.getResultSetIndex() != 0) {
setResultSetIndex(other.getResultSetIndex());
}
if (other.hasResultSet()) {
mergeResultSet(other.getResultSet());
}
if (other.hasQueryStats()) {
mergeQueryStats(other.getQueryStats());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.scripting.ScriptingProtos.ExecuteYqlPartialResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int resultSetIndex_ ;
/**
*
* Index of current result
*
*
* uint32 result_set_index = 1;
* @return The resultSetIndex.
*/
@java.lang.Override
public int getResultSetIndex() {
return resultSetIndex_;
}
/**
*
* Index of current result
*
*
* uint32 result_set_index = 1;
* @param value The resultSetIndex to set.
* @return This builder for chaining.
*/
public Builder setResultSetIndex(int value) {
resultSetIndex_ = value;
onChanged();
return this;
}
/**
*