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

com.salesforce.hyperdb.grpc.ExecuteQueryResponse Maven / Gradle / Ivy

There is a newer version: 0.22.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: hyper_service.proto

// Protobuf Java Version: 3.25.5
package com.salesforce.hyperdb.grpc;

/**
 * Protobuf type {@code salesforce.hyperdb.grpc.v1.ExecuteQueryResponse}
 */
public final class ExecuteQueryResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:salesforce.hyperdb.grpc.v1.ExecuteQueryResponse)
    ExecuteQueryResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ExecuteQueryResponse.newBuilder() to construct.
  private ExecuteQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ExecuteQueryResponse() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new ExecuteQueryResponse();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_ExecuteQueryResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_ExecuteQueryResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.salesforce.hyperdb.grpc.ExecuteQueryResponse.class, com.salesforce.hyperdb.grpc.ExecuteQueryResponse.Builder.class);
  }

  private int resultCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object result_;
  public enum ResultCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    HEADER(1),
    BINARY_PART(4),
    STRING_PART(5),
    QUERY_INFO(6),
    QUERY_RESULT(7),
    RESULT_NOT_SET(0);
    private final int value;
    private ResultCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ResultCase valueOf(int value) {
      return forNumber(value);
    }

    public static ResultCase forNumber(int value) {
      switch (value) {
        case 1: return HEADER;
        case 4: return BINARY_PART;
        case 5: return STRING_PART;
        case 6: return QUERY_INFO;
        case 7: return QUERY_RESULT;
        case 0: return RESULT_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ResultCase
  getResultCase() {
    return ResultCase.forNumber(
        resultCase_);
  }

  public static final int HEADER_FIELD_NUMBER = 1;
  /**
   * .salesforce.hyperdb.grpc.v1.QueryResultHeader header = 1;
   * @return Whether the header field is set.
   */
  @java.lang.Override
  public boolean hasHeader() {
    return resultCase_ == 1;
  }
  /**
   * .salesforce.hyperdb.grpc.v1.QueryResultHeader header = 1;
   * @return The header.
   */
  @java.lang.Override
  public com.salesforce.hyperdb.grpc.QueryResultHeader getHeader() {
    if (resultCase_ == 1) {
       return (com.salesforce.hyperdb.grpc.QueryResultHeader) result_;
    }
    return com.salesforce.hyperdb.grpc.QueryResultHeader.getDefaultInstance();
  }
  /**
   * .salesforce.hyperdb.grpc.v1.QueryResultHeader header = 1;
   */
  @java.lang.Override
  public com.salesforce.hyperdb.grpc.QueryResultHeaderOrBuilder getHeaderOrBuilder() {
    if (resultCase_ == 1) {
       return (com.salesforce.hyperdb.grpc.QueryResultHeader) result_;
    }
    return com.salesforce.hyperdb.grpc.QueryResultHeader.getDefaultInstance();
  }

  public static final int BINARY_PART_FIELD_NUMBER = 4;
  /**
   * .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 4;
   * @return Whether the binaryPart field is set.
   */
  @java.lang.Override
  public boolean hasBinaryPart() {
    return resultCase_ == 4;
  }
  /**
   * .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 4;
   * @return The binaryPart.
   */
  @java.lang.Override
  public com.salesforce.hyperdb.grpc.QueryResultPartBinary getBinaryPart() {
    if (resultCase_ == 4) {
       return (com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_;
    }
    return com.salesforce.hyperdb.grpc.QueryResultPartBinary.getDefaultInstance();
  }
  /**
   * .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 4;
   */
  @java.lang.Override
  public com.salesforce.hyperdb.grpc.QueryResultPartBinaryOrBuilder getBinaryPartOrBuilder() {
    if (resultCase_ == 4) {
       return (com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_;
    }
    return com.salesforce.hyperdb.grpc.QueryResultPartBinary.getDefaultInstance();
  }

  public static final int STRING_PART_FIELD_NUMBER = 5;
  /**
   * .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 5;
   * @return Whether the stringPart field is set.
   */
  @java.lang.Override
  public boolean hasStringPart() {
    return resultCase_ == 5;
  }
  /**
   * .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 5;
   * @return The stringPart.
   */
  @java.lang.Override
  public com.salesforce.hyperdb.grpc.QueryResultPartString getStringPart() {
    if (resultCase_ == 5) {
       return (com.salesforce.hyperdb.grpc.QueryResultPartString) result_;
    }
    return com.salesforce.hyperdb.grpc.QueryResultPartString.getDefaultInstance();
  }
  /**
   * .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 5;
   */
  @java.lang.Override
  public com.salesforce.hyperdb.grpc.QueryResultPartStringOrBuilder getStringPartOrBuilder() {
    if (resultCase_ == 5) {
       return (com.salesforce.hyperdb.grpc.QueryResultPartString) result_;
    }
    return com.salesforce.hyperdb.grpc.QueryResultPartString.getDefaultInstance();
  }

  public static final int QUERY_INFO_FIELD_NUMBER = 6;
  /**
   * .salesforce.hyperdb.grpc.v1.QueryInfo query_info = 6;
   * @return Whether the queryInfo field is set.
   */
  @java.lang.Override
  public boolean hasQueryInfo() {
    return resultCase_ == 6;
  }
  /**
   * .salesforce.hyperdb.grpc.v1.QueryInfo query_info = 6;
   * @return The queryInfo.
   */
  @java.lang.Override
  public com.salesforce.hyperdb.grpc.QueryInfo getQueryInfo() {
    if (resultCase_ == 6) {
       return (com.salesforce.hyperdb.grpc.QueryInfo) result_;
    }
    return com.salesforce.hyperdb.grpc.QueryInfo.getDefaultInstance();
  }
  /**
   * .salesforce.hyperdb.grpc.v1.QueryInfo query_info = 6;
   */
  @java.lang.Override
  public com.salesforce.hyperdb.grpc.QueryInfoOrBuilder getQueryInfoOrBuilder() {
    if (resultCase_ == 6) {
       return (com.salesforce.hyperdb.grpc.QueryInfo) result_;
    }
    return com.salesforce.hyperdb.grpc.QueryInfo.getDefaultInstance();
  }

  public static final int QUERY_RESULT_FIELD_NUMBER = 7;
  /**
   * .salesforce.hyperdb.grpc.v1.QueryResult query_result = 7;
   * @return Whether the queryResult field is set.
   */
  @java.lang.Override
  public boolean hasQueryResult() {
    return resultCase_ == 7;
  }
  /**
   * .salesforce.hyperdb.grpc.v1.QueryResult query_result = 7;
   * @return The queryResult.
   */
  @java.lang.Override
  public com.salesforce.hyperdb.grpc.QueryResult getQueryResult() {
    if (resultCase_ == 7) {
       return (com.salesforce.hyperdb.grpc.QueryResult) result_;
    }
    return com.salesforce.hyperdb.grpc.QueryResult.getDefaultInstance();
  }
  /**
   * .salesforce.hyperdb.grpc.v1.QueryResult query_result = 7;
   */
  @java.lang.Override
  public com.salesforce.hyperdb.grpc.QueryResultOrBuilder getQueryResultOrBuilder() {
    if (resultCase_ == 7) {
       return (com.salesforce.hyperdb.grpc.QueryResult) result_;
    }
    return com.salesforce.hyperdb.grpc.QueryResult.getDefaultInstance();
  }

  public static final int OPTIONAL_FIELD_NUMBER = 9;
  private boolean optional_ = false;
  /**
   * bool optional = 9;
   * @return The optional.
   */
  @java.lang.Override
  public boolean getOptional() {
    return optional_;
  }

  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 (resultCase_ == 1) {
      output.writeMessage(1, (com.salesforce.hyperdb.grpc.QueryResultHeader) result_);
    }
    if (resultCase_ == 4) {
      output.writeMessage(4, (com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_);
    }
    if (resultCase_ == 5) {
      output.writeMessage(5, (com.salesforce.hyperdb.grpc.QueryResultPartString) result_);
    }
    if (resultCase_ == 6) {
      output.writeMessage(6, (com.salesforce.hyperdb.grpc.QueryInfo) result_);
    }
    if (resultCase_ == 7) {
      output.writeMessage(7, (com.salesforce.hyperdb.grpc.QueryResult) result_);
    }
    if (optional_ != false) {
      output.writeBool(9, optional_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (resultCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (com.salesforce.hyperdb.grpc.QueryResultHeader) result_);
    }
    if (resultCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_);
    }
    if (resultCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, (com.salesforce.hyperdb.grpc.QueryResultPartString) result_);
    }
    if (resultCase_ == 6) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, (com.salesforce.hyperdb.grpc.QueryInfo) result_);
    }
    if (resultCase_ == 7) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, (com.salesforce.hyperdb.grpc.QueryResult) result_);
    }
    if (optional_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(9, optional_);
    }
    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 com.salesforce.hyperdb.grpc.ExecuteQueryResponse)) {
      return super.equals(obj);
    }
    com.salesforce.hyperdb.grpc.ExecuteQueryResponse other = (com.salesforce.hyperdb.grpc.ExecuteQueryResponse) obj;

    if (getOptional()
        != other.getOptional()) return false;
    if (!getResultCase().equals(other.getResultCase())) return false;
    switch (resultCase_) {
      case 1:
        if (!getHeader()
            .equals(other.getHeader())) return false;
        break;
      case 4:
        if (!getBinaryPart()
            .equals(other.getBinaryPart())) return false;
        break;
      case 5:
        if (!getStringPart()
            .equals(other.getStringPart())) return false;
        break;
      case 6:
        if (!getQueryInfo()
            .equals(other.getQueryInfo())) return false;
        break;
      case 7:
        if (!getQueryResult()
            .equals(other.getQueryResult())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + OPTIONAL_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getOptional());
    switch (resultCase_) {
      case 1:
        hash = (37 * hash) + HEADER_FIELD_NUMBER;
        hash = (53 * hash) + getHeader().hashCode();
        break;
      case 4:
        hash = (37 * hash) + BINARY_PART_FIELD_NUMBER;
        hash = (53 * hash) + getBinaryPart().hashCode();
        break;
      case 5:
        hash = (37 * hash) + STRING_PART_FIELD_NUMBER;
        hash = (53 * hash) + getStringPart().hashCode();
        break;
      case 6:
        hash = (37 * hash) + QUERY_INFO_FIELD_NUMBER;
        hash = (53 * hash) + getQueryInfo().hashCode();
        break;
      case 7:
        hash = (37 * hash) + QUERY_RESULT_FIELD_NUMBER;
        hash = (53 * hash) + getQueryResult().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.salesforce.hyperdb.grpc.ExecuteQueryResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.salesforce.hyperdb.grpc.ExecuteQueryResponse parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.salesforce.hyperdb.grpc.ExecuteQueryResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.salesforce.hyperdb.grpc.ExecuteQueryResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.salesforce.hyperdb.grpc.ExecuteQueryResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.salesforce.hyperdb.grpc.ExecuteQueryResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.salesforce.hyperdb.grpc.ExecuteQueryResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.salesforce.hyperdb.grpc.ExecuteQueryResponse parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static com.salesforce.hyperdb.grpc.ExecuteQueryResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static com.salesforce.hyperdb.grpc.ExecuteQueryResponse parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.salesforce.hyperdb.grpc.ExecuteQueryResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.salesforce.hyperdb.grpc.ExecuteQueryResponse parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.salesforce.hyperdb.grpc.ExecuteQueryResponse 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 salesforce.hyperdb.grpc.v1.ExecuteQueryResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:salesforce.hyperdb.grpc.v1.ExecuteQueryResponse)
      com.salesforce.hyperdb.grpc.ExecuteQueryResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_ExecuteQueryResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_ExecuteQueryResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.salesforce.hyperdb.grpc.ExecuteQueryResponse.class, com.salesforce.hyperdb.grpc.ExecuteQueryResponse.Builder.class);
    }

    // Construct using com.salesforce.hyperdb.grpc.ExecuteQueryResponse.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (headerBuilder_ != null) {
        headerBuilder_.clear();
      }
      if (binaryPartBuilder_ != null) {
        binaryPartBuilder_.clear();
      }
      if (stringPartBuilder_ != null) {
        stringPartBuilder_.clear();
      }
      if (queryInfoBuilder_ != null) {
        queryInfoBuilder_.clear();
      }
      if (queryResultBuilder_ != null) {
        queryResultBuilder_.clear();
      }
      optional_ = false;
      resultCase_ = 0;
      result_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_ExecuteQueryResponse_descriptor;
    }

    @java.lang.Override
    public com.salesforce.hyperdb.grpc.ExecuteQueryResponse getDefaultInstanceForType() {
      return com.salesforce.hyperdb.grpc.ExecuteQueryResponse.getDefaultInstance();
    }

    @java.lang.Override
    public com.salesforce.hyperdb.grpc.ExecuteQueryResponse build() {
      com.salesforce.hyperdb.grpc.ExecuteQueryResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.salesforce.hyperdb.grpc.ExecuteQueryResponse buildPartial() {
      com.salesforce.hyperdb.grpc.ExecuteQueryResponse result = new com.salesforce.hyperdb.grpc.ExecuteQueryResponse(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartial0(com.salesforce.hyperdb.grpc.ExecuteQueryResponse result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.optional_ = optional_;
      }
    }

    private void buildPartialOneofs(com.salesforce.hyperdb.grpc.ExecuteQueryResponse result) {
      result.resultCase_ = resultCase_;
      result.result_ = this.result_;
      if (resultCase_ == 1 &&
          headerBuilder_ != null) {
        result.result_ = headerBuilder_.build();
      }
      if (resultCase_ == 4 &&
          binaryPartBuilder_ != null) {
        result.result_ = binaryPartBuilder_.build();
      }
      if (resultCase_ == 5 &&
          stringPartBuilder_ != null) {
        result.result_ = stringPartBuilder_.build();
      }
      if (resultCase_ == 6 &&
          queryInfoBuilder_ != null) {
        result.result_ = queryInfoBuilder_.build();
      }
      if (resultCase_ == 7 &&
          queryResultBuilder_ != null) {
        result.result_ = queryResultBuilder_.build();
      }
    }

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

    public Builder mergeFrom(com.salesforce.hyperdb.grpc.ExecuteQueryResponse other) {
      if (other == com.salesforce.hyperdb.grpc.ExecuteQueryResponse.getDefaultInstance()) return this;
      if (other.getOptional() != false) {
        setOptional(other.getOptional());
      }
      switch (other.getResultCase()) {
        case HEADER: {
          mergeHeader(other.getHeader());
          break;
        }
        case BINARY_PART: {
          mergeBinaryPart(other.getBinaryPart());
          break;
        }
        case STRING_PART: {
          mergeStringPart(other.getStringPart());
          break;
        }
        case QUERY_INFO: {
          mergeQueryInfo(other.getQueryInfo());
          break;
        }
        case QUERY_RESULT: {
          mergeQueryResult(other.getQueryResult());
          break;
        }
        case RESULT_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              input.readMessage(
                  getHeaderFieldBuilder().getBuilder(),
                  extensionRegistry);
              resultCase_ = 1;
              break;
            } // case 10
            case 34: {
              input.readMessage(
                  getBinaryPartFieldBuilder().getBuilder(),
                  extensionRegistry);
              resultCase_ = 4;
              break;
            } // case 34
            case 42: {
              input.readMessage(
                  getStringPartFieldBuilder().getBuilder(),
                  extensionRegistry);
              resultCase_ = 5;
              break;
            } // case 42
            case 50: {
              input.readMessage(
                  getQueryInfoFieldBuilder().getBuilder(),
                  extensionRegistry);
              resultCase_ = 6;
              break;
            } // case 50
            case 58: {
              input.readMessage(
                  getQueryResultFieldBuilder().getBuilder(),
                  extensionRegistry);
              resultCase_ = 7;
              break;
            } // case 58
            case 72: {
              optional_ = input.readBool();
              bitField0_ |= 0x00000020;
              break;
            } // case 72
            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 resultCase_ = 0;
    private java.lang.Object result_;
    public ResultCase
        getResultCase() {
      return ResultCase.forNumber(
          resultCase_);
    }

    public Builder clearResult() {
      resultCase_ = 0;
      result_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private com.google.protobuf.SingleFieldBuilderV3<
        com.salesforce.hyperdb.grpc.QueryResultHeader, com.salesforce.hyperdb.grpc.QueryResultHeader.Builder, com.salesforce.hyperdb.grpc.QueryResultHeaderOrBuilder> headerBuilder_;
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultHeader header = 1;
     * @return Whether the header field is set.
     */
    @java.lang.Override
    public boolean hasHeader() {
      return resultCase_ == 1;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultHeader header = 1;
     * @return The header.
     */
    @java.lang.Override
    public com.salesforce.hyperdb.grpc.QueryResultHeader getHeader() {
      if (headerBuilder_ == null) {
        if (resultCase_ == 1) {
          return (com.salesforce.hyperdb.grpc.QueryResultHeader) result_;
        }
        return com.salesforce.hyperdb.grpc.QueryResultHeader.getDefaultInstance();
      } else {
        if (resultCase_ == 1) {
          return headerBuilder_.getMessage();
        }
        return com.salesforce.hyperdb.grpc.QueryResultHeader.getDefaultInstance();
      }
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultHeader header = 1;
     */
    public Builder setHeader(com.salesforce.hyperdb.grpc.QueryResultHeader value) {
      if (headerBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        result_ = value;
        onChanged();
      } else {
        headerBuilder_.setMessage(value);
      }
      resultCase_ = 1;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultHeader header = 1;
     */
    public Builder setHeader(
        com.salesforce.hyperdb.grpc.QueryResultHeader.Builder builderForValue) {
      if (headerBuilder_ == null) {
        result_ = builderForValue.build();
        onChanged();
      } else {
        headerBuilder_.setMessage(builderForValue.build());
      }
      resultCase_ = 1;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultHeader header = 1;
     */
    public Builder mergeHeader(com.salesforce.hyperdb.grpc.QueryResultHeader value) {
      if (headerBuilder_ == null) {
        if (resultCase_ == 1 &&
            result_ != com.salesforce.hyperdb.grpc.QueryResultHeader.getDefaultInstance()) {
          result_ = com.salesforce.hyperdb.grpc.QueryResultHeader.newBuilder((com.salesforce.hyperdb.grpc.QueryResultHeader) result_)
              .mergeFrom(value).buildPartial();
        } else {
          result_ = value;
        }
        onChanged();
      } else {
        if (resultCase_ == 1) {
          headerBuilder_.mergeFrom(value);
        } else {
          headerBuilder_.setMessage(value);
        }
      }
      resultCase_ = 1;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultHeader header = 1;
     */
    public Builder clearHeader() {
      if (headerBuilder_ == null) {
        if (resultCase_ == 1) {
          resultCase_ = 0;
          result_ = null;
          onChanged();
        }
      } else {
        if (resultCase_ == 1) {
          resultCase_ = 0;
          result_ = null;
        }
        headerBuilder_.clear();
      }
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultHeader header = 1;
     */
    public com.salesforce.hyperdb.grpc.QueryResultHeader.Builder getHeaderBuilder() {
      return getHeaderFieldBuilder().getBuilder();
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultHeader header = 1;
     */
    @java.lang.Override
    public com.salesforce.hyperdb.grpc.QueryResultHeaderOrBuilder getHeaderOrBuilder() {
      if ((resultCase_ == 1) && (headerBuilder_ != null)) {
        return headerBuilder_.getMessageOrBuilder();
      } else {
        if (resultCase_ == 1) {
          return (com.salesforce.hyperdb.grpc.QueryResultHeader) result_;
        }
        return com.salesforce.hyperdb.grpc.QueryResultHeader.getDefaultInstance();
      }
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultHeader header = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.salesforce.hyperdb.grpc.QueryResultHeader, com.salesforce.hyperdb.grpc.QueryResultHeader.Builder, com.salesforce.hyperdb.grpc.QueryResultHeaderOrBuilder> 
        getHeaderFieldBuilder() {
      if (headerBuilder_ == null) {
        if (!(resultCase_ == 1)) {
          result_ = com.salesforce.hyperdb.grpc.QueryResultHeader.getDefaultInstance();
        }
        headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.salesforce.hyperdb.grpc.QueryResultHeader, com.salesforce.hyperdb.grpc.QueryResultHeader.Builder, com.salesforce.hyperdb.grpc.QueryResultHeaderOrBuilder>(
                (com.salesforce.hyperdb.grpc.QueryResultHeader) result_,
                getParentForChildren(),
                isClean());
        result_ = null;
      }
      resultCase_ = 1;
      onChanged();
      return headerBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.salesforce.hyperdb.grpc.QueryResultPartBinary, com.salesforce.hyperdb.grpc.QueryResultPartBinary.Builder, com.salesforce.hyperdb.grpc.QueryResultPartBinaryOrBuilder> binaryPartBuilder_;
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 4;
     * @return Whether the binaryPart field is set.
     */
    @java.lang.Override
    public boolean hasBinaryPart() {
      return resultCase_ == 4;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 4;
     * @return The binaryPart.
     */
    @java.lang.Override
    public com.salesforce.hyperdb.grpc.QueryResultPartBinary getBinaryPart() {
      if (binaryPartBuilder_ == null) {
        if (resultCase_ == 4) {
          return (com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_;
        }
        return com.salesforce.hyperdb.grpc.QueryResultPartBinary.getDefaultInstance();
      } else {
        if (resultCase_ == 4) {
          return binaryPartBuilder_.getMessage();
        }
        return com.salesforce.hyperdb.grpc.QueryResultPartBinary.getDefaultInstance();
      }
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 4;
     */
    public Builder setBinaryPart(com.salesforce.hyperdb.grpc.QueryResultPartBinary value) {
      if (binaryPartBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        result_ = value;
        onChanged();
      } else {
        binaryPartBuilder_.setMessage(value);
      }
      resultCase_ = 4;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 4;
     */
    public Builder setBinaryPart(
        com.salesforce.hyperdb.grpc.QueryResultPartBinary.Builder builderForValue) {
      if (binaryPartBuilder_ == null) {
        result_ = builderForValue.build();
        onChanged();
      } else {
        binaryPartBuilder_.setMessage(builderForValue.build());
      }
      resultCase_ = 4;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 4;
     */
    public Builder mergeBinaryPart(com.salesforce.hyperdb.grpc.QueryResultPartBinary value) {
      if (binaryPartBuilder_ == null) {
        if (resultCase_ == 4 &&
            result_ != com.salesforce.hyperdb.grpc.QueryResultPartBinary.getDefaultInstance()) {
          result_ = com.salesforce.hyperdb.grpc.QueryResultPartBinary.newBuilder((com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_)
              .mergeFrom(value).buildPartial();
        } else {
          result_ = value;
        }
        onChanged();
      } else {
        if (resultCase_ == 4) {
          binaryPartBuilder_.mergeFrom(value);
        } else {
          binaryPartBuilder_.setMessage(value);
        }
      }
      resultCase_ = 4;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 4;
     */
    public Builder clearBinaryPart() {
      if (binaryPartBuilder_ == null) {
        if (resultCase_ == 4) {
          resultCase_ = 0;
          result_ = null;
          onChanged();
        }
      } else {
        if (resultCase_ == 4) {
          resultCase_ = 0;
          result_ = null;
        }
        binaryPartBuilder_.clear();
      }
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 4;
     */
    public com.salesforce.hyperdb.grpc.QueryResultPartBinary.Builder getBinaryPartBuilder() {
      return getBinaryPartFieldBuilder().getBuilder();
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 4;
     */
    @java.lang.Override
    public com.salesforce.hyperdb.grpc.QueryResultPartBinaryOrBuilder getBinaryPartOrBuilder() {
      if ((resultCase_ == 4) && (binaryPartBuilder_ != null)) {
        return binaryPartBuilder_.getMessageOrBuilder();
      } else {
        if (resultCase_ == 4) {
          return (com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_;
        }
        return com.salesforce.hyperdb.grpc.QueryResultPartBinary.getDefaultInstance();
      }
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartBinary binary_part = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.salesforce.hyperdb.grpc.QueryResultPartBinary, com.salesforce.hyperdb.grpc.QueryResultPartBinary.Builder, com.salesforce.hyperdb.grpc.QueryResultPartBinaryOrBuilder> 
        getBinaryPartFieldBuilder() {
      if (binaryPartBuilder_ == null) {
        if (!(resultCase_ == 4)) {
          result_ = com.salesforce.hyperdb.grpc.QueryResultPartBinary.getDefaultInstance();
        }
        binaryPartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.salesforce.hyperdb.grpc.QueryResultPartBinary, com.salesforce.hyperdb.grpc.QueryResultPartBinary.Builder, com.salesforce.hyperdb.grpc.QueryResultPartBinaryOrBuilder>(
                (com.salesforce.hyperdb.grpc.QueryResultPartBinary) result_,
                getParentForChildren(),
                isClean());
        result_ = null;
      }
      resultCase_ = 4;
      onChanged();
      return binaryPartBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.salesforce.hyperdb.grpc.QueryResultPartString, com.salesforce.hyperdb.grpc.QueryResultPartString.Builder, com.salesforce.hyperdb.grpc.QueryResultPartStringOrBuilder> stringPartBuilder_;
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 5;
     * @return Whether the stringPart field is set.
     */
    @java.lang.Override
    public boolean hasStringPart() {
      return resultCase_ == 5;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 5;
     * @return The stringPart.
     */
    @java.lang.Override
    public com.salesforce.hyperdb.grpc.QueryResultPartString getStringPart() {
      if (stringPartBuilder_ == null) {
        if (resultCase_ == 5) {
          return (com.salesforce.hyperdb.grpc.QueryResultPartString) result_;
        }
        return com.salesforce.hyperdb.grpc.QueryResultPartString.getDefaultInstance();
      } else {
        if (resultCase_ == 5) {
          return stringPartBuilder_.getMessage();
        }
        return com.salesforce.hyperdb.grpc.QueryResultPartString.getDefaultInstance();
      }
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 5;
     */
    public Builder setStringPart(com.salesforce.hyperdb.grpc.QueryResultPartString value) {
      if (stringPartBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        result_ = value;
        onChanged();
      } else {
        stringPartBuilder_.setMessage(value);
      }
      resultCase_ = 5;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 5;
     */
    public Builder setStringPart(
        com.salesforce.hyperdb.grpc.QueryResultPartString.Builder builderForValue) {
      if (stringPartBuilder_ == null) {
        result_ = builderForValue.build();
        onChanged();
      } else {
        stringPartBuilder_.setMessage(builderForValue.build());
      }
      resultCase_ = 5;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 5;
     */
    public Builder mergeStringPart(com.salesforce.hyperdb.grpc.QueryResultPartString value) {
      if (stringPartBuilder_ == null) {
        if (resultCase_ == 5 &&
            result_ != com.salesforce.hyperdb.grpc.QueryResultPartString.getDefaultInstance()) {
          result_ = com.salesforce.hyperdb.grpc.QueryResultPartString.newBuilder((com.salesforce.hyperdb.grpc.QueryResultPartString) result_)
              .mergeFrom(value).buildPartial();
        } else {
          result_ = value;
        }
        onChanged();
      } else {
        if (resultCase_ == 5) {
          stringPartBuilder_.mergeFrom(value);
        } else {
          stringPartBuilder_.setMessage(value);
        }
      }
      resultCase_ = 5;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 5;
     */
    public Builder clearStringPart() {
      if (stringPartBuilder_ == null) {
        if (resultCase_ == 5) {
          resultCase_ = 0;
          result_ = null;
          onChanged();
        }
      } else {
        if (resultCase_ == 5) {
          resultCase_ = 0;
          result_ = null;
        }
        stringPartBuilder_.clear();
      }
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 5;
     */
    public com.salesforce.hyperdb.grpc.QueryResultPartString.Builder getStringPartBuilder() {
      return getStringPartFieldBuilder().getBuilder();
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 5;
     */
    @java.lang.Override
    public com.salesforce.hyperdb.grpc.QueryResultPartStringOrBuilder getStringPartOrBuilder() {
      if ((resultCase_ == 5) && (stringPartBuilder_ != null)) {
        return stringPartBuilder_.getMessageOrBuilder();
      } else {
        if (resultCase_ == 5) {
          return (com.salesforce.hyperdb.grpc.QueryResultPartString) result_;
        }
        return com.salesforce.hyperdb.grpc.QueryResultPartString.getDefaultInstance();
      }
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResultPartString string_part = 5;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.salesforce.hyperdb.grpc.QueryResultPartString, com.salesforce.hyperdb.grpc.QueryResultPartString.Builder, com.salesforce.hyperdb.grpc.QueryResultPartStringOrBuilder> 
        getStringPartFieldBuilder() {
      if (stringPartBuilder_ == null) {
        if (!(resultCase_ == 5)) {
          result_ = com.salesforce.hyperdb.grpc.QueryResultPartString.getDefaultInstance();
        }
        stringPartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.salesforce.hyperdb.grpc.QueryResultPartString, com.salesforce.hyperdb.grpc.QueryResultPartString.Builder, com.salesforce.hyperdb.grpc.QueryResultPartStringOrBuilder>(
                (com.salesforce.hyperdb.grpc.QueryResultPartString) result_,
                getParentForChildren(),
                isClean());
        result_ = null;
      }
      resultCase_ = 5;
      onChanged();
      return stringPartBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.salesforce.hyperdb.grpc.QueryInfo, com.salesforce.hyperdb.grpc.QueryInfo.Builder, com.salesforce.hyperdb.grpc.QueryInfoOrBuilder> queryInfoBuilder_;
    /**
     * .salesforce.hyperdb.grpc.v1.QueryInfo query_info = 6;
     * @return Whether the queryInfo field is set.
     */
    @java.lang.Override
    public boolean hasQueryInfo() {
      return resultCase_ == 6;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryInfo query_info = 6;
     * @return The queryInfo.
     */
    @java.lang.Override
    public com.salesforce.hyperdb.grpc.QueryInfo getQueryInfo() {
      if (queryInfoBuilder_ == null) {
        if (resultCase_ == 6) {
          return (com.salesforce.hyperdb.grpc.QueryInfo) result_;
        }
        return com.salesforce.hyperdb.grpc.QueryInfo.getDefaultInstance();
      } else {
        if (resultCase_ == 6) {
          return queryInfoBuilder_.getMessage();
        }
        return com.salesforce.hyperdb.grpc.QueryInfo.getDefaultInstance();
      }
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryInfo query_info = 6;
     */
    public Builder setQueryInfo(com.salesforce.hyperdb.grpc.QueryInfo value) {
      if (queryInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        result_ = value;
        onChanged();
      } else {
        queryInfoBuilder_.setMessage(value);
      }
      resultCase_ = 6;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryInfo query_info = 6;
     */
    public Builder setQueryInfo(
        com.salesforce.hyperdb.grpc.QueryInfo.Builder builderForValue) {
      if (queryInfoBuilder_ == null) {
        result_ = builderForValue.build();
        onChanged();
      } else {
        queryInfoBuilder_.setMessage(builderForValue.build());
      }
      resultCase_ = 6;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryInfo query_info = 6;
     */
    public Builder mergeQueryInfo(com.salesforce.hyperdb.grpc.QueryInfo value) {
      if (queryInfoBuilder_ == null) {
        if (resultCase_ == 6 &&
            result_ != com.salesforce.hyperdb.grpc.QueryInfo.getDefaultInstance()) {
          result_ = com.salesforce.hyperdb.grpc.QueryInfo.newBuilder((com.salesforce.hyperdb.grpc.QueryInfo) result_)
              .mergeFrom(value).buildPartial();
        } else {
          result_ = value;
        }
        onChanged();
      } else {
        if (resultCase_ == 6) {
          queryInfoBuilder_.mergeFrom(value);
        } else {
          queryInfoBuilder_.setMessage(value);
        }
      }
      resultCase_ = 6;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryInfo query_info = 6;
     */
    public Builder clearQueryInfo() {
      if (queryInfoBuilder_ == null) {
        if (resultCase_ == 6) {
          resultCase_ = 0;
          result_ = null;
          onChanged();
        }
      } else {
        if (resultCase_ == 6) {
          resultCase_ = 0;
          result_ = null;
        }
        queryInfoBuilder_.clear();
      }
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryInfo query_info = 6;
     */
    public com.salesforce.hyperdb.grpc.QueryInfo.Builder getQueryInfoBuilder() {
      return getQueryInfoFieldBuilder().getBuilder();
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryInfo query_info = 6;
     */
    @java.lang.Override
    public com.salesforce.hyperdb.grpc.QueryInfoOrBuilder getQueryInfoOrBuilder() {
      if ((resultCase_ == 6) && (queryInfoBuilder_ != null)) {
        return queryInfoBuilder_.getMessageOrBuilder();
      } else {
        if (resultCase_ == 6) {
          return (com.salesforce.hyperdb.grpc.QueryInfo) result_;
        }
        return com.salesforce.hyperdb.grpc.QueryInfo.getDefaultInstance();
      }
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryInfo query_info = 6;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.salesforce.hyperdb.grpc.QueryInfo, com.salesforce.hyperdb.grpc.QueryInfo.Builder, com.salesforce.hyperdb.grpc.QueryInfoOrBuilder> 
        getQueryInfoFieldBuilder() {
      if (queryInfoBuilder_ == null) {
        if (!(resultCase_ == 6)) {
          result_ = com.salesforce.hyperdb.grpc.QueryInfo.getDefaultInstance();
        }
        queryInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.salesforce.hyperdb.grpc.QueryInfo, com.salesforce.hyperdb.grpc.QueryInfo.Builder, com.salesforce.hyperdb.grpc.QueryInfoOrBuilder>(
                (com.salesforce.hyperdb.grpc.QueryInfo) result_,
                getParentForChildren(),
                isClean());
        result_ = null;
      }
      resultCase_ = 6;
      onChanged();
      return queryInfoBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.salesforce.hyperdb.grpc.QueryResult, com.salesforce.hyperdb.grpc.QueryResult.Builder, com.salesforce.hyperdb.grpc.QueryResultOrBuilder> queryResultBuilder_;
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResult query_result = 7;
     * @return Whether the queryResult field is set.
     */
    @java.lang.Override
    public boolean hasQueryResult() {
      return resultCase_ == 7;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResult query_result = 7;
     * @return The queryResult.
     */
    @java.lang.Override
    public com.salesforce.hyperdb.grpc.QueryResult getQueryResult() {
      if (queryResultBuilder_ == null) {
        if (resultCase_ == 7) {
          return (com.salesforce.hyperdb.grpc.QueryResult) result_;
        }
        return com.salesforce.hyperdb.grpc.QueryResult.getDefaultInstance();
      } else {
        if (resultCase_ == 7) {
          return queryResultBuilder_.getMessage();
        }
        return com.salesforce.hyperdb.grpc.QueryResult.getDefaultInstance();
      }
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResult query_result = 7;
     */
    public Builder setQueryResult(com.salesforce.hyperdb.grpc.QueryResult value) {
      if (queryResultBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        result_ = value;
        onChanged();
      } else {
        queryResultBuilder_.setMessage(value);
      }
      resultCase_ = 7;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResult query_result = 7;
     */
    public Builder setQueryResult(
        com.salesforce.hyperdb.grpc.QueryResult.Builder builderForValue) {
      if (queryResultBuilder_ == null) {
        result_ = builderForValue.build();
        onChanged();
      } else {
        queryResultBuilder_.setMessage(builderForValue.build());
      }
      resultCase_ = 7;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResult query_result = 7;
     */
    public Builder mergeQueryResult(com.salesforce.hyperdb.grpc.QueryResult value) {
      if (queryResultBuilder_ == null) {
        if (resultCase_ == 7 &&
            result_ != com.salesforce.hyperdb.grpc.QueryResult.getDefaultInstance()) {
          result_ = com.salesforce.hyperdb.grpc.QueryResult.newBuilder((com.salesforce.hyperdb.grpc.QueryResult) result_)
              .mergeFrom(value).buildPartial();
        } else {
          result_ = value;
        }
        onChanged();
      } else {
        if (resultCase_ == 7) {
          queryResultBuilder_.mergeFrom(value);
        } else {
          queryResultBuilder_.setMessage(value);
        }
      }
      resultCase_ = 7;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResult query_result = 7;
     */
    public Builder clearQueryResult() {
      if (queryResultBuilder_ == null) {
        if (resultCase_ == 7) {
          resultCase_ = 0;
          result_ = null;
          onChanged();
        }
      } else {
        if (resultCase_ == 7) {
          resultCase_ = 0;
          result_ = null;
        }
        queryResultBuilder_.clear();
      }
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResult query_result = 7;
     */
    public com.salesforce.hyperdb.grpc.QueryResult.Builder getQueryResultBuilder() {
      return getQueryResultFieldBuilder().getBuilder();
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResult query_result = 7;
     */
    @java.lang.Override
    public com.salesforce.hyperdb.grpc.QueryResultOrBuilder getQueryResultOrBuilder() {
      if ((resultCase_ == 7) && (queryResultBuilder_ != null)) {
        return queryResultBuilder_.getMessageOrBuilder();
      } else {
        if (resultCase_ == 7) {
          return (com.salesforce.hyperdb.grpc.QueryResult) result_;
        }
        return com.salesforce.hyperdb.grpc.QueryResult.getDefaultInstance();
      }
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryResult query_result = 7;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.salesforce.hyperdb.grpc.QueryResult, com.salesforce.hyperdb.grpc.QueryResult.Builder, com.salesforce.hyperdb.grpc.QueryResultOrBuilder> 
        getQueryResultFieldBuilder() {
      if (queryResultBuilder_ == null) {
        if (!(resultCase_ == 7)) {
          result_ = com.salesforce.hyperdb.grpc.QueryResult.getDefaultInstance();
        }
        queryResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.salesforce.hyperdb.grpc.QueryResult, com.salesforce.hyperdb.grpc.QueryResult.Builder, com.salesforce.hyperdb.grpc.QueryResultOrBuilder>(
                (com.salesforce.hyperdb.grpc.QueryResult) result_,
                getParentForChildren(),
                isClean());
        result_ = null;
      }
      resultCase_ = 7;
      onChanged();
      return queryResultBuilder_;
    }

    private boolean optional_ ;
    /**
     * bool optional = 9;
     * @return The optional.
     */
    @java.lang.Override
    public boolean getOptional() {
      return optional_;
    }
    /**
     * bool optional = 9;
     * @param value The optional to set.
     * @return This builder for chaining.
     */
    public Builder setOptional(boolean value) {

      optional_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * bool optional = 9;
     * @return This builder for chaining.
     */
    public Builder clearOptional() {
      bitField0_ = (bitField0_ & ~0x00000020);
      optional_ = false;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:salesforce.hyperdb.grpc.v1.ExecuteQueryResponse)
  }

  // @@protoc_insertion_point(class_scope:salesforce.hyperdb.grpc.v1.ExecuteQueryResponse)
  private static final com.salesforce.hyperdb.grpc.ExecuteQueryResponse DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.salesforce.hyperdb.grpc.ExecuteQueryResponse();
  }

  public static com.salesforce.hyperdb.grpc.ExecuteQueryResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public ExecuteQueryResponse 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 com.salesforce.hyperdb.grpc.ExecuteQueryResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy