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

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

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

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

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

  /**
   * Protobuf enum {@code salesforce.hyperdb.grpc.v1.QueryStatus.CompletionStatus}
   */
  public enum CompletionStatus
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * RUNNING = 0;
     */
    RUNNING(0),
    /**
     * RESULTS_PRODUCED = 1;
     */
    RESULTS_PRODUCED(1),
    /**
     * FINISHED = 2;
     */
    FINISHED(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * RUNNING = 0;
     */
    public static final int RUNNING_VALUE = 0;
    /**
     * RESULTS_PRODUCED = 1;
     */
    public static final int RESULTS_PRODUCED_VALUE = 1;
    /**
     * FINISHED = 2;
     */
    public static final int FINISHED_VALUE = 2;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static CompletionStatus 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 CompletionStatus forNumber(int value) {
      switch (value) {
        case 0: return RUNNING;
        case 1: return RESULTS_PRODUCED;
        case 2: return FINISHED;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        CompletionStatus> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public CompletionStatus findValueByNumber(int number) {
              return CompletionStatus.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 com.salesforce.hyperdb.grpc.QueryStatus.getDescriptor().getEnumTypes().get(0);
    }

    private static final CompletionStatus[] VALUES = values();

    public static CompletionStatus 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 CompletionStatus(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:salesforce.hyperdb.grpc.v1.QueryStatus.CompletionStatus)
  }

  private int bitField0_;
  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 COMPLETION_STATUS_FIELD_NUMBER = 2;
  private int completionStatus_ = 0;
  /**
   * .salesforce.hyperdb.grpc.v1.QueryStatus.CompletionStatus completion_status = 2;
   * @return The enum numeric value on the wire for completionStatus.
   */
  @java.lang.Override public int getCompletionStatusValue() {
    return completionStatus_;
  }
  /**
   * .salesforce.hyperdb.grpc.v1.QueryStatus.CompletionStatus completion_status = 2;
   * @return The completionStatus.
   */
  @java.lang.Override public com.salesforce.hyperdb.grpc.QueryStatus.CompletionStatus getCompletionStatus() {
    com.salesforce.hyperdb.grpc.QueryStatus.CompletionStatus result = com.salesforce.hyperdb.grpc.QueryStatus.CompletionStatus.forNumber(completionStatus_);
    return result == null ? com.salesforce.hyperdb.grpc.QueryStatus.CompletionStatus.UNRECOGNIZED : result;
  }

  public static final int CHUNK_COUNT_FIELD_NUMBER = 3;
  private long chunkCount_ = 0L;
  /**
   * uint64 chunk_count = 3;
   * @return The chunkCount.
   */
  @java.lang.Override
  public long getChunkCount() {
    return chunkCount_;
  }

  public static final int ROW_COUNT_FIELD_NUMBER = 4;
  private long rowCount_ = 0L;
  /**
   * uint64 row_count = 4;
   * @return The rowCount.
   */
  @java.lang.Override
  public long getRowCount() {
    return rowCount_;
  }

  public static final int PROGRESS_FIELD_NUMBER = 5;
  private double progress_ = 0D;
  /**
   * double progress = 5;
   * @return The progress.
   */
  @java.lang.Override
  public double getProgress() {
    return progress_;
  }

  public static final int EXPIRATION_TIME_FIELD_NUMBER = 6;
  private com.google.protobuf.Timestamp expirationTime_;
  /**
   * .google.protobuf.Timestamp expiration_time = 6;
   * @return Whether the expirationTime field is set.
   */
  @java.lang.Override
  public boolean hasExpirationTime() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .google.protobuf.Timestamp expiration_time = 6;
   * @return The expirationTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getExpirationTime() {
    return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_;
  }
  /**
   * .google.protobuf.Timestamp expiration_time = 6;
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() {
    return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_;
  }

  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 (completionStatus_ != com.salesforce.hyperdb.grpc.QueryStatus.CompletionStatus.RUNNING.getNumber()) {
      output.writeEnum(2, completionStatus_);
    }
    if (chunkCount_ != 0L) {
      output.writeUInt64(3, chunkCount_);
    }
    if (rowCount_ != 0L) {
      output.writeUInt64(4, rowCount_);
    }
    if (java.lang.Double.doubleToRawLongBits(progress_) != 0) {
      output.writeDouble(5, progress_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(6, getExpirationTime());
    }
    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 (completionStatus_ != com.salesforce.hyperdb.grpc.QueryStatus.CompletionStatus.RUNNING.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(2, completionStatus_);
    }
    if (chunkCount_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(3, chunkCount_);
    }
    if (rowCount_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(4, rowCount_);
    }
    if (java.lang.Double.doubleToRawLongBits(progress_) != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(5, progress_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, getExpirationTime());
    }
    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.QueryStatus)) {
      return super.equals(obj);
    }
    com.salesforce.hyperdb.grpc.QueryStatus other = (com.salesforce.hyperdb.grpc.QueryStatus) obj;

    if (!getQueryId()
        .equals(other.getQueryId())) return false;
    if (completionStatus_ != other.completionStatus_) return false;
    if (getChunkCount()
        != other.getChunkCount()) return false;
    if (getRowCount()
        != other.getRowCount()) return false;
    if (java.lang.Double.doubleToLongBits(getProgress())
        != java.lang.Double.doubleToLongBits(
            other.getProgress())) return false;
    if (hasExpirationTime() != other.hasExpirationTime()) return false;
    if (hasExpirationTime()) {
      if (!getExpirationTime()
          .equals(other.getExpirationTime())) 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) + QUERY_ID_FIELD_NUMBER;
    hash = (53 * hash) + getQueryId().hashCode();
    hash = (37 * hash) + COMPLETION_STATUS_FIELD_NUMBER;
    hash = (53 * hash) + completionStatus_;
    hash = (37 * hash) + CHUNK_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getChunkCount());
    hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getRowCount());
    hash = (37 * hash) + PROGRESS_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getProgress()));
    if (hasExpirationTime()) {
      hash = (37 * hash) + EXPIRATION_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getExpirationTime().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    // Construct using com.salesforce.hyperdb.grpc.QueryStatus.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getExpirationTimeFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      queryId_ = "";
      completionStatus_ = 0;
      chunkCount_ = 0L;
      rowCount_ = 0L;
      progress_ = 0D;
      expirationTime_ = null;
      if (expirationTimeBuilder_ != null) {
        expirationTimeBuilder_.dispose();
        expirationTimeBuilder_ = 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_QueryStatus_descriptor;
    }

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

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

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

    private void buildPartial0(com.salesforce.hyperdb.grpc.QueryStatus result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.queryId_ = queryId_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.completionStatus_ = completionStatus_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.chunkCount_ = chunkCount_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.rowCount_ = rowCount_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.progress_ = progress_;
      }
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.expirationTime_ = expirationTimeBuilder_ == null
            ? expirationTime_
            : expirationTimeBuilder_.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 com.salesforce.hyperdb.grpc.QueryStatus) {
        return mergeFrom((com.salesforce.hyperdb.grpc.QueryStatus)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.salesforce.hyperdb.grpc.QueryStatus other) {
      if (other == com.salesforce.hyperdb.grpc.QueryStatus.getDefaultInstance()) return this;
      if (!other.getQueryId().isEmpty()) {
        queryId_ = other.queryId_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (other.completionStatus_ != 0) {
        setCompletionStatusValue(other.getCompletionStatusValue());
      }
      if (other.getChunkCount() != 0L) {
        setChunkCount(other.getChunkCount());
      }
      if (other.getRowCount() != 0L) {
        setRowCount(other.getRowCount());
      }
      if (other.getProgress() != 0D) {
        setProgress(other.getProgress());
      }
      if (other.hasExpirationTime()) {
        mergeExpirationTime(other.getExpirationTime());
      }
      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: {
              completionStatus_ = input.readEnum();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 24: {
              chunkCount_ = input.readUInt64();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            case 32: {
              rowCount_ = input.readUInt64();
              bitField0_ |= 0x00000008;
              break;
            } // case 32
            case 41: {
              progress_ = input.readDouble();
              bitField0_ |= 0x00000010;
              break;
            } // case 41
            case 50: {
              input.readMessage(
                  getExpirationTimeFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000020;
              break;
            } // case 50
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private java.lang.Object 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 completionStatus_ = 0;
    /**
     * .salesforce.hyperdb.grpc.v1.QueryStatus.CompletionStatus completion_status = 2;
     * @return The enum numeric value on the wire for completionStatus.
     */
    @java.lang.Override public int getCompletionStatusValue() {
      return completionStatus_;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryStatus.CompletionStatus completion_status = 2;
     * @param value The enum numeric value on the wire for completionStatus to set.
     * @return This builder for chaining.
     */
    public Builder setCompletionStatusValue(int value) {
      completionStatus_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryStatus.CompletionStatus completion_status = 2;
     * @return The completionStatus.
     */
    @java.lang.Override
    public com.salesforce.hyperdb.grpc.QueryStatus.CompletionStatus getCompletionStatus() {
      com.salesforce.hyperdb.grpc.QueryStatus.CompletionStatus result = com.salesforce.hyperdb.grpc.QueryStatus.CompletionStatus.forNumber(completionStatus_);
      return result == null ? com.salesforce.hyperdb.grpc.QueryStatus.CompletionStatus.UNRECOGNIZED : result;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryStatus.CompletionStatus completion_status = 2;
     * @param value The completionStatus to set.
     * @return This builder for chaining.
     */
    public Builder setCompletionStatus(com.salesforce.hyperdb.grpc.QueryStatus.CompletionStatus value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000002;
      completionStatus_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .salesforce.hyperdb.grpc.v1.QueryStatus.CompletionStatus completion_status = 2;
     * @return This builder for chaining.
     */
    public Builder clearCompletionStatus() {
      bitField0_ = (bitField0_ & ~0x00000002);
      completionStatus_ = 0;
      onChanged();
      return this;
    }

    private long chunkCount_ ;
    /**
     * uint64 chunk_count = 3;
     * @return The chunkCount.
     */
    @java.lang.Override
    public long getChunkCount() {
      return chunkCount_;
    }
    /**
     * uint64 chunk_count = 3;
     * @param value The chunkCount to set.
     * @return This builder for chaining.
     */
    public Builder setChunkCount(long value) {

      chunkCount_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * uint64 chunk_count = 3;
     * @return This builder for chaining.
     */
    public Builder clearChunkCount() {
      bitField0_ = (bitField0_ & ~0x00000004);
      chunkCount_ = 0L;
      onChanged();
      return this;
    }

    private long rowCount_ ;
    /**
     * uint64 row_count = 4;
     * @return The rowCount.
     */
    @java.lang.Override
    public long getRowCount() {
      return rowCount_;
    }
    /**
     * uint64 row_count = 4;
     * @param value The rowCount to set.
     * @return This builder for chaining.
     */
    public Builder setRowCount(long value) {

      rowCount_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * uint64 row_count = 4;
     * @return This builder for chaining.
     */
    public Builder clearRowCount() {
      bitField0_ = (bitField0_ & ~0x00000008);
      rowCount_ = 0L;
      onChanged();
      return this;
    }

    private double progress_ ;
    /**
     * double progress = 5;
     * @return The progress.
     */
    @java.lang.Override
    public double getProgress() {
      return progress_;
    }
    /**
     * double progress = 5;
     * @param value The progress to set.
     * @return This builder for chaining.
     */
    public Builder setProgress(double value) {

      progress_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * double progress = 5;
     * @return This builder for chaining.
     */
    public Builder clearProgress() {
      bitField0_ = (bitField0_ & ~0x00000010);
      progress_ = 0D;
      onChanged();
      return this;
    }

    private com.google.protobuf.Timestamp expirationTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expirationTimeBuilder_;
    /**
     * .google.protobuf.Timestamp expiration_time = 6;
     * @return Whether the expirationTime field is set.
     */
    public boolean hasExpirationTime() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * .google.protobuf.Timestamp expiration_time = 6;
     * @return The expirationTime.
     */
    public com.google.protobuf.Timestamp getExpirationTime() {
      if (expirationTimeBuilder_ == null) {
        return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_;
      } else {
        return expirationTimeBuilder_.getMessage();
      }
    }
    /**
     * .google.protobuf.Timestamp expiration_time = 6;
     */
    public Builder setExpirationTime(com.google.protobuf.Timestamp value) {
      if (expirationTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        expirationTime_ = value;
      } else {
        expirationTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * .google.protobuf.Timestamp expiration_time = 6;
     */
    public Builder setExpirationTime(
        com.google.protobuf.Timestamp.Builder builderForValue) {
      if (expirationTimeBuilder_ == null) {
        expirationTime_ = builderForValue.build();
      } else {
        expirationTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * .google.protobuf.Timestamp expiration_time = 6;
     */
    public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) {
      if (expirationTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000020) != 0) &&
          expirationTime_ != null &&
          expirationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getExpirationTimeBuilder().mergeFrom(value);
        } else {
          expirationTime_ = value;
        }
      } else {
        expirationTimeBuilder_.mergeFrom(value);
      }
      if (expirationTime_ != null) {
        bitField0_ |= 0x00000020;
        onChanged();
      }
      return this;
    }
    /**
     * .google.protobuf.Timestamp expiration_time = 6;
     */
    public Builder clearExpirationTime() {
      bitField0_ = (bitField0_ & ~0x00000020);
      expirationTime_ = null;
      if (expirationTimeBuilder_ != null) {
        expirationTimeBuilder_.dispose();
        expirationTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .google.protobuf.Timestamp expiration_time = 6;
     */
    public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder() {
      bitField0_ |= 0x00000020;
      onChanged();
      return getExpirationTimeFieldBuilder().getBuilder();
    }
    /**
     * .google.protobuf.Timestamp expiration_time = 6;
     */
    public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() {
      if (expirationTimeBuilder_ != null) {
        return expirationTimeBuilder_.getMessageOrBuilder();
      } else {
        return expirationTime_ == null ?
            com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_;
      }
    }
    /**
     * .google.protobuf.Timestamp expiration_time = 6;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
        getExpirationTimeFieldBuilder() {
      if (expirationTimeBuilder_ == null) {
        expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                getExpirationTime(),
                getParentForChildren(),
                isClean());
        expirationTime_ = null;
      }
      return expirationTimeBuilder_;
    }
    @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.QueryStatus)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy