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

tech.ydb.proto.scripting.ScriptingProtos Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: protos/ydb_scripting.proto

package tech.ydb.proto.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.
     */
    tech.ydb.proto.OperationProtos.OperationParams getOperationParams();
    /**
     * .Ydb.Operations.OperationParams operation_params = 1;
     */
    tech.ydb.proto.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;
     */
    /* nullable */
tech.ydb.proto.ValueProtos.TypedValue getParametersOrDefault(
        java.lang.String key,
        /* nullable */
tech.ydb.proto.ValueProtos.TypedValue defaultValue);
    /**
     * map<string, .Ydb.TypedValue> parameters = 3;
     */
    tech.ydb.proto.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.
     */
    tech.ydb.proto.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();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest.class, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest.Builder.class);
    }

    private int bitField0_;
    public static final int OPERATION_PARAMS_FIELD_NUMBER = 1;
    private tech.ydb.proto.OperationProtos.OperationParams operationParams_;
    /**
     * .Ydb.Operations.OperationParams operation_params = 1;
     * @return Whether the operationParams field is set.
     */
    @java.lang.Override
    public boolean hasOperationParams() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .Ydb.Operations.OperationParams operation_params = 1;
     * @return The operationParams.
     */
    @java.lang.Override
    public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() {
      return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
    }
    /**
     * .Ydb.Operations.OperationParams operation_params = 1;
     */
    @java.lang.Override
    public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
      return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
    }

    public static final int SCRIPT_FIELD_NUMBER = 2;
    @SuppressWarnings("serial")
    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, tech.ydb.proto.ValueProtos.TypedValue> defaultEntry =
              com.google.protobuf.MapEntry
              .newDefaultInstance(
                  tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlRequest_ParametersEntry_descriptor, 
                  com.google.protobuf.WireFormat.FieldType.STRING,
                  "",
                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
                  tech.ydb.proto.ValueProtos.TypedValue.getDefaultInstance());
    }
    @SuppressWarnings("serial")
    private com.google.protobuf.MapField<
        java.lang.String, tech.ydb.proto.ValueProtos.TypedValue> parameters_;
    private com.google.protobuf.MapField
    internalGetParameters() {
      if (parameters_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            ParametersDefaultEntryHolder.defaultEntry);
      }
      return parameters_;
    }
    public int getParametersCount() {
      return internalGetParameters().getMap().size();
    }
    /**
     * map<string, .Ydb.TypedValue> parameters = 3;
     */
    @java.lang.Override
    public boolean containsParameters(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      return internalGetParameters().getMap().containsKey(key);
    }
    /**
     * Use {@link #getParametersMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map getParameters() {
      return getParametersMap();
    }
    /**
     * map<string, .Ydb.TypedValue> parameters = 3;
     */
    @java.lang.Override
    public java.util.Map getParametersMap() {
      return internalGetParameters().getMap();
    }
    /**
     * map<string, .Ydb.TypedValue> parameters = 3;
     */
    @java.lang.Override
    public /* nullable */
tech.ydb.proto.ValueProtos.TypedValue getParametersOrDefault(
        java.lang.String key,
        /* nullable */
tech.ydb.proto.ValueProtos.TypedValue defaultValue) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetParameters().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * map<string, .Ydb.TypedValue> parameters = 3;
     */
    @java.lang.Override
    public tech.ydb.proto.ValueProtos.TypedValue getParametersOrThrow(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetParameters().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public static final int COLLECT_STATS_FIELD_NUMBER = 4;
    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;
     * @return The collectStats.
     */
    @java.lang.Override public tech.ydb.proto.table.YdbTable.QueryStatsCollection.Mode getCollectStats() {
      tech.ydb.proto.table.YdbTable.QueryStatsCollection.Mode result = tech.ydb.proto.table.YdbTable.QueryStatsCollection.Mode.forNumber(collectStats_);
      return result == null ? tech.ydb.proto.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 (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(1, getOperationParams());
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(script_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, script_);
      }
      com.google.protobuf.GeneratedMessageV3
        .serializeStringMapTo(
          output,
          internalGetParameters(),
          ParametersDefaultEntryHolder.defaultEntry,
          3);
      if (collectStats_ != tech.ydb.proto.table.YdbTable.QueryStatsCollection.Mode.STATS_COLLECTION_UNSPECIFIED.getNumber()) {
        output.writeEnum(4, collectStats_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getOperationParams());
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(script_)) {
        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_ != tech.ydb.proto.table.YdbTable.QueryStatsCollection.Mode.STATS_COLLECTION_UNSPECIFIED.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(4, collectStats_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest)) {
        return super.equals(obj);
      }
      tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest other = (tech.ydb.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasOperationParams()) {
        hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
        hash = (53 * hash) + getOperationParams().hashCode();
      }
      hash = (37 * hash) + 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) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tech.ydb.proto.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(tech.ydb.proto.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)
        tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest.class, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest.Builder.class);
      }

      // Construct using tech.ydb.proto.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) {
          getOperationParamsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        operationParams_ = null;
        if (operationParamsBuilder_ != null) {
          operationParamsBuilder_.dispose();
          operationParamsBuilder_ = null;
        }
        script_ = "";
        internalGetMutableParameters().clear();
        collectStats_ = 0;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlRequest_descriptor;
      }

      @java.lang.Override
      public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest getDefaultInstanceForType() {
        return tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest.getDefaultInstance();
      }

      @java.lang.Override
      public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest build() {
        tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest buildPartial() {
        tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest result = new tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.operationParams_ = operationParamsBuilder_ == null
              ? operationParams_
              : operationParamsBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.script_ = script_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.parameters_ = internalGetParameters();
          result.parameters_.makeImmutable();
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.collectStats_ = collectStats_;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest) {
          return mergeFrom((tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest other) {
        if (other == tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest.getDefaultInstance()) return this;
        if (other.hasOperationParams()) {
          mergeOperationParams(other.getOperationParams());
        }
        if (!other.getScript().isEmpty()) {
          script_ = other.script_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        internalGetMutableParameters().mergeFrom(
            other.internalGetParameters());
        bitField0_ |= 0x00000004;
        if (other.collectStats_ != 0) {
          setCollectStatsValue(other.getCollectStatsValue());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                input.readMessage(
                    getOperationParamsFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                script_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              case 26: {
                com.google.protobuf.MapEntry
                parameters__ = input.readMessage(
                    ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                internalGetMutableParameters().getMutableMap().put(
                    parameters__.getKey(), parameters__.getValue());
                bitField0_ |= 0x00000004;
                break;
              } // case 26
              case 32: {
                collectStats_ = input.readEnum();
                bitField0_ |= 0x00000008;
                break;
              } // case 32
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private tech.ydb.proto.OperationProtos.OperationParams operationParams_;
      private com.google.protobuf.SingleFieldBuilderV3<
          tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
      /**
       * .Ydb.Operations.OperationParams operation_params = 1;
       * @return Whether the operationParams field is set.
       */
      public boolean hasOperationParams() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * .Ydb.Operations.OperationParams operation_params = 1;
       * @return The operationParams.
       */
      public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() {
        if (operationParamsBuilder_ == null) {
          return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
        } else {
          return operationParamsBuilder_.getMessage();
        }
      }
      /**
       * .Ydb.Operations.OperationParams operation_params = 1;
       */
      public Builder setOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) {
        if (operationParamsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          operationParams_ = value;
        } else {
          operationParamsBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * .Ydb.Operations.OperationParams operation_params = 1;
       */
      public Builder setOperationParams(
          tech.ydb.proto.OperationProtos.OperationParams.Builder builderForValue) {
        if (operationParamsBuilder_ == null) {
          operationParams_ = builderForValue.build();
        } else {
          operationParamsBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * .Ydb.Operations.OperationParams operation_params = 1;
       */
      public Builder mergeOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) {
        if (operationParamsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
            operationParams_ != null &&
            operationParams_ != tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance()) {
            getOperationParamsBuilder().mergeFrom(value);
          } else {
            operationParams_ = value;
          }
        } else {
          operationParamsBuilder_.mergeFrom(value);
        }
        if (operationParams_ != null) {
          bitField0_ |= 0x00000001;
          onChanged();
        }
        return this;
      }
      /**
       * .Ydb.Operations.OperationParams operation_params = 1;
       */
      public Builder clearOperationParams() {
        bitField0_ = (bitField0_ & ~0x00000001);
        operationParams_ = null;
        if (operationParamsBuilder_ != null) {
          operationParamsBuilder_.dispose();
          operationParamsBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * .Ydb.Operations.OperationParams operation_params = 1;
       */
      public tech.ydb.proto.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getOperationParamsFieldBuilder().getBuilder();
      }
      /**
       * .Ydb.Operations.OperationParams operation_params = 1;
       */
      public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
        if (operationParamsBuilder_ != null) {
          return operationParamsBuilder_.getMessageOrBuilder();
        } else {
          return operationParams_ == null ?
              tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
        }
      }
      /**
       * .Ydb.Operations.OperationParams operation_params = 1;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> 
          getOperationParamsFieldBuilder() {
        if (operationParamsBuilder_ == null) {
          operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>(
                  getOperationParams(),
                  getParentForChildren(),
                  isClean());
          operationParams_ = null;
        }
        return operationParamsBuilder_;
      }

      private 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;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * string script = 2;
       * @return This builder for chaining.
       */
      public Builder clearScript() {
        script_ = getDefaultInstance().getScript();
        bitField0_ = (bitField0_ & ~0x00000002);
        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;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      private com.google.protobuf.MapField<
          java.lang.String, tech.ydb.proto.ValueProtos.TypedValue> parameters_;
      private com.google.protobuf.MapField
          internalGetParameters() {
        if (parameters_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              ParametersDefaultEntryHolder.defaultEntry);
        }
        return parameters_;
      }
      private com.google.protobuf.MapField
          internalGetMutableParameters() {
        if (parameters_ == null) {
          parameters_ = com.google.protobuf.MapField.newMapField(
              ParametersDefaultEntryHolder.defaultEntry);
        }
        if (!parameters_.isMutable()) {
          parameters_ = parameters_.copy();
        }
        bitField0_ |= 0x00000004;
        onChanged();
        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 NullPointerException("map key"); }
        return internalGetParameters().getMap().containsKey(key);
      }
      /**
       * Use {@link #getParametersMap()} instead.
       */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map getParameters() {
        return getParametersMap();
      }
      /**
       * map<string, .Ydb.TypedValue> parameters = 3;
       */
      @java.lang.Override
      public java.util.Map getParametersMap() {
        return internalGetParameters().getMap();
      }
      /**
       * map<string, .Ydb.TypedValue> parameters = 3;
       */
      @java.lang.Override
      public /* nullable */
tech.ydb.proto.ValueProtos.TypedValue getParametersOrDefault(
          java.lang.String key,
          /* nullable */
tech.ydb.proto.ValueProtos.TypedValue defaultValue) {
        if (key == null) { throw new NullPointerException("map key"); }
        java.util.Map map =
            internalGetParameters().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       * map<string, .Ydb.TypedValue> parameters = 3;
       */
      @java.lang.Override
      public tech.ydb.proto.ValueProtos.TypedValue getParametersOrThrow(
          java.lang.String key) {
        if (key == null) { throw new NullPointerException("map key"); }
        java.util.Map map =
            internalGetParameters().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }
      public Builder clearParameters() {
        bitField0_ = (bitField0_ & ~0x00000004);
        internalGetMutableParameters().getMutableMap()
            .clear();
        return this;
      }
      /**
       * map<string, .Ydb.TypedValue> parameters = 3;
       */
      public Builder removeParameters(
          java.lang.String key) {
        if (key == null) { throw new NullPointerException("map key"); }
        internalGetMutableParameters().getMutableMap()
            .remove(key);
        return this;
      }
      /**
       * Use alternate mutation accessors instead.
       */
      @java.lang.Deprecated
      public java.util.Map
          getMutableParameters() {
        bitField0_ |= 0x00000004;
        return internalGetMutableParameters().getMutableMap();
      }
      /**
       * map<string, .Ydb.TypedValue> parameters = 3;
       */
      public Builder putParameters(
          java.lang.String key,
          tech.ydb.proto.ValueProtos.TypedValue value) {
        if (key == null) { throw new NullPointerException("map key"); }
        if (value == null) { throw new NullPointerException("map value"); }
        internalGetMutableParameters().getMutableMap()
            .put(key, value);
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * map<string, .Ydb.TypedValue> parameters = 3;
       */
      public Builder putAllParameters(
          java.util.Map values) {
        internalGetMutableParameters().getMutableMap()
            .putAll(values);
        bitField0_ |= 0x00000004;
        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;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       * .Ydb.Table.QueryStatsCollection.Mode collect_stats = 4;
       * @return The collectStats.
       */
      @java.lang.Override
      public tech.ydb.proto.table.YdbTable.QueryStatsCollection.Mode getCollectStats() {
        tech.ydb.proto.table.YdbTable.QueryStatsCollection.Mode result = tech.ydb.proto.table.YdbTable.QueryStatsCollection.Mode.forNumber(collectStats_);
        return result == null ? tech.ydb.proto.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(tech.ydb.proto.table.YdbTable.QueryStatsCollection.Mode value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000008;
        collectStats_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * .Ydb.Table.QueryStatsCollection.Mode collect_stats = 4;
       * @return This builder for chaining.
       */
      public Builder clearCollectStats() {
        bitField0_ = (bitField0_ & ~0x00000008);
        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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlRequest();
    }

    public static tech.ydb.proto.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 {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public tech.ydb.proto.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.
     */
    tech.ydb.proto.OperationProtos.Operation getOperation();
    /**
     * .Ydb.Operations.Operation operation = 1;
     */
    tech.ydb.proto.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();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse.class, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse.Builder.class);
    }

    private int bitField0_;
    public static final int OPERATION_FIELD_NUMBER = 1;
    private tech.ydb.proto.OperationProtos.Operation operation_;
    /**
     * .Ydb.Operations.Operation operation = 1;
     * @return Whether the operation field is set.
     */
    @java.lang.Override
    public boolean hasOperation() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .Ydb.Operations.Operation operation = 1;
     * @return The operation.
     */
    @java.lang.Override
    public tech.ydb.proto.OperationProtos.Operation getOperation() {
      return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
    }
    /**
     * .Ydb.Operations.Operation operation = 1;
     */
    @java.lang.Override
    public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
      return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(1, getOperation());
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getOperation());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse)) {
        return super.equals(obj);
      }
      tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse other = (tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse) obj;

      if (hasOperation() != other.hasOperation()) return false;
      if (hasOperation()) {
        if (!getOperation()
            .equals(other.getOperation())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasOperation()) {
        hash = (37 * hash) + OPERATION_FIELD_NUMBER;
        hash = (53 * hash) + getOperation().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tech.ydb.proto.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(tech.ydb.proto.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)
        tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse.class, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse.Builder.class);
      }

      // Construct using tech.ydb.proto.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) {
          getOperationFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        operation_ = null;
        if (operationBuilder_ != null) {
          operationBuilder_.dispose();
          operationBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResponse_descriptor;
      }

      @java.lang.Override
      public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse getDefaultInstanceForType() {
        return tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse.getDefaultInstance();
      }

      @java.lang.Override
      public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse build() {
        tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse buildPartial() {
        tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse result = new tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.operation_ = operationBuilder_ == null
              ? operation_
              : operationBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse) {
          return mergeFrom((tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse other) {
        if (other == tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse.getDefaultInstance()) return this;
        if (other.hasOperation()) {
          mergeOperation(other.getOperation());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                input.readMessage(
                    getOperationFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private tech.ydb.proto.OperationProtos.Operation operation_;
      private com.google.protobuf.SingleFieldBuilderV3<
          tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_;
      /**
       * .Ydb.Operations.Operation operation = 1;
       * @return Whether the operation field is set.
       */
      public boolean hasOperation() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * .Ydb.Operations.Operation operation = 1;
       * @return The operation.
       */
      public tech.ydb.proto.OperationProtos.Operation getOperation() {
        if (operationBuilder_ == null) {
          return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
        } else {
          return operationBuilder_.getMessage();
        }
      }
      /**
       * .Ydb.Operations.Operation operation = 1;
       */
      public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) {
        if (operationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          operation_ = value;
        } else {
          operationBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * .Ydb.Operations.Operation operation = 1;
       */
      public Builder setOperation(
          tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) {
        if (operationBuilder_ == null) {
          operation_ = builderForValue.build();
        } else {
          operationBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * .Ydb.Operations.Operation operation = 1;
       */
      public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) {
        if (operationBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0) &&
            operation_ != null &&
            operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) {
            getOperationBuilder().mergeFrom(value);
          } else {
            operation_ = value;
          }
        } else {
          operationBuilder_.mergeFrom(value);
        }
        if (operation_ != null) {
          bitField0_ |= 0x00000001;
          onChanged();
        }
        return this;
      }
      /**
       * .Ydb.Operations.Operation operation = 1;
       */
      public Builder clearOperation() {
        bitField0_ = (bitField0_ & ~0x00000001);
        operation_ = null;
        if (operationBuilder_ != null) {
          operationBuilder_.dispose();
          operationBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * .Ydb.Operations.Operation operation = 1;
       */
      public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getOperationFieldBuilder().getBuilder();
      }
      /**
       * .Ydb.Operations.Operation operation = 1;
       */
      public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
        if (operationBuilder_ != null) {
          return operationBuilder_.getMessageOrBuilder();
        } else {
          return operation_ == null ?
              tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
        }
      }
      /**
       * .Ydb.Operations.Operation operation = 1;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> 
          getOperationFieldBuilder() {
        if (operationBuilder_ == null) {
          operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResponse();
    }

    public static tech.ydb.proto.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 {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public tech.ydb.proto.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;
     */
    tech.ydb.proto.ValueProtos.ResultSet getResultSets(int index);
    /**
     * repeated .Ydb.ResultSet result_sets = 1;
     */
    int getResultSetsCount();
    /**
     * repeated .Ydb.ResultSet result_sets = 1;
     */
    java.util.List 
        getResultSetsOrBuilderList();
    /**
     * repeated .Ydb.ResultSet result_sets = 1;
     */
    tech.ydb.proto.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.
     */
    tech.ydb.proto.YdbQueryStats.QueryStats getQueryStats();
    /**
     * .Ydb.TableStats.QueryStats query_stats = 2;
     */
    tech.ydb.proto.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();
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResult_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResult_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult.class, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult.Builder.class);
    }

    private int bitField0_;
    public static final int RESULT_SETS_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    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 
        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 tech.ydb.proto.ValueProtos.ResultSet getResultSets(int index) {
      return resultSets_.get(index);
    }
    /**
     * repeated .Ydb.ResultSet result_sets = 1;
     */
    @java.lang.Override
    public tech.ydb.proto.ValueProtos.ResultSetOrBuilder getResultSetsOrBuilder(
        int index) {
      return resultSets_.get(index);
    }

    public static final int QUERY_STATS_FIELD_NUMBER = 2;
    private tech.ydb.proto.YdbQueryStats.QueryStats queryStats_;
    /**
     * .Ydb.TableStats.QueryStats query_stats = 2;
     * @return Whether the queryStats field is set.
     */
    @java.lang.Override
    public boolean hasQueryStats() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .Ydb.TableStats.QueryStats query_stats = 2;
     * @return The queryStats.
     */
    @java.lang.Override
    public tech.ydb.proto.YdbQueryStats.QueryStats getQueryStats() {
      return queryStats_ == null ? tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : queryStats_;
    }
    /**
     * .Ydb.TableStats.QueryStats query_stats = 2;
     */
    @java.lang.Override
    public tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder getQueryStatsOrBuilder() {
      return queryStats_ == null ? tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : queryStats_;
    }

    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 (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(2, getQueryStats());
      }
      getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getQueryStats());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult)) {
        return super.equals(obj);
      }
      tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult other = (tech.ydb.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (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) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static tech.ydb.proto.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(tech.ydb.proto.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)
        tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResultOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResult_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResult_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult.class, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult.Builder.class);
      }

      // Construct using tech.ydb.proto.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();
          getQueryStatsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        if (resultSetsBuilder_ == null) {
          resultSets_ = java.util.Collections.emptyList();
        } else {
          resultSets_ = null;
          resultSetsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        queryStats_ = null;
        if (queryStatsBuilder_ != null) {
          queryStatsBuilder_.dispose();
          queryStatsBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlResult_descriptor;
      }

      @java.lang.Override
      public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult getDefaultInstanceForType() {
        return tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult.getDefaultInstance();
      }

      @java.lang.Override
      public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult build() {
        tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult buildPartial() {
        tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult result = new tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult result) {
        if (resultSetsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            resultSets_ = java.util.Collections.unmodifiableList(resultSets_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.resultSets_ = resultSets_;
        } else {
          result.resultSets_ = resultSetsBuilder_.build();
        }
      }

      private void buildPartial0(tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.queryStats_ = queryStatsBuilder_ == null
              ? queryStats_
              : queryStatsBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult) {
          return mergeFrom((tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult other) {
        if (other == tech.ydb.proto.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.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                tech.ydb.proto.ValueProtos.ResultSet m =
                    input.readMessage(
                        tech.ydb.proto.ValueProtos.ResultSet.parser(),
                        extensionRegistry);
                if (resultSetsBuilder_ == null) {
                  ensureResultSetsIsMutable();
                  resultSets_.add(m);
                } else {
                  resultSetsBuilder_.addMessage(m);
                }
                break;
              } // case 10
              case 18: {
                input.readMessage(
                    getQueryStatsFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private java.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<
          tech.ydb.proto.ValueProtos.ResultSet, tech.ydb.proto.ValueProtos.ResultSet.Builder, tech.ydb.proto.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 tech.ydb.proto.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, tech.ydb.proto.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, tech.ydb.proto.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(tech.ydb.proto.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, tech.ydb.proto.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(
          tech.ydb.proto.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, tech.ydb.proto.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 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 tech.ydb.proto.ValueProtos.ResultSet.Builder getResultSetsBuilder(
          int index) {
        return getResultSetsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .Ydb.ResultSet result_sets = 1;
       */
      public tech.ydb.proto.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 
           getResultSetsOrBuilderList() {
        if (resultSetsBuilder_ != null) {
          return resultSetsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(resultSets_);
        }
      }
      /**
       * repeated .Ydb.ResultSet result_sets = 1;
       */
      public tech.ydb.proto.ValueProtos.ResultSet.Builder addResultSetsBuilder() {
        return getResultSetsFieldBuilder().addBuilder(
            tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance());
      }
      /**
       * repeated .Ydb.ResultSet result_sets = 1;
       */
      public tech.ydb.proto.ValueProtos.ResultSet.Builder addResultSetsBuilder(
          int index) {
        return getResultSetsFieldBuilder().addBuilder(
            index, tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance());
      }
      /**
       * repeated .Ydb.ResultSet result_sets = 1;
       */
      public java.util.List 
           getResultSetsBuilderList() {
        return getResultSetsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          tech.ydb.proto.ValueProtos.ResultSet, tech.ydb.proto.ValueProtos.ResultSet.Builder, tech.ydb.proto.ValueProtos.ResultSetOrBuilder> 
          getResultSetsFieldBuilder() {
        if (resultSetsBuilder_ == null) {
          resultSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              tech.ydb.proto.ValueProtos.ResultSet, tech.ydb.proto.ValueProtos.ResultSet.Builder, tech.ydb.proto.ValueProtos.ResultSetOrBuilder>(
                  resultSets_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          resultSets_ = null;
        }
        return resultSetsBuilder_;
      }

      private tech.ydb.proto.YdbQueryStats.QueryStats queryStats_;
      private com.google.protobuf.SingleFieldBuilderV3<
          tech.ydb.proto.YdbQueryStats.QueryStats, tech.ydb.proto.YdbQueryStats.QueryStats.Builder, tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder> queryStatsBuilder_;
      /**
       * .Ydb.TableStats.QueryStats query_stats = 2;
       * @return Whether the queryStats field is set.
       */
      public boolean hasQueryStats() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * .Ydb.TableStats.QueryStats query_stats = 2;
       * @return The queryStats.
       */
      public tech.ydb.proto.YdbQueryStats.QueryStats getQueryStats() {
        if (queryStatsBuilder_ == null) {
          return queryStats_ == null ? tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : queryStats_;
        } else {
          return queryStatsBuilder_.getMessage();
        }
      }
      /**
       * .Ydb.TableStats.QueryStats query_stats = 2;
       */
      public Builder setQueryStats(tech.ydb.proto.YdbQueryStats.QueryStats value) {
        if (queryStatsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          queryStats_ = value;
        } else {
          queryStatsBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * .Ydb.TableStats.QueryStats query_stats = 2;
       */
      public Builder setQueryStats(
          tech.ydb.proto.YdbQueryStats.QueryStats.Builder builderForValue) {
        if (queryStatsBuilder_ == null) {
          queryStats_ = builderForValue.build();
        } else {
          queryStatsBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * .Ydb.TableStats.QueryStats query_stats = 2;
       */
      public Builder mergeQueryStats(tech.ydb.proto.YdbQueryStats.QueryStats value) {
        if (queryStatsBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0) &&
            queryStats_ != null &&
            queryStats_ != tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance()) {
            getQueryStatsBuilder().mergeFrom(value);
          } else {
            queryStats_ = value;
          }
        } else {
          queryStatsBuilder_.mergeFrom(value);
        }
        if (queryStats_ != null) {
          bitField0_ |= 0x00000002;
          onChanged();
        }
        return this;
      }
      /**
       * .Ydb.TableStats.QueryStats query_stats = 2;
       */
      public Builder clearQueryStats() {
        bitField0_ = (bitField0_ & ~0x00000002);
        queryStats_ = null;
        if (queryStatsBuilder_ != null) {
          queryStatsBuilder_.dispose();
          queryStatsBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       * .Ydb.TableStats.QueryStats query_stats = 2;
       */
      public tech.ydb.proto.YdbQueryStats.QueryStats.Builder getQueryStatsBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getQueryStatsFieldBuilder().getBuilder();
      }
      /**
       * .Ydb.TableStats.QueryStats query_stats = 2;
       */
      public tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder getQueryStatsOrBuilder() {
        if (queryStatsBuilder_ != null) {
          return queryStatsBuilder_.getMessageOrBuilder();
        } else {
          return queryStats_ == null ?
              tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : queryStats_;
        }
      }
      /**
       * .Ydb.TableStats.QueryStats query_stats = 2;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          tech.ydb.proto.YdbQueryStats.QueryStats, tech.ydb.proto.YdbQueryStats.QueryStats.Builder, tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder> 
          getQueryStatsFieldBuilder() {
        if (queryStatsBuilder_ == null) {
          queryStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              tech.ydb.proto.YdbQueryStats.QueryStats, tech.ydb.proto.YdbQueryStats.QueryStats.Builder, tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlResult();
    }

    public static tech.ydb.proto.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 {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public tech.ydb.proto.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.
     */
    tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus();

    /**
     * repeated .Ydb.Issue.IssueMessage issues = 2;
     */
    java.util.List 
        getIssuesList();
    /**
     * repeated .Ydb.Issue.IssueMessage issues = 2;
     */
    tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index);
    /**
     * repeated .Ydb.Issue.IssueMessage issues = 2;
     */
    int getIssuesCount();
    /**
     * repeated .Ydb.Issue.IssueMessage issues = 2;
     */
    java.util.List 
        getIssuesOrBuilderList();
    /**
     * repeated .Ydb.Issue.IssueMessage issues = 2;
     */
    tech.ydb.proto.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.
     */
    tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult getResult();
    /**
     * .Ydb.Scripting.ExecuteYqlPartialResult result = 3;
     */
    tech.ydb.proto.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse.class, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse.Builder.class); } private int bitField0_; public static final int STATUS_FIELD_NUMBER = 1; private int status_ = 0; /** * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } public static final int ISSUES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List issues_; /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public java.util.List getIssuesOrBuilderList() { return issues_; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public int getIssuesCount() { return issues_.size(); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) { return issues_.get(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ @java.lang.Override public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { return issues_.get(index); } public static final int RESULT_FIELD_NUMBER = 3; private tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult result_; /** * .Ydb.Scripting.ExecuteYqlPartialResult result = 3; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Scripting.ExecuteYqlPartialResult result = 3; * @return The result. */ @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult getResult() { return result_ == null ? tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.getDefaultInstance() : result_; } /** * .Ydb.Scripting.ExecuteYqlPartialResult result = 3; */ @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResultOrBuilder getResultOrBuilder() { return result_ == null ? tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.getDefaultInstance() : 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 (status_ != tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, status_); } for (int i = 0; i < issues_.size(); i++) { output.writeMessage(2, issues_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getResult()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.STATUS_CODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } for (int i = 0; i < issues_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, issues_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getResult()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse)) { return super.equals(obj); } tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse other = (tech.ydb.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getIssuesCount() > 0) { hash = (37 * hash) + ISSUES_FIELD_NUMBER; hash = (53 * hash) + getIssuesList().hashCode(); } if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + getResult().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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(tech.ydb.proto.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) tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse.class, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse.Builder.class); } // Construct using tech.ydb.proto.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(); getResultFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; status_ = 0; if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); } else { issues_ = null; issuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResponse_descriptor; } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse getDefaultInstanceForType() { return tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse build() { tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse buildPartial() { tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse result = new tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse result) { if (issuesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { issues_ = java.util.Collections.unmodifiableList(issues_); bitField0_ = (bitField0_ & ~0x00000002); } result.issues_ = issues_; } else { result.issues_ = issuesBuilder_.build(); } } private void buildPartial0(tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.status_ = status_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse) { return mergeFrom((tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse other) { if (other == tech.ydb.proto.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_ & ~0x00000002); } else { ensureIssuesIsMutable(); issues_.addAll(other.issues_); } onChanged(); } } else { if (!other.issues_.isEmpty()) { if (issuesBuilder_.isEmpty()) { issuesBuilder_.dispose(); issuesBuilder_ = null; issues_ = other.issues_; bitField0_ = (bitField0_ & ~0x00000002); issuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIssuesFieldBuilder() : null; } else { issuesBuilder_.addAllMessages(other.issues_); } } } if (other.hasResult()) { mergeResult(other.getResult()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { status_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { tech.ydb.proto.YdbIssueMessage.IssueMessage m = input.readMessage( tech.ydb.proto.YdbIssueMessage.IssueMessage.parser(), extensionRegistry); if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(m); } else { issuesBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int status_ = 0; /** * .Ydb.StatusIds.StatusCode status = 1; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .Ydb.StatusIds.StatusCode status = 1; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return The status. */ @java.lang.Override public tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode getStatus() { tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode result = tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.forNumber(status_); return result == null ? tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode.UNRECOGNIZED : result; } /** * .Ydb.StatusIds.StatusCode status = 1; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(tech.ydb.proto.StatusCodesProtos.StatusIds.StatusCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.StatusIds.StatusCode status = 1; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = 0; onChanged(); return this; } private java.util.List issues_ = java.util.Collections.emptyList(); private void ensureIssuesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { issues_ = new java.util.ArrayList(issues_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder> issuesBuilder_; /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesList() { if (issuesBuilder_ == null) { return java.util.Collections.unmodifiableList(issues_); } else { return issuesBuilder_.getMessageList(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public int getIssuesCount() { if (issuesBuilder_ == null) { return issues_.size(); } else { return issuesBuilder_.getCount(); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage getIssues(int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessage(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.set(index, value); onChanged(); } else { issuesBuilder_.setMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder setIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.set(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues(tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(value); onChanged(); } else { issuesBuilder_.addMessage(value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage value) { if (issuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIssuesIsMutable(); issues_.add(index, value); onChanged(); } else { issuesBuilder_.addMessage(index, value); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addIssues( int index, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder builderForValue) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.add(index, builderForValue.build()); onChanged(); } else { issuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder addAllIssues( java.lang.Iterable values) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, issues_); onChanged(); } else { issuesBuilder_.addAllMessages(values); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder clearIssues() { if (issuesBuilder_ == null) { issues_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { issuesBuilder_.clear(); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public Builder removeIssues(int index) { if (issuesBuilder_ == null) { ensureIssuesIsMutable(); issues_.remove(index); onChanged(); } else { issuesBuilder_.remove(index); } return this; } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder getIssuesBuilder( int index) { return getIssuesFieldBuilder().getBuilder(index); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder getIssuesOrBuilder( int index) { if (issuesBuilder_ == null) { return issues_.get(index); } else { return issuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesOrBuilderList() { if (issuesBuilder_ != null) { return issuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(issues_); } } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder() { return getIssuesFieldBuilder().addBuilder( tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder addIssuesBuilder( int index) { return getIssuesFieldBuilder().addBuilder( index, tech.ydb.proto.YdbIssueMessage.IssueMessage.getDefaultInstance()); } /** * repeated .Ydb.Issue.IssueMessage issues = 2; */ public java.util.List getIssuesBuilderList() { return getIssuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder> getIssuesFieldBuilder() { if (issuesBuilder_ == null) { issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ydb.proto.YdbIssueMessage.IssueMessage, tech.ydb.proto.YdbIssueMessage.IssueMessage.Builder, tech.ydb.proto.YdbIssueMessage.IssueMessageOrBuilder>( issues_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); issues_ = null; } return issuesBuilder_; } private tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult result_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResultOrBuilder> resultBuilder_; /** * .Ydb.Scripting.ExecuteYqlPartialResult result = 3; * @return Whether the result field is set. */ public boolean hasResult() { return ((bitField0_ & 0x00000004) != 0); } /** * .Ydb.Scripting.ExecuteYqlPartialResult result = 3; * @return The result. */ public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult getResult() { if (resultBuilder_ == null) { return result_ == null ? tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.getDefaultInstance() : result_; } else { return resultBuilder_.getMessage(); } } /** * .Ydb.Scripting.ExecuteYqlPartialResult result = 3; */ public Builder setResult(tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; } else { resultBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .Ydb.Scripting.ExecuteYqlPartialResult result = 3; */ public Builder setResult( tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); } else { resultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .Ydb.Scripting.ExecuteYqlPartialResult result = 3; */ public Builder mergeResult(tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult value) { if (resultBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && result_ != null && result_ != tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.getDefaultInstance()) { getResultBuilder().mergeFrom(value); } else { result_ = value; } } else { resultBuilder_.mergeFrom(value); } if (result_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .Ydb.Scripting.ExecuteYqlPartialResult result = 3; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000004); result_ = null; if (resultBuilder_ != null) { resultBuilder_.dispose(); resultBuilder_ = null; } onChanged(); return this; } /** * .Ydb.Scripting.ExecuteYqlPartialResult result = 3; */ public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder getResultBuilder() { bitField0_ |= 0x00000004; onChanged(); return getResultFieldBuilder().getBuilder(); } /** * .Ydb.Scripting.ExecuteYqlPartialResult result = 3; */ public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResultOrBuilder getResultOrBuilder() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilder(); } else { return result_ == null ? tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.getDefaultInstance() : result_; } } /** * .Ydb.Scripting.ExecuteYqlPartialResult result = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder, tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResponse(); } public static tech.ydb.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.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
     * 
* * .Ydb.ResultSet result_set = 2; * @return The resultSet. */ tech.ydb.proto.ValueProtos.ResultSet getResultSet(); /** *
     * Result set (or a result set part) for one data or scan query
     * 
* * .Ydb.ResultSet result_set = 2; */ tech.ydb.proto.ValueProtos.ResultSetOrBuilder getResultSetOrBuilder(); /** * .Ydb.TableStats.QueryStats query_stats = 3; * @return Whether the queryStats field is set. */ boolean hasQueryStats(); /** * .Ydb.TableStats.QueryStats query_stats = 3; * @return The queryStats. */ tech.ydb.proto.YdbQueryStats.QueryStats getQueryStats(); /** * .Ydb.TableStats.QueryStats query_stats = 3; */ tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder getQueryStatsOrBuilder(); } /** *
   * 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.class, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder.class); } private int bitField0_; public static final int RESULT_SET_INDEX_FIELD_NUMBER = 1; private int resultSetIndex_ = 0; /** *
     * 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 tech.ydb.proto.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 ((bitField0_ & 0x00000001) != 0); } /** *
     * Result set (or a result set part) for one data or scan query
     * 
* * .Ydb.ResultSet result_set = 2; * @return The resultSet. */ @java.lang.Override public tech.ydb.proto.ValueProtos.ResultSet getResultSet() { return resultSet_ == null ? tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance() : resultSet_; } /** *
     * Result set (or a result set part) for one data or scan query
     * 
* * .Ydb.ResultSet result_set = 2; */ @java.lang.Override public tech.ydb.proto.ValueProtos.ResultSetOrBuilder getResultSetOrBuilder() { return resultSet_ == null ? tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance() : resultSet_; } public static final int QUERY_STATS_FIELD_NUMBER = 3; private tech.ydb.proto.YdbQueryStats.QueryStats queryStats_; /** * .Ydb.TableStats.QueryStats query_stats = 3; * @return Whether the queryStats field is set. */ @java.lang.Override public boolean hasQueryStats() { return ((bitField0_ & 0x00000002) != 0); } /** * .Ydb.TableStats.QueryStats query_stats = 3; * @return The queryStats. */ @java.lang.Override public tech.ydb.proto.YdbQueryStats.QueryStats getQueryStats() { return queryStats_ == null ? tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : queryStats_; } /** * .Ydb.TableStats.QueryStats query_stats = 3; */ @java.lang.Override public tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder getQueryStatsOrBuilder() { return queryStats_ == null ? tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : queryStats_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getResultSet()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getQueryStats()); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getResultSet()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getQueryStats()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult)) { return super.equals(obj); } tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult other = (tech.ydb.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.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 tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.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(tech.ydb.proto.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) tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.class, tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.Builder.class); } // Construct using tech.ydb.proto.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) { getResultSetFieldBuilder(); getQueryStatsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; resultSetIndex_ = 0; resultSet_ = null; if (resultSetBuilder_ != null) { resultSetBuilder_.dispose(); resultSetBuilder_ = null; } queryStats_ = null; if (queryStatsBuilder_ != null) { queryStatsBuilder_.dispose(); queryStatsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExecuteYqlPartialResult_descriptor; } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult getDefaultInstanceForType() { return tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult build() { tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult buildPartial() { tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult result = new tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.resultSetIndex_ = resultSetIndex_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.resultSet_ = resultSetBuilder_ == null ? resultSet_ : resultSetBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.queryStats_ = queryStatsBuilder_ == null ? queryStats_ : queryStatsBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult) { return mergeFrom((tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult other) { if (other == tech.ydb.proto.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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { resultSetIndex_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getResultSetFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getQueryStatsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int 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; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Index of current result
       * 
* * uint32 result_set_index = 1; * @return This builder for chaining. */ public Builder clearResultSetIndex() { bitField0_ = (bitField0_ & ~0x00000001); resultSetIndex_ = 0; onChanged(); return this; } private tech.ydb.proto.ValueProtos.ResultSet resultSet_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.ValueProtos.ResultSet, tech.ydb.proto.ValueProtos.ResultSet.Builder, tech.ydb.proto.ValueProtos.ResultSetOrBuilder> resultSetBuilder_; /** *
       * Result set (or a result set part) for one data or scan query
       * 
* * .Ydb.ResultSet result_set = 2; * @return Whether the resultSet field is set. */ public boolean hasResultSet() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Result set (or a result set part) for one data or scan query
       * 
* * .Ydb.ResultSet result_set = 2; * @return The resultSet. */ public tech.ydb.proto.ValueProtos.ResultSet getResultSet() { if (resultSetBuilder_ == null) { return resultSet_ == null ? tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance() : resultSet_; } else { return resultSetBuilder_.getMessage(); } } /** *
       * Result set (or a result set part) for one data or scan query
       * 
* * .Ydb.ResultSet result_set = 2; */ public Builder setResultSet(tech.ydb.proto.ValueProtos.ResultSet value) { if (resultSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resultSet_ = value; } else { resultSetBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Result set (or a result set part) for one data or scan query
       * 
* * .Ydb.ResultSet result_set = 2; */ public Builder setResultSet( tech.ydb.proto.ValueProtos.ResultSet.Builder builderForValue) { if (resultSetBuilder_ == null) { resultSet_ = builderForValue.build(); } else { resultSetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Result set (or a result set part) for one data or scan query
       * 
* * .Ydb.ResultSet result_set = 2; */ public Builder mergeResultSet(tech.ydb.proto.ValueProtos.ResultSet value) { if (resultSetBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && resultSet_ != null && resultSet_ != tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance()) { getResultSetBuilder().mergeFrom(value); } else { resultSet_ = value; } } else { resultSetBuilder_.mergeFrom(value); } if (resultSet_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * Result set (or a result set part) for one data or scan query
       * 
* * .Ydb.ResultSet result_set = 2; */ public Builder clearResultSet() { bitField0_ = (bitField0_ & ~0x00000002); resultSet_ = null; if (resultSetBuilder_ != null) { resultSetBuilder_.dispose(); resultSetBuilder_ = null; } onChanged(); return this; } /** *
       * Result set (or a result set part) for one data or scan query
       * 
* * .Ydb.ResultSet result_set = 2; */ public tech.ydb.proto.ValueProtos.ResultSet.Builder getResultSetBuilder() { bitField0_ |= 0x00000002; onChanged(); return getResultSetFieldBuilder().getBuilder(); } /** *
       * Result set (or a result set part) for one data or scan query
       * 
* * .Ydb.ResultSet result_set = 2; */ public tech.ydb.proto.ValueProtos.ResultSetOrBuilder getResultSetOrBuilder() { if (resultSetBuilder_ != null) { return resultSetBuilder_.getMessageOrBuilder(); } else { return resultSet_ == null ? tech.ydb.proto.ValueProtos.ResultSet.getDefaultInstance() : resultSet_; } } /** *
       * Result set (or a result set part) for one data or scan query
       * 
* * .Ydb.ResultSet result_set = 2; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.ValueProtos.ResultSet, tech.ydb.proto.ValueProtos.ResultSet.Builder, tech.ydb.proto.ValueProtos.ResultSetOrBuilder> getResultSetFieldBuilder() { if (resultSetBuilder_ == null) { resultSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.ValueProtos.ResultSet, tech.ydb.proto.ValueProtos.ResultSet.Builder, tech.ydb.proto.ValueProtos.ResultSetOrBuilder>( getResultSet(), getParentForChildren(), isClean()); resultSet_ = null; } return resultSetBuilder_; } private tech.ydb.proto.YdbQueryStats.QueryStats queryStats_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.YdbQueryStats.QueryStats, tech.ydb.proto.YdbQueryStats.QueryStats.Builder, tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder> queryStatsBuilder_; /** * .Ydb.TableStats.QueryStats query_stats = 3; * @return Whether the queryStats field is set. */ public boolean hasQueryStats() { return ((bitField0_ & 0x00000004) != 0); } /** * .Ydb.TableStats.QueryStats query_stats = 3; * @return The queryStats. */ public tech.ydb.proto.YdbQueryStats.QueryStats getQueryStats() { if (queryStatsBuilder_ == null) { return queryStats_ == null ? tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : queryStats_; } else { return queryStatsBuilder_.getMessage(); } } /** * .Ydb.TableStats.QueryStats query_stats = 3; */ public Builder setQueryStats(tech.ydb.proto.YdbQueryStats.QueryStats value) { if (queryStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } queryStats_ = value; } else { queryStatsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .Ydb.TableStats.QueryStats query_stats = 3; */ public Builder setQueryStats( tech.ydb.proto.YdbQueryStats.QueryStats.Builder builderForValue) { if (queryStatsBuilder_ == null) { queryStats_ = builderForValue.build(); } else { queryStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .Ydb.TableStats.QueryStats query_stats = 3; */ public Builder mergeQueryStats(tech.ydb.proto.YdbQueryStats.QueryStats value) { if (queryStatsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && queryStats_ != null && queryStats_ != tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance()) { getQueryStatsBuilder().mergeFrom(value); } else { queryStats_ = value; } } else { queryStatsBuilder_.mergeFrom(value); } if (queryStats_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .Ydb.TableStats.QueryStats query_stats = 3; */ public Builder clearQueryStats() { bitField0_ = (bitField0_ & ~0x00000004); queryStats_ = null; if (queryStatsBuilder_ != null) { queryStatsBuilder_.dispose(); queryStatsBuilder_ = null; } onChanged(); return this; } /** * .Ydb.TableStats.QueryStats query_stats = 3; */ public tech.ydb.proto.YdbQueryStats.QueryStats.Builder getQueryStatsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getQueryStatsFieldBuilder().getBuilder(); } /** * .Ydb.TableStats.QueryStats query_stats = 3; */ public tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder getQueryStatsOrBuilder() { if (queryStatsBuilder_ != null) { return queryStatsBuilder_.getMessageOrBuilder(); } else { return queryStats_ == null ? tech.ydb.proto.YdbQueryStats.QueryStats.getDefaultInstance() : queryStats_; } } /** * .Ydb.TableStats.QueryStats query_stats = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.YdbQueryStats.QueryStats, tech.ydb.proto.YdbQueryStats.QueryStats.Builder, tech.ydb.proto.YdbQueryStats.QueryStatsOrBuilder> getQueryStatsFieldBuilder() { if (queryStatsBuilder_ == null) { queryStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.YdbQueryStats.QueryStats, tech.ydb.proto.YdbQueryStats.QueryStats.Builder, tech.ydb.proto.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.ExecuteYqlPartialResult) } // @@protoc_insertion_point(class_scope:Ydb.Scripting.ExecuteYqlPartialResult) private static final tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult(); } public static tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExecuteYqlPartialResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExecuteYqlPartialResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExplainYqlRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Scripting.ExplainYqlRequest) com.google.protobuf.MessageOrBuilder { /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ boolean hasOperationParams(); /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ tech.ydb.proto.OperationProtos.OperationParams getOperationParams(); /** * .Ydb.Operations.OperationParams operation_params = 1; */ tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder(); /** * string script = 2; * @return The script. */ java.lang.String getScript(); /** * string script = 2; * @return The bytes for script. */ com.google.protobuf.ByteString getScriptBytes(); /** * .Ydb.Scripting.ExplainYqlRequest.Mode mode = 3; * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** * .Ydb.Scripting.ExplainYqlRequest.Mode mode = 3; * @return The mode. */ tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.Mode getMode(); } /** * Protobuf type {@code Ydb.Scripting.ExplainYqlRequest} */ public static final class ExplainYqlRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Scripting.ExplainYqlRequest) ExplainYqlRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ExplainYqlRequest.newBuilder() to construct. private ExplainYqlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExplainYqlRequest() { script_ = ""; mode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExplainYqlRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.class, tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.Builder.class); } /** * Protobuf enum {@code Ydb.Scripting.ExplainYqlRequest.Mode} */ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** * MODE_UNSPECIFIED = 0; */ MODE_UNSPECIFIED(0), /** *
       * PARSE = 1;
       * 
* * VALIDATE = 2; */ VALIDATE(2), /** * PLAN = 3; */ PLAN(3), UNRECOGNIZED(-1), ; /** * MODE_UNSPECIFIED = 0; */ public static final int MODE_UNSPECIFIED_VALUE = 0; /** *
       * PARSE = 1;
       * 
* * VALIDATE = 2; */ public static final int VALIDATE_VALUE = 2; /** * PLAN = 3; */ public static final int PLAN_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Mode valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Mode forNumber(int value) { switch (value) { case 0: return MODE_UNSPECIFIED; case 2: return VALIDATE; case 3: return PLAN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Mode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Mode findValueByNumber(int number) { return Mode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.getDescriptor().getEnumTypes().get(0); } private static final Mode[] VALUES = values(); public static Mode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Mode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:Ydb.Scripting.ExplainYqlRequest.Mode) } private int bitField0_; public static final int OPERATION_PARAMS_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ @java.lang.Override public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } public static final int SCRIPT_FIELD_NUMBER = 2; @SuppressWarnings("serial") 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 MODE_FIELD_NUMBER = 3; private int mode_ = 0; /** * .Ydb.Scripting.ExplainYqlRequest.Mode mode = 3; * @return The enum numeric value on the wire for mode. */ @java.lang.Override public int getModeValue() { return mode_; } /** * .Ydb.Scripting.ExplainYqlRequest.Mode mode = 3; * @return The mode. */ @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.Mode getMode() { tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.Mode result = tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.Mode.forNumber(mode_); return result == null ? tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(script_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, script_); } if (mode_ != tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.Mode.MODE_UNSPECIFIED.getNumber()) { output.writeEnum(3, mode_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperationParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(script_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, script_); } if (mode_ != tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.Mode.MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, mode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest)) { return super.equals(obj); } tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest other = (tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest) obj; if (hasOperationParams() != other.hasOperationParams()) return false; if (hasOperationParams()) { if (!getOperationParams() .equals(other.getOperationParams())) return false; } if (!getScript() .equals(other.getScript())) return false; if (mode_ != other.mode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperationParams()) { hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getOperationParams().hashCode(); } hash = (37 * hash) + SCRIPT_FIELD_NUMBER; hash = (53 * hash) + getScript().hashCode(); hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest 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.ExplainYqlRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Scripting.ExplainYqlRequest) tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.class, tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.Builder.class); } // Construct using tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } script_ = ""; mode_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlRequest_descriptor; } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest getDefaultInstanceForType() { return tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest build() { tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest buildPartial() { tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest result = new tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operationParams_ = operationParamsBuilder_ == null ? operationParams_ : operationParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.script_ = script_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.mode_ = mode_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest) { return mergeFrom((tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest other) { if (other == tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.getDefaultInstance()) return this; if (other.hasOperationParams()) { mergeOperationParams(other.getOperationParams()); } if (!other.getScript().isEmpty()) { script_ = other.script_; bitField0_ |= 0x00000002; onChanged(); } if (other.mode_ != 0) { setModeValue(other.getModeValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { script_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { mode_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.OperationParams operationParams_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_; /** * .Ydb.Operations.OperationParams operation_params = 1; * @return Whether the operationParams field is set. */ public boolean hasOperationParams() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.OperationParams operation_params = 1; * @return The operationParams. */ public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() { if (operationParamsBuilder_ == null) { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } else { return operationParamsBuilder_.getMessage(); } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operationParams_ = value; } else { operationParamsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder setOperationParams( tech.ydb.proto.OperationProtos.OperationParams.Builder builderForValue) { if (operationParamsBuilder_ == null) { operationParams_ = builderForValue.build(); } else { operationParamsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder mergeOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) { if (operationParamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operationParams_ != null && operationParams_ != tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance()) { getOperationParamsBuilder().mergeFrom(value); } else { operationParams_ = value; } } else { operationParamsBuilder_.mergeFrom(value); } if (operationParams_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public Builder clearOperationParams() { bitField0_ = (bitField0_ & ~0x00000001); operationParams_ = null; if (operationParamsBuilder_ != null) { operationParamsBuilder_.dispose(); operationParamsBuilder_ = null; } onChanged(); return this; } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParams.Builder getOperationParamsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationParamsFieldBuilder().getBuilder(); } /** * .Ydb.Operations.OperationParams operation_params = 1; */ public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() { if (operationParamsBuilder_ != null) { return operationParamsBuilder_.getMessageOrBuilder(); } else { return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_; } } /** * .Ydb.Operations.OperationParams operation_params = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> getOperationParamsFieldBuilder() { if (operationParamsBuilder_ == null) { operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>( getOperationParams(), getParentForChildren(), isClean()); operationParams_ = null; } return operationParamsBuilder_; } private 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string script = 2; * @return This builder for chaining. */ public Builder clearScript() { script_ = getDefaultInstance().getScript(); bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000002; onChanged(); return this; } private int mode_ = 0; /** * .Ydb.Scripting.ExplainYqlRequest.Mode mode = 3; * @return The enum numeric value on the wire for mode. */ @java.lang.Override public int getModeValue() { return mode_; } /** * .Ydb.Scripting.ExplainYqlRequest.Mode mode = 3; * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ public Builder setModeValue(int value) { mode_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * .Ydb.Scripting.ExplainYqlRequest.Mode mode = 3; * @return The mode. */ @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.Mode getMode() { tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.Mode result = tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.Mode.forNumber(mode_); return result == null ? tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.Mode.UNRECOGNIZED : result; } /** * .Ydb.Scripting.ExplainYqlRequest.Mode mode = 3; * @param value The mode to set. * @return This builder for chaining. */ public Builder setMode(tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest.Mode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; mode_ = value.getNumber(); onChanged(); return this; } /** * .Ydb.Scripting.ExplainYqlRequest.Mode mode = 3; * @return This builder for chaining. */ public Builder clearMode() { bitField0_ = (bitField0_ & ~0x00000004); mode_ = 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.ExplainYqlRequest) } // @@protoc_insertion_point(class_scope:Ydb.Scripting.ExplainYqlRequest) private static final tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest(); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExplainYqlRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExplainYqlResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Scripting.ExplainYqlResponse) 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. */ tech.ydb.proto.OperationProtos.Operation getOperation(); /** * .Ydb.Operations.Operation operation = 1; */ tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder(); } /** * Protobuf type {@code Ydb.Scripting.ExplainYqlResponse} */ public static final class ExplainYqlResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Scripting.ExplainYqlResponse) ExplainYqlResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ExplainYqlResponse.newBuilder() to construct. private ExplainYqlResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExplainYqlResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExplainYqlResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse.class, tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse.Builder.class); } private int bitField0_; public static final int OPERATION_FIELD_NUMBER = 1; private tech.ydb.proto.OperationProtos.Operation operation_; /** * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ @java.lang.Override public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.Operation operation = 1; * @return The operation. */ @java.lang.Override public tech.ydb.proto.OperationProtos.Operation getOperation() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } /** * .Ydb.Operations.Operation operation = 1; */ @java.lang.Override public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOperation()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOperation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse)) { return super.equals(obj); } tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse other = (tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse) obj; if (hasOperation() != other.hasOperation()) return false; if (hasOperation()) { if (!getOperation() .equals(other.getOperation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasOperation()) { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse 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.ExplainYqlResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Scripting.ExplainYqlResponse) tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse.class, tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse.Builder.class); } // Construct using tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlResponse_descriptor; } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse getDefaultInstanceForType() { return tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse build() { tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse buildPartial() { tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse result = new tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse) { return mergeFrom((tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse other) { if (other == tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse.getDefaultInstance()) return this; if (other.hasOperation()) { mergeOperation(other.getOperation()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getOperationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private tech.ydb.proto.OperationProtos.Operation operation_; private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_; /** * .Ydb.Operations.Operation operation = 1; * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000001) != 0); } /** * .Ydb.Operations.Operation operation = 1; * @return The operation. */ public tech.ydb.proto.OperationProtos.Operation getOperation() { if (operationBuilder_ == null) { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } else { return operationBuilder_.getMessage(); } } /** * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } operation_ = value; } else { operationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.Operation operation = 1; */ public Builder setOperation( tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); } else { operationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .Ydb.Operations.Operation operation = 1; */ public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) { if (operationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && operation_ != null && operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) { getOperationBuilder().mergeFrom(value); } else { operation_ = value; } } else { operationBuilder_.mergeFrom(value); } if (operation_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .Ydb.Operations.Operation operation = 1; */ public Builder clearOperation() { bitField0_ = (bitField0_ & ~0x00000001); operation_ = null; if (operationBuilder_ != null) { operationBuilder_.dispose(); operationBuilder_ = null; } onChanged(); return this; } /** * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOperationFieldBuilder().getBuilder(); } /** * .Ydb.Operations.Operation operation = 1; */ public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_; } } /** * .Ydb.Operations.Operation operation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.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.ExplainYqlResponse) } // @@protoc_insertion_point(class_scope:Ydb.Scripting.ExplainYqlResponse) private static final tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse(); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExplainYqlResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExplainYqlResultOrBuilder extends // @@protoc_insertion_point(interface_extends:Ydb.Scripting.ExplainYqlResult) com.google.protobuf.MessageOrBuilder { /** * map<string, .Ydb.Type> parameters_types = 1; */ int getParametersTypesCount(); /** * map<string, .Ydb.Type> parameters_types = 1; */ boolean containsParametersTypes( java.lang.String key); /** * Use {@link #getParametersTypesMap()} instead. */ @java.lang.Deprecated java.util.Map getParametersTypes(); /** * map<string, .Ydb.Type> parameters_types = 1; */ java.util.Map getParametersTypesMap(); /** * map<string, .Ydb.Type> parameters_types = 1; */ /* nullable */ tech.ydb.proto.ValueProtos.Type getParametersTypesOrDefault( java.lang.String key, /* nullable */ tech.ydb.proto.ValueProtos.Type defaultValue); /** * map<string, .Ydb.Type> parameters_types = 1; */ tech.ydb.proto.ValueProtos.Type getParametersTypesOrThrow( java.lang.String key); /** * string plan = 2; * @return The plan. */ java.lang.String getPlan(); /** * string plan = 2; * @return The bytes for plan. */ com.google.protobuf.ByteString getPlanBytes(); } /** * Protobuf type {@code Ydb.Scripting.ExplainYqlResult} */ public static final class ExplainYqlResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Ydb.Scripting.ExplainYqlResult) ExplainYqlResultOrBuilder { private static final long serialVersionUID = 0L; // Use ExplainYqlResult.newBuilder() to construct. private ExplainYqlResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExplainYqlResult() { plan_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExplainYqlResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetParametersTypes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult.class, tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult.Builder.class); } public static final int PARAMETERS_TYPES_FIELD_NUMBER = 1; private static final class ParametersTypesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, tech.ydb.proto.ValueProtos.Type> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlResult_ParametersTypesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, tech.ydb.proto.ValueProtos.Type.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, tech.ydb.proto.ValueProtos.Type> parametersTypes_; private com.google.protobuf.MapField internalGetParametersTypes() { if (parametersTypes_ == null) { return com.google.protobuf.MapField.emptyMapField( ParametersTypesDefaultEntryHolder.defaultEntry); } return parametersTypes_; } public int getParametersTypesCount() { return internalGetParametersTypes().getMap().size(); } /** * map<string, .Ydb.Type> parameters_types = 1; */ @java.lang.Override public boolean containsParametersTypes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetParametersTypes().getMap().containsKey(key); } /** * Use {@link #getParametersTypesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParametersTypes() { return getParametersTypesMap(); } /** * map<string, .Ydb.Type> parameters_types = 1; */ @java.lang.Override public java.util.Map getParametersTypesMap() { return internalGetParametersTypes().getMap(); } /** * map<string, .Ydb.Type> parameters_types = 1; */ @java.lang.Override public /* nullable */ tech.ydb.proto.ValueProtos.Type getParametersTypesOrDefault( java.lang.String key, /* nullable */ tech.ydb.proto.ValueProtos.Type defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetParametersTypes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .Ydb.Type> parameters_types = 1; */ @java.lang.Override public tech.ydb.proto.ValueProtos.Type getParametersTypesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetParametersTypes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int PLAN_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object plan_ = ""; /** * string plan = 2; * @return The plan. */ @java.lang.Override public java.lang.String getPlan() { java.lang.Object ref = plan_; 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(); plan_ = s; return s; } } /** * string plan = 2; * @return The bytes for plan. */ @java.lang.Override public com.google.protobuf.ByteString getPlanBytes() { java.lang.Object ref = plan_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); plan_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetParametersTypes(), ParametersTypesDefaultEntryHolder.defaultEntry, 1); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(plan_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, plan_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetParametersTypes().getMap().entrySet()) { com.google.protobuf.MapEntry parametersTypes__ = ParametersTypesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, parametersTypes__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(plan_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, plan_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult)) { return super.equals(obj); } tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult other = (tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult) obj; if (!internalGetParametersTypes().equals( other.internalGetParametersTypes())) return false; if (!getPlan() .equals(other.getPlan())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetParametersTypes().getMap().isEmpty()) { hash = (37 * hash) + PARAMETERS_TYPES_FIELD_NUMBER; hash = (53 * hash) + internalGetParametersTypes().hashCode(); } hash = (37 * hash) + PLAN_FIELD_NUMBER; hash = (53 * hash) + getPlan().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult 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.ExplainYqlResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Ydb.Scripting.ExplainYqlResult) tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlResult_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetParametersTypes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableParametersTypes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlResult_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult.class, tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult.Builder.class); } // Construct using tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableParametersTypes().clear(); plan_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ydb.proto.scripting.ScriptingProtos.internal_static_Ydb_Scripting_ExplainYqlResult_descriptor; } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult getDefaultInstanceForType() { return tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult.getDefaultInstance(); } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult build() { tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult buildPartial() { tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult result = new tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parametersTypes_ = internalGetParametersTypes(); result.parametersTypes_.makeImmutable(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.plan_ = plan_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult) { return mergeFrom((tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult other) { if (other == tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult.getDefaultInstance()) return this; internalGetMutableParametersTypes().mergeFrom( other.internalGetParametersTypes()); bitField0_ |= 0x00000001; if (!other.getPlan().isEmpty()) { plan_ = other.plan_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry parametersTypes__ = input.readMessage( ParametersTypesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableParametersTypes().getMutableMap().put( parametersTypes__.getKey(), parametersTypes__.getValue()); bitField0_ |= 0x00000001; break; } // case 10 case 18: { plan_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, tech.ydb.proto.ValueProtos.Type> parametersTypes_; private com.google.protobuf.MapField internalGetParametersTypes() { if (parametersTypes_ == null) { return com.google.protobuf.MapField.emptyMapField( ParametersTypesDefaultEntryHolder.defaultEntry); } return parametersTypes_; } private com.google.protobuf.MapField internalGetMutableParametersTypes() { if (parametersTypes_ == null) { parametersTypes_ = com.google.protobuf.MapField.newMapField( ParametersTypesDefaultEntryHolder.defaultEntry); } if (!parametersTypes_.isMutable()) { parametersTypes_ = parametersTypes_.copy(); } bitField0_ |= 0x00000001; onChanged(); return parametersTypes_; } public int getParametersTypesCount() { return internalGetParametersTypes().getMap().size(); } /** * map<string, .Ydb.Type> parameters_types = 1; */ @java.lang.Override public boolean containsParametersTypes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetParametersTypes().getMap().containsKey(key); } /** * Use {@link #getParametersTypesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParametersTypes() { return getParametersTypesMap(); } /** * map<string, .Ydb.Type> parameters_types = 1; */ @java.lang.Override public java.util.Map getParametersTypesMap() { return internalGetParametersTypes().getMap(); } /** * map<string, .Ydb.Type> parameters_types = 1; */ @java.lang.Override public /* nullable */ tech.ydb.proto.ValueProtos.Type getParametersTypesOrDefault( java.lang.String key, /* nullable */ tech.ydb.proto.ValueProtos.Type defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetParametersTypes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .Ydb.Type> parameters_types = 1; */ @java.lang.Override public tech.ydb.proto.ValueProtos.Type getParametersTypesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetParametersTypes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearParametersTypes() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableParametersTypes().getMutableMap() .clear(); return this; } /** * map<string, .Ydb.Type> parameters_types = 1; */ public Builder removeParametersTypes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableParametersTypes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParametersTypes() { bitField0_ |= 0x00000001; return internalGetMutableParametersTypes().getMutableMap(); } /** * map<string, .Ydb.Type> parameters_types = 1; */ public Builder putParametersTypes( java.lang.String key, tech.ydb.proto.ValueProtos.Type value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableParametersTypes().getMutableMap() .put(key, value); bitField0_ |= 0x00000001; return this; } /** * map<string, .Ydb.Type> parameters_types = 1; */ public Builder putAllParametersTypes( java.util.Map values) { internalGetMutableParametersTypes().getMutableMap() .putAll(values); bitField0_ |= 0x00000001; return this; } private java.lang.Object plan_ = ""; /** * string plan = 2; * @return The plan. */ public java.lang.String getPlan() { java.lang.Object ref = plan_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); plan_ = s; return s; } else { return (java.lang.String) ref; } } /** * string plan = 2; * @return The bytes for plan. */ public com.google.protobuf.ByteString getPlanBytes() { java.lang.Object ref = plan_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); plan_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string plan = 2; * @param value The plan to set. * @return This builder for chaining. */ public Builder setPlan( java.lang.String value) { if (value == null) { throw new NullPointerException(); } plan_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string plan = 2; * @return This builder for chaining. */ public Builder clearPlan() { plan_ = getDefaultInstance().getPlan(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string plan = 2; * @param value The bytes for plan to set. * @return This builder for chaining. */ public Builder setPlanBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); plan_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Ydb.Scripting.ExplainYqlResult) } // @@protoc_insertion_point(class_scope:Ydb.Scripting.ExplainYqlResult) private static final tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult(); } public static tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExplainYqlResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ydb.proto.scripting.ScriptingProtos.ExplainYqlResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Scripting_ExecuteYqlRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Scripting_ExecuteYqlRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Scripting_ExecuteYqlRequest_ParametersEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Scripting_ExecuteYqlRequest_ParametersEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Scripting_ExecuteYqlResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Scripting_ExecuteYqlResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Scripting_ExecuteYqlResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Scripting_ExecuteYqlResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Scripting_ExecuteYqlPartialResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Scripting_ExecuteYqlPartialResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Scripting_ExecuteYqlPartialResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Scripting_ExecuteYqlPartialResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Scripting_ExplainYqlRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Scripting_ExplainYqlRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Scripting_ExplainYqlResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Scripting_ExplainYqlResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Scripting_ExplainYqlResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Scripting_ExplainYqlResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Ydb_Scripting_ExplainYqlResult_ParametersTypesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Ydb_Scripting_ExplainYqlResult_ParametersTypesEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\032protos/ydb_scripting.proto\022\rYdb.Script" + "ing\032\032protos/ydb_operation.proto\032\026protos/" + "ydb_value.proto\032\026protos/ydb_table.proto\032" + "\034protos/ydb_query_stats.proto\032\036protos/yd" + "b_issue_message.proto\032\035protos/ydb_status" + "_codes.proto\"\245\002\n\021ExecuteYqlRequest\0229\n\020op" + "eration_params\030\001 \001(\0132\037.Ydb.Operations.Op" + "erationParams\022\016\n\006script\030\002 \001(\t\022D\n\nparamet" + "ers\030\003 \003(\01320.Ydb.Scripting.ExecuteYqlRequ" + "est.ParametersEntry\022;\n\rcollect_stats\030\004 \001" + "(\0162$.Ydb.Table.QueryStatsCollection.Mode" + "\032B\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\036\n\005valu" + "e\030\002 \001(\0132\017.Ydb.TypedValue:\0028\001\"B\n\022ExecuteY" + "qlResponse\022,\n\toperation\030\001 \001(\0132\031.Ydb.Oper" + "ations.Operation\"h\n\020ExecuteYqlResult\022#\n\013" + "result_sets\030\001 \003(\0132\016.Ydb.ResultSet\022/\n\013que" + "ry_stats\030\002 \001(\0132\032.Ydb.TableStats.QuerySta" + "ts\"\247\001\n\031ExecuteYqlPartialResponse\022)\n\006stat" + "us\030\001 \001(\0162\031.Ydb.StatusIds.StatusCode\022\'\n\006i" + "ssues\030\002 \003(\0132\027.Ydb.Issue.IssueMessage\0226\n\006" + "result\030\003 \001(\0132&.Ydb.Scripting.ExecuteYqlP" + "artialResult\"\210\001\n\027ExecuteYqlPartialResult" + "\022\030\n\020result_set_index\030\001 \001(\r\022\"\n\nresult_set" + "\030\002 \001(\0132\016.Ydb.ResultSet\022/\n\013query_stats\030\003 " + "\001(\0132\032.Ydb.TableStats.QueryStats\"\311\001\n\021Expl" + "ainYqlRequest\0229\n\020operation_params\030\001 \001(\0132" + "\037.Ydb.Operations.OperationParams\022\016\n\006scri" + "pt\030\002 \001(\t\0223\n\004mode\030\003 \001(\0162%.Ydb.Scripting.E" + "xplainYqlRequest.Mode\"4\n\004Mode\022\024\n\020MODE_UN" + "SPECIFIED\020\000\022\014\n\010VALIDATE\020\002\022\010\n\004PLAN\020\003\"B\n\022E" + "xplainYqlResponse\022,\n\toperation\030\001 \001(\0132\031.Y" + "db.Operations.Operation\"\263\001\n\020ExplainYqlRe" + "sult\022N\n\020parameters_types\030\001 \003(\01324.Ydb.Scr" + "ipting.ExplainYqlResult.ParametersTypesE" + "ntry\022\014\n\004plan\030\002 \001(\t\032A\n\024ParametersTypesEnt" + "ry\022\013\n\003key\030\001 \001(\t\022\030\n\005value\030\002 \001(\0132\t.Ydb.Typ" + "e:\0028\001Bl\n\030tech.ydb.proto.scriptingB\017Scrip" + "tingProtosZ




© 2015 - 2025 Weber Informatics LLC | Privacy Policy