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

com.salesforce.hyperdb.grpc.QueryResultParam 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.QueryResultParam}
 */
public final class QueryResultParam extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:salesforce.hyperdb.grpc.v1.QueryResultParam)
    QueryResultParamOrBuilder {
private static final long serialVersionUID = 0L;
  // Use QueryResultParam.newBuilder() to construct.
  private QueryResultParam(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private QueryResultParam() {
    queryId_ = "";
    outputFormat_ = 0;
  }

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

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

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

  private int requestedDataCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object requestedData_;
  public enum RequestedDataCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    CHUNK_ID(3),
    ROW_RANGE(5),
    REQUESTEDDATA_NOT_SET(0);
    private final int value;
    private RequestedDataCase(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 RequestedDataCase valueOf(int value) {
      return forNumber(value);
    }

    public static RequestedDataCase forNumber(int value) {
      switch (value) {
        case 3: return CHUNK_ID;
        case 5: return ROW_RANGE;
        case 0: return REQUESTEDDATA_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public RequestedDataCase
  getRequestedDataCase() {
    return RequestedDataCase.forNumber(
        requestedDataCase_);
  }

  public static final int QUERY_ID_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object queryId_ = "";
  /**
   * string query_id = 1;
   * @return The queryId.
   */
  @java.lang.Override
  public java.lang.String getQueryId() {
    java.lang.Object ref = queryId_;
    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();
      queryId_ = s;
      return s;
    }
  }
  /**
   * string query_id = 1;
   * @return The bytes for queryId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getQueryIdBytes() {
    java.lang.Object ref = queryId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      queryId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OUTPUT_FORMAT_FIELD_NUMBER = 2;
  private int outputFormat_ = 0;
  /**
   * .salesforce.hyperdb.grpc.v1.OutputFormat output_format = 2;
   * @return The enum numeric value on the wire for outputFormat.
   */
  @java.lang.Override public int getOutputFormatValue() {
    return outputFormat_;
  }
  /**
   * .salesforce.hyperdb.grpc.v1.OutputFormat output_format = 2;
   * @return The outputFormat.
   */
  @java.lang.Override public com.salesforce.hyperdb.grpc.OutputFormat getOutputFormat() {
    com.salesforce.hyperdb.grpc.OutputFormat result = com.salesforce.hyperdb.grpc.OutputFormat.forNumber(outputFormat_);
    return result == null ? com.salesforce.hyperdb.grpc.OutputFormat.UNRECOGNIZED : result;
  }

  public static final int CHUNK_ID_FIELD_NUMBER = 3;
  /**
   * uint64 chunk_id = 3;
   * @return Whether the chunkId field is set.
   */
  @java.lang.Override
  public boolean hasChunkId() {
    return requestedDataCase_ == 3;
  }
  /**
   * uint64 chunk_id = 3;
   * @return The chunkId.
   */
  @java.lang.Override
  public long getChunkId() {
    if (requestedDataCase_ == 3) {
      return (java.lang.Long) requestedData_;
    }
    return 0L;
  }

  public static final int ROW_RANGE_FIELD_NUMBER = 5;
  /**
   * .salesforce.hyperdb.grpc.v1.RowRange row_range = 5;
   * @return Whether the rowRange field is set.
   */
  @java.lang.Override
  public boolean hasRowRange() {
    return requestedDataCase_ == 5;
  }
  /**
   * .salesforce.hyperdb.grpc.v1.RowRange row_range = 5;
   * @return The rowRange.
   */
  @java.lang.Override
  public com.salesforce.hyperdb.grpc.RowRange getRowRange() {
    if (requestedDataCase_ == 5) {
       return (com.salesforce.hyperdb.grpc.RowRange) requestedData_;
    }
    return com.salesforce.hyperdb.grpc.RowRange.getDefaultInstance();
  }
  /**
   * .salesforce.hyperdb.grpc.v1.RowRange row_range = 5;
   */
  @java.lang.Override
  public com.salesforce.hyperdb.grpc.RowRangeOrBuilder getRowRangeOrBuilder() {
    if (requestedDataCase_ == 5) {
       return (com.salesforce.hyperdb.grpc.RowRange) requestedData_;
    }
    return com.salesforce.hyperdb.grpc.RowRange.getDefaultInstance();
  }

  public static final int OMIT_SCHEMA_FIELD_NUMBER = 4;
  private boolean omitSchema_ = false;
  /**
   * bool omit_schema = 4;
   * @return The omitSchema.
   */
  @java.lang.Override
  public boolean getOmitSchema() {
    return omitSchema_;
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryId_);
    }
    if (outputFormat_ != com.salesforce.hyperdb.grpc.OutputFormat.TEXT_DEBUG.getNumber()) {
      output.writeEnum(2, outputFormat_);
    }
    if (requestedDataCase_ == 3) {
      output.writeUInt64(
          3, (long)((java.lang.Long) requestedData_));
    }
    if (omitSchema_ != false) {
      output.writeBool(4, omitSchema_);
    }
    if (requestedDataCase_ == 5) {
      output.writeMessage(5, (com.salesforce.hyperdb.grpc.RowRange) requestedData_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryId_);
    }
    if (outputFormat_ != com.salesforce.hyperdb.grpc.OutputFormat.TEXT_DEBUG.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(2, outputFormat_);
    }
    if (requestedDataCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(
            3, (long)((java.lang.Long) requestedData_));
    }
    if (omitSchema_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(4, omitSchema_);
    }
    if (requestedDataCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, (com.salesforce.hyperdb.grpc.RowRange) requestedData_);
    }
    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.QueryResultParam)) {
      return super.equals(obj);
    }
    com.salesforce.hyperdb.grpc.QueryResultParam other = (com.salesforce.hyperdb.grpc.QueryResultParam) obj;

    if (!getQueryId()
        .equals(other.getQueryId())) return false;
    if (outputFormat_ != other.outputFormat_) return false;
    if (getOmitSchema()
        != other.getOmitSchema()) return false;
    if (!getRequestedDataCase().equals(other.getRequestedDataCase())) return false;
    switch (requestedDataCase_) {
      case 3:
        if (getChunkId()
            != other.getChunkId()) return false;
        break;
      case 5:
        if (!getRowRange()
            .equals(other.getRowRange())) 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) + QUERY_ID_FIELD_NUMBER;
    hash = (53 * hash) + getQueryId().hashCode();
    hash = (37 * hash) + OUTPUT_FORMAT_FIELD_NUMBER;
    hash = (53 * hash) + outputFormat_;
    hash = (37 * hash) + OMIT_SCHEMA_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getOmitSchema());
    switch (requestedDataCase_) {
      case 3:
        hash = (37 * hash) + CHUNK_ID_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getChunkId());
        break;
      case 5:
        hash = (37 * hash) + ROW_RANGE_FIELD_NUMBER;
        hash = (53 * hash) + getRowRange().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.salesforce.hyperdb.grpc.QueryResultParam 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.QueryResultParam parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.salesforce.hyperdb.grpc.QueryResultParam 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.QueryResultParam 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.QueryResultParam}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:salesforce.hyperdb.grpc.v1.QueryResultParam)
      com.salesforce.hyperdb.grpc.QueryResultParamOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.internal_static_salesforce_hyperdb_grpc_v1_QueryResultParam_descriptor;
    }

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

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

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      queryId_ = "";
      outputFormat_ = 0;
      if (rowRangeBuilder_ != null) {
        rowRangeBuilder_.clear();
      }
      omitSchema_ = false;
      requestedDataCase_ = 0;
      requestedData_ = 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_QueryResultParam_descriptor;
    }

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

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

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

    private void buildPartial0(com.salesforce.hyperdb.grpc.QueryResultParam result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.queryId_ = queryId_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.outputFormat_ = outputFormat_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.omitSchema_ = omitSchema_;
      }
    }

    private void buildPartialOneofs(com.salesforce.hyperdb.grpc.QueryResultParam result) {
      result.requestedDataCase_ = requestedDataCase_;
      result.requestedData_ = this.requestedData_;
      if (requestedDataCase_ == 5 &&
          rowRangeBuilder_ != null) {
        result.requestedData_ = rowRangeBuilder_.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.QueryResultParam) {
        return mergeFrom((com.salesforce.hyperdb.grpc.QueryResultParam)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.salesforce.hyperdb.grpc.QueryResultParam other) {
      if (other == com.salesforce.hyperdb.grpc.QueryResultParam.getDefaultInstance()) return this;
      if (!other.getQueryId().isEmpty()) {
        queryId_ = other.queryId_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (other.outputFormat_ != 0) {
        setOutputFormatValue(other.getOutputFormatValue());
      }
      if (other.getOmitSchema() != false) {
        setOmitSchema(other.getOmitSchema());
      }
      switch (other.getRequestedDataCase()) {
        case CHUNK_ID: {
          setChunkId(other.getChunkId());
          break;
        }
        case ROW_RANGE: {
          mergeRowRange(other.getRowRange());
          break;
        }
        case REQUESTEDDATA_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: {
              queryId_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 16: {
              outputFormat_ = input.readEnum();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 24: {
              requestedData_ = input.readUInt64();
              requestedDataCase_ = 3;
              break;
            } // case 24
            case 32: {
              omitSchema_ = input.readBool();
              bitField0_ |= 0x00000010;
              break;
            } // case 32
            case 42: {
              input.readMessage(
                  getRowRangeFieldBuilder().getBuilder(),
                  extensionRegistry);
              requestedDataCase_ = 5;
              break;
            } // case 42
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int requestedDataCase_ = 0;
    private java.lang.Object requestedData_;
    public RequestedDataCase
        getRequestedDataCase() {
      return RequestedDataCase.forNumber(
          requestedDataCase_);
    }

    public Builder clearRequestedData() {
      requestedDataCase_ = 0;
      requestedData_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private java.lang.Object queryId_ = "";
    /**
     * string query_id = 1;
     * @return The queryId.
     */
    public java.lang.String getQueryId() {
      java.lang.Object ref = queryId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        queryId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string query_id = 1;
     * @return The bytes for queryId.
     */
    public com.google.protobuf.ByteString
        getQueryIdBytes() {
      java.lang.Object ref = queryId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        queryId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string query_id = 1;
     * @param value The queryId to set.
     * @return This builder for chaining.
     */
    public Builder setQueryId(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      queryId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * string query_id = 1;
     * @return This builder for chaining.
     */
    public Builder clearQueryId() {
      queryId_ = getDefaultInstance().getQueryId();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * string query_id = 1;
     * @param value The bytes for queryId to set.
     * @return This builder for chaining.
     */
    public Builder setQueryIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      queryId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private int outputFormat_ = 0;
    /**
     * .salesforce.hyperdb.grpc.v1.OutputFormat output_format = 2;
     * @return The enum numeric value on the wire for outputFormat.
     */
    @java.lang.Override public int getOutputFormatValue() {
      return outputFormat_;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.OutputFormat output_format = 2;
     * @param value The enum numeric value on the wire for outputFormat to set.
     * @return This builder for chaining.
     */
    public Builder setOutputFormatValue(int value) {
      outputFormat_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.OutputFormat output_format = 2;
     * @return The outputFormat.
     */
    @java.lang.Override
    public com.salesforce.hyperdb.grpc.OutputFormat getOutputFormat() {
      com.salesforce.hyperdb.grpc.OutputFormat result = com.salesforce.hyperdb.grpc.OutputFormat.forNumber(outputFormat_);
      return result == null ? com.salesforce.hyperdb.grpc.OutputFormat.UNRECOGNIZED : result;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.OutputFormat output_format = 2;
     * @param value The outputFormat to set.
     * @return This builder for chaining.
     */
    public Builder setOutputFormat(com.salesforce.hyperdb.grpc.OutputFormat value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000002;
      outputFormat_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.OutputFormat output_format = 2;
     * @return This builder for chaining.
     */
    public Builder clearOutputFormat() {
      bitField0_ = (bitField0_ & ~0x00000002);
      outputFormat_ = 0;
      onChanged();
      return this;
    }

    /**
     * uint64 chunk_id = 3;
     * @return Whether the chunkId field is set.
     */
    public boolean hasChunkId() {
      return requestedDataCase_ == 3;
    }
    /**
     * uint64 chunk_id = 3;
     * @return The chunkId.
     */
    public long getChunkId() {
      if (requestedDataCase_ == 3) {
        return (java.lang.Long) requestedData_;
      }
      return 0L;
    }
    /**
     * uint64 chunk_id = 3;
     * @param value The chunkId to set.
     * @return This builder for chaining.
     */
    public Builder setChunkId(long value) {

      requestedDataCase_ = 3;
      requestedData_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 chunk_id = 3;
     * @return This builder for chaining.
     */
    public Builder clearChunkId() {
      if (requestedDataCase_ == 3) {
        requestedDataCase_ = 0;
        requestedData_ = null;
        onChanged();
      }
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.salesforce.hyperdb.grpc.RowRange, com.salesforce.hyperdb.grpc.RowRange.Builder, com.salesforce.hyperdb.grpc.RowRangeOrBuilder> rowRangeBuilder_;
    /**
     * .salesforce.hyperdb.grpc.v1.RowRange row_range = 5;
     * @return Whether the rowRange field is set.
     */
    @java.lang.Override
    public boolean hasRowRange() {
      return requestedDataCase_ == 5;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.RowRange row_range = 5;
     * @return The rowRange.
     */
    @java.lang.Override
    public com.salesforce.hyperdb.grpc.RowRange getRowRange() {
      if (rowRangeBuilder_ == null) {
        if (requestedDataCase_ == 5) {
          return (com.salesforce.hyperdb.grpc.RowRange) requestedData_;
        }
        return com.salesforce.hyperdb.grpc.RowRange.getDefaultInstance();
      } else {
        if (requestedDataCase_ == 5) {
          return rowRangeBuilder_.getMessage();
        }
        return com.salesforce.hyperdb.grpc.RowRange.getDefaultInstance();
      }
    }
    /**
     * .salesforce.hyperdb.grpc.v1.RowRange row_range = 5;
     */
    public Builder setRowRange(com.salesforce.hyperdb.grpc.RowRange value) {
      if (rowRangeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        requestedData_ = value;
        onChanged();
      } else {
        rowRangeBuilder_.setMessage(value);
      }
      requestedDataCase_ = 5;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.RowRange row_range = 5;
     */
    public Builder setRowRange(
        com.salesforce.hyperdb.grpc.RowRange.Builder builderForValue) {
      if (rowRangeBuilder_ == null) {
        requestedData_ = builderForValue.build();
        onChanged();
      } else {
        rowRangeBuilder_.setMessage(builderForValue.build());
      }
      requestedDataCase_ = 5;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.RowRange row_range = 5;
     */
    public Builder mergeRowRange(com.salesforce.hyperdb.grpc.RowRange value) {
      if (rowRangeBuilder_ == null) {
        if (requestedDataCase_ == 5 &&
            requestedData_ != com.salesforce.hyperdb.grpc.RowRange.getDefaultInstance()) {
          requestedData_ = com.salesforce.hyperdb.grpc.RowRange.newBuilder((com.salesforce.hyperdb.grpc.RowRange) requestedData_)
              .mergeFrom(value).buildPartial();
        } else {
          requestedData_ = value;
        }
        onChanged();
      } else {
        if (requestedDataCase_ == 5) {
          rowRangeBuilder_.mergeFrom(value);
        } else {
          rowRangeBuilder_.setMessage(value);
        }
      }
      requestedDataCase_ = 5;
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.RowRange row_range = 5;
     */
    public Builder clearRowRange() {
      if (rowRangeBuilder_ == null) {
        if (requestedDataCase_ == 5) {
          requestedDataCase_ = 0;
          requestedData_ = null;
          onChanged();
        }
      } else {
        if (requestedDataCase_ == 5) {
          requestedDataCase_ = 0;
          requestedData_ = null;
        }
        rowRangeBuilder_.clear();
      }
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.RowRange row_range = 5;
     */
    public com.salesforce.hyperdb.grpc.RowRange.Builder getRowRangeBuilder() {
      return getRowRangeFieldBuilder().getBuilder();
    }
    /**
     * .salesforce.hyperdb.grpc.v1.RowRange row_range = 5;
     */
    @java.lang.Override
    public com.salesforce.hyperdb.grpc.RowRangeOrBuilder getRowRangeOrBuilder() {
      if ((requestedDataCase_ == 5) && (rowRangeBuilder_ != null)) {
        return rowRangeBuilder_.getMessageOrBuilder();
      } else {
        if (requestedDataCase_ == 5) {
          return (com.salesforce.hyperdb.grpc.RowRange) requestedData_;
        }
        return com.salesforce.hyperdb.grpc.RowRange.getDefaultInstance();
      }
    }
    /**
     * .salesforce.hyperdb.grpc.v1.RowRange row_range = 5;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.salesforce.hyperdb.grpc.RowRange, com.salesforce.hyperdb.grpc.RowRange.Builder, com.salesforce.hyperdb.grpc.RowRangeOrBuilder> 
        getRowRangeFieldBuilder() {
      if (rowRangeBuilder_ == null) {
        if (!(requestedDataCase_ == 5)) {
          requestedData_ = com.salesforce.hyperdb.grpc.RowRange.getDefaultInstance();
        }
        rowRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.salesforce.hyperdb.grpc.RowRange, com.salesforce.hyperdb.grpc.RowRange.Builder, com.salesforce.hyperdb.grpc.RowRangeOrBuilder>(
                (com.salesforce.hyperdb.grpc.RowRange) requestedData_,
                getParentForChildren(),
                isClean());
        requestedData_ = null;
      }
      requestedDataCase_ = 5;
      onChanged();
      return rowRangeBuilder_;
    }

    private boolean omitSchema_ ;
    /**
     * bool omit_schema = 4;
     * @return The omitSchema.
     */
    @java.lang.Override
    public boolean getOmitSchema() {
      return omitSchema_;
    }
    /**
     * bool omit_schema = 4;
     * @param value The omitSchema to set.
     * @return This builder for chaining.
     */
    public Builder setOmitSchema(boolean value) {

      omitSchema_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * bool omit_schema = 4;
     * @return This builder for chaining.
     */
    public Builder clearOmitSchema() {
      bitField0_ = (bitField0_ & ~0x00000010);
      omitSchema_ = 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.QueryResultParam)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy