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

com.vesoft.nebula.proto.graph.ExecuteResponse Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: graph.proto

// Protobuf Java Version: 3.25.1
package com.vesoft.nebula.proto.graph;

/**
 * Protobuf type {@code nebula.proto.graph.ExecuteResponse}
 */
public final class ExecuteResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:nebula.proto.graph.ExecuteResponse)
    ExecuteResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ExecuteResponse.newBuilder() to construct.
  private ExecuteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ExecuteResponse() {
    cursor_ = com.google.protobuf.ByteString.EMPTY;
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ExecuteResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ExecuteResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.vesoft.nebula.proto.graph.ExecuteResponse.class, com.vesoft.nebula.proto.graph.ExecuteResponse.Builder.class);
  }

  private int bitField0_;
  public static final int STATUS_FIELD_NUMBER = 1;
  private com.vesoft.nebula.proto.common.Status status_;
  /**
   * .nebula.proto.common.Status status = 1;
   * @return Whether the status field is set.
   */
  @java.lang.Override
  public boolean hasStatus() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .nebula.proto.common.Status status = 1;
   * @return The status.
   */
  @java.lang.Override
  public com.vesoft.nebula.proto.common.Status getStatus() {
    return status_ == null ? com.vesoft.nebula.proto.common.Status.getDefaultInstance() : status_;
  }
  /**
   * .nebula.proto.common.Status status = 1;
   */
  @java.lang.Override
  public com.vesoft.nebula.proto.common.StatusOrBuilder getStatusOrBuilder() {
    return status_ == null ? com.vesoft.nebula.proto.common.Status.getDefaultInstance() : status_;
  }

  public static final int RESULT_FIELD_NUMBER = 2;
  private com.vesoft.nebula.proto.graph.ResultTable result_;
  /**
   * .nebula.proto.graph.ResultTable result = 2;
   * @return Whether the result field is set.
   */
  @java.lang.Override
  public boolean hasResult() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * .nebula.proto.graph.ResultTable result = 2;
   * @return The result.
   */
  @java.lang.Override
  public com.vesoft.nebula.proto.graph.ResultTable getResult() {
    return result_ == null ? com.vesoft.nebula.proto.graph.ResultTable.getDefaultInstance() : result_;
  }
  /**
   * .nebula.proto.graph.ResultTable result = 2;
   */
  @java.lang.Override
  public com.vesoft.nebula.proto.graph.ResultTableOrBuilder getResultOrBuilder() {
    return result_ == null ? com.vesoft.nebula.proto.graph.ResultTable.getDefaultInstance() : result_;
  }

  public static final int SUMMARY_FIELD_NUMBER = 3;
  private com.vesoft.nebula.proto.graph.Summary summary_;
  /**
   * .nebula.proto.graph.Summary summary = 3;
   * @return Whether the summary field is set.
   */
  @java.lang.Override
  public boolean hasSummary() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * .nebula.proto.graph.Summary summary = 3;
   * @return The summary.
   */
  @java.lang.Override
  public com.vesoft.nebula.proto.graph.Summary getSummary() {
    return summary_ == null ? com.vesoft.nebula.proto.graph.Summary.getDefaultInstance() : summary_;
  }
  /**
   * .nebula.proto.graph.Summary summary = 3;
   */
  @java.lang.Override
  public com.vesoft.nebula.proto.graph.SummaryOrBuilder getSummaryOrBuilder() {
    return summary_ == null ? com.vesoft.nebula.proto.graph.Summary.getDefaultInstance() : summary_;
  }

  public static final int CURSOR_FIELD_NUMBER = 4;
  private com.google.protobuf.ByteString cursor_ = com.google.protobuf.ByteString.EMPTY;
  /**
   * bytes cursor = 4;
   * @return The cursor.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getCursor() {
    return cursor_;
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getStatus());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(2, getResult());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(3, getSummary());
    }
    if (!cursor_.isEmpty()) {
      output.writeBytes(4, cursor_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getStatus());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getResult());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getSummary());
    }
    if (!cursor_.isEmpty()) {
      size += com.google.protobuf.CodedOutputStream
        .computeBytesSize(4, cursor_);
    }
    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.vesoft.nebula.proto.graph.ExecuteResponse)) {
      return super.equals(obj);
    }
    com.vesoft.nebula.proto.graph.ExecuteResponse other = (com.vesoft.nebula.proto.graph.ExecuteResponse) obj;

    if (hasStatus() != other.hasStatus()) return false;
    if (hasStatus()) {
      if (!getStatus()
          .equals(other.getStatus())) return false;
    }
    if (hasResult() != other.hasResult()) return false;
    if (hasResult()) {
      if (!getResult()
          .equals(other.getResult())) return false;
    }
    if (hasSummary() != other.hasSummary()) return false;
    if (hasSummary()) {
      if (!getSummary()
          .equals(other.getSummary())) return false;
    }
    if (!getCursor()
        .equals(other.getCursor())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasStatus()) {
      hash = (37 * hash) + STATUS_FIELD_NUMBER;
      hash = (53 * hash) + getStatus().hashCode();
    }
    if (hasResult()) {
      hash = (37 * hash) + RESULT_FIELD_NUMBER;
      hash = (53 * hash) + getResult().hashCode();
    }
    if (hasSummary()) {
      hash = (37 * hash) + SUMMARY_FIELD_NUMBER;
      hash = (53 * hash) + getSummary().hashCode();
    }
    hash = (37 * hash) + CURSOR_FIELD_NUMBER;
    hash = (53 * hash) + getCursor().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.vesoft.nebula.proto.graph.ExecuteResponse 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.vesoft.nebula.proto.graph.ExecuteResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.vesoft.nebula.proto.graph.ExecuteResponse 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.vesoft.nebula.proto.graph.ExecuteResponse 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 nebula.proto.graph.ExecuteResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:nebula.proto.graph.ExecuteResponse)
      com.vesoft.nebula.proto.graph.ExecuteResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ExecuteResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ExecuteResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.vesoft.nebula.proto.graph.ExecuteResponse.class, com.vesoft.nebula.proto.graph.ExecuteResponse.Builder.class);
    }

    // Construct using com.vesoft.nebula.proto.graph.ExecuteResponse.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getStatusFieldBuilder();
        getResultFieldBuilder();
        getSummaryFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      status_ = null;
      if (statusBuilder_ != null) {
        statusBuilder_.dispose();
        statusBuilder_ = null;
      }
      result_ = null;
      if (resultBuilder_ != null) {
        resultBuilder_.dispose();
        resultBuilder_ = null;
      }
      summary_ = null;
      if (summaryBuilder_ != null) {
        summaryBuilder_.dispose();
        summaryBuilder_ = null;
      }
      cursor_ = com.google.protobuf.ByteString.EMPTY;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_ExecuteResponse_descriptor;
    }

    @java.lang.Override
    public com.vesoft.nebula.proto.graph.ExecuteResponse getDefaultInstanceForType() {
      return com.vesoft.nebula.proto.graph.ExecuteResponse.getDefaultInstance();
    }

    @java.lang.Override
    public com.vesoft.nebula.proto.graph.ExecuteResponse build() {
      com.vesoft.nebula.proto.graph.ExecuteResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.vesoft.nebula.proto.graph.ExecuteResponse buildPartial() {
      com.vesoft.nebula.proto.graph.ExecuteResponse result = new com.vesoft.nebula.proto.graph.ExecuteResponse(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.vesoft.nebula.proto.graph.ExecuteResponse result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.status_ = statusBuilder_ == null
            ? status_
            : statusBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.result_ = resultBuilder_ == null
            ? result_
            : resultBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.summary_ = summaryBuilder_ == null
            ? summary_
            : summaryBuilder_.build();
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.cursor_ = cursor_;
      }
      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.vesoft.nebula.proto.graph.ExecuteResponse) {
        return mergeFrom((com.vesoft.nebula.proto.graph.ExecuteResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.vesoft.nebula.proto.graph.ExecuteResponse other) {
      if (other == com.vesoft.nebula.proto.graph.ExecuteResponse.getDefaultInstance()) return this;
      if (other.hasStatus()) {
        mergeStatus(other.getStatus());
      }
      if (other.hasResult()) {
        mergeResult(other.getResult());
      }
      if (other.hasSummary()) {
        mergeSummary(other.getSummary());
      }
      if (other.getCursor() != com.google.protobuf.ByteString.EMPTY) {
        setCursor(other.getCursor());
      }
      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(
                  getStatusFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getResultFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 26: {
              input.readMessage(
                  getSummaryFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 34: {
              cursor_ = input.readBytes();
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private com.vesoft.nebula.proto.common.Status status_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.vesoft.nebula.proto.common.Status, com.vesoft.nebula.proto.common.Status.Builder, com.vesoft.nebula.proto.common.StatusOrBuilder> statusBuilder_;
    /**
     * .nebula.proto.common.Status status = 1;
     * @return Whether the status field is set.
     */
    public boolean hasStatus() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .nebula.proto.common.Status status = 1;
     * @return The status.
     */
    public com.vesoft.nebula.proto.common.Status getStatus() {
      if (statusBuilder_ == null) {
        return status_ == null ? com.vesoft.nebula.proto.common.Status.getDefaultInstance() : status_;
      } else {
        return statusBuilder_.getMessage();
      }
    }
    /**
     * .nebula.proto.common.Status status = 1;
     */
    public Builder setStatus(com.vesoft.nebula.proto.common.Status value) {
      if (statusBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        status_ = value;
      } else {
        statusBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.common.Status status = 1;
     */
    public Builder setStatus(
        com.vesoft.nebula.proto.common.Status.Builder builderForValue) {
      if (statusBuilder_ == null) {
        status_ = builderForValue.build();
      } else {
        statusBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.common.Status status = 1;
     */
    public Builder mergeStatus(com.vesoft.nebula.proto.common.Status value) {
      if (statusBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          status_ != null &&
          status_ != com.vesoft.nebula.proto.common.Status.getDefaultInstance()) {
          getStatusBuilder().mergeFrom(value);
        } else {
          status_ = value;
        }
      } else {
        statusBuilder_.mergeFrom(value);
      }
      if (status_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * .nebula.proto.common.Status status = 1;
     */
    public Builder clearStatus() {
      bitField0_ = (bitField0_ & ~0x00000001);
      status_ = null;
      if (statusBuilder_ != null) {
        statusBuilder_.dispose();
        statusBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.common.Status status = 1;
     */
    public com.vesoft.nebula.proto.common.Status.Builder getStatusBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getStatusFieldBuilder().getBuilder();
    }
    /**
     * .nebula.proto.common.Status status = 1;
     */
    public com.vesoft.nebula.proto.common.StatusOrBuilder getStatusOrBuilder() {
      if (statusBuilder_ != null) {
        return statusBuilder_.getMessageOrBuilder();
      } else {
        return status_ == null ?
            com.vesoft.nebula.proto.common.Status.getDefaultInstance() : status_;
      }
    }
    /**
     * .nebula.proto.common.Status status = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.vesoft.nebula.proto.common.Status, com.vesoft.nebula.proto.common.Status.Builder, com.vesoft.nebula.proto.common.StatusOrBuilder> 
        getStatusFieldBuilder() {
      if (statusBuilder_ == null) {
        statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.vesoft.nebula.proto.common.Status, com.vesoft.nebula.proto.common.Status.Builder, com.vesoft.nebula.proto.common.StatusOrBuilder>(
                getStatus(),
                getParentForChildren(),
                isClean());
        status_ = null;
      }
      return statusBuilder_;
    }

    private com.vesoft.nebula.proto.graph.ResultTable result_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.vesoft.nebula.proto.graph.ResultTable, com.vesoft.nebula.proto.graph.ResultTable.Builder, com.vesoft.nebula.proto.graph.ResultTableOrBuilder> resultBuilder_;
    /**
     * .nebula.proto.graph.ResultTable result = 2;
     * @return Whether the result field is set.
     */
    public boolean hasResult() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * .nebula.proto.graph.ResultTable result = 2;
     * @return The result.
     */
    public com.vesoft.nebula.proto.graph.ResultTable getResult() {
      if (resultBuilder_ == null) {
        return result_ == null ? com.vesoft.nebula.proto.graph.ResultTable.getDefaultInstance() : result_;
      } else {
        return resultBuilder_.getMessage();
      }
    }
    /**
     * .nebula.proto.graph.ResultTable result = 2;
     */
    public Builder setResult(com.vesoft.nebula.proto.graph.ResultTable value) {
      if (resultBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        result_ = value;
      } else {
        resultBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.ResultTable result = 2;
     */
    public Builder setResult(
        com.vesoft.nebula.proto.graph.ResultTable.Builder builderForValue) {
      if (resultBuilder_ == null) {
        result_ = builderForValue.build();
      } else {
        resultBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.ResultTable result = 2;
     */
    public Builder mergeResult(com.vesoft.nebula.proto.graph.ResultTable value) {
      if (resultBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
          result_ != null &&
          result_ != com.vesoft.nebula.proto.graph.ResultTable.getDefaultInstance()) {
          getResultBuilder().mergeFrom(value);
        } else {
          result_ = value;
        }
      } else {
        resultBuilder_.mergeFrom(value);
      }
      if (result_ != null) {
        bitField0_ |= 0x00000002;
        onChanged();
      }
      return this;
    }
    /**
     * .nebula.proto.graph.ResultTable result = 2;
     */
    public Builder clearResult() {
      bitField0_ = (bitField0_ & ~0x00000002);
      result_ = null;
      if (resultBuilder_ != null) {
        resultBuilder_.dispose();
        resultBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.ResultTable result = 2;
     */
    public com.vesoft.nebula.proto.graph.ResultTable.Builder getResultBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getResultFieldBuilder().getBuilder();
    }
    /**
     * .nebula.proto.graph.ResultTable result = 2;
     */
    public com.vesoft.nebula.proto.graph.ResultTableOrBuilder getResultOrBuilder() {
      if (resultBuilder_ != null) {
        return resultBuilder_.getMessageOrBuilder();
      } else {
        return result_ == null ?
            com.vesoft.nebula.proto.graph.ResultTable.getDefaultInstance() : result_;
      }
    }
    /**
     * .nebula.proto.graph.ResultTable result = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.vesoft.nebula.proto.graph.ResultTable, com.vesoft.nebula.proto.graph.ResultTable.Builder, com.vesoft.nebula.proto.graph.ResultTableOrBuilder> 
        getResultFieldBuilder() {
      if (resultBuilder_ == null) {
        resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.vesoft.nebula.proto.graph.ResultTable, com.vesoft.nebula.proto.graph.ResultTable.Builder, com.vesoft.nebula.proto.graph.ResultTableOrBuilder>(
                getResult(),
                getParentForChildren(),
                isClean());
        result_ = null;
      }
      return resultBuilder_;
    }

    private com.vesoft.nebula.proto.graph.Summary summary_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.vesoft.nebula.proto.graph.Summary, com.vesoft.nebula.proto.graph.Summary.Builder, com.vesoft.nebula.proto.graph.SummaryOrBuilder> summaryBuilder_;
    /**
     * .nebula.proto.graph.Summary summary = 3;
     * @return Whether the summary field is set.
     */
    public boolean hasSummary() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * .nebula.proto.graph.Summary summary = 3;
     * @return The summary.
     */
    public com.vesoft.nebula.proto.graph.Summary getSummary() {
      if (summaryBuilder_ == null) {
        return summary_ == null ? com.vesoft.nebula.proto.graph.Summary.getDefaultInstance() : summary_;
      } else {
        return summaryBuilder_.getMessage();
      }
    }
    /**
     * .nebula.proto.graph.Summary summary = 3;
     */
    public Builder setSummary(com.vesoft.nebula.proto.graph.Summary value) {
      if (summaryBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        summary_ = value;
      } else {
        summaryBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.Summary summary = 3;
     */
    public Builder setSummary(
        com.vesoft.nebula.proto.graph.Summary.Builder builderForValue) {
      if (summaryBuilder_ == null) {
        summary_ = builderForValue.build();
      } else {
        summaryBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.Summary summary = 3;
     */
    public Builder mergeSummary(com.vesoft.nebula.proto.graph.Summary value) {
      if (summaryBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0) &&
          summary_ != null &&
          summary_ != com.vesoft.nebula.proto.graph.Summary.getDefaultInstance()) {
          getSummaryBuilder().mergeFrom(value);
        } else {
          summary_ = value;
        }
      } else {
        summaryBuilder_.mergeFrom(value);
      }
      if (summary_ != null) {
        bitField0_ |= 0x00000004;
        onChanged();
      }
      return this;
    }
    /**
     * .nebula.proto.graph.Summary summary = 3;
     */
    public Builder clearSummary() {
      bitField0_ = (bitField0_ & ~0x00000004);
      summary_ = null;
      if (summaryBuilder_ != null) {
        summaryBuilder_.dispose();
        summaryBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.Summary summary = 3;
     */
    public com.vesoft.nebula.proto.graph.Summary.Builder getSummaryBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getSummaryFieldBuilder().getBuilder();
    }
    /**
     * .nebula.proto.graph.Summary summary = 3;
     */
    public com.vesoft.nebula.proto.graph.SummaryOrBuilder getSummaryOrBuilder() {
      if (summaryBuilder_ != null) {
        return summaryBuilder_.getMessageOrBuilder();
      } else {
        return summary_ == null ?
            com.vesoft.nebula.proto.graph.Summary.getDefaultInstance() : summary_;
      }
    }
    /**
     * .nebula.proto.graph.Summary summary = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.vesoft.nebula.proto.graph.Summary, com.vesoft.nebula.proto.graph.Summary.Builder, com.vesoft.nebula.proto.graph.SummaryOrBuilder> 
        getSummaryFieldBuilder() {
      if (summaryBuilder_ == null) {
        summaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.vesoft.nebula.proto.graph.Summary, com.vesoft.nebula.proto.graph.Summary.Builder, com.vesoft.nebula.proto.graph.SummaryOrBuilder>(
                getSummary(),
                getParentForChildren(),
                isClean());
        summary_ = null;
      }
      return summaryBuilder_;
    }

    private com.google.protobuf.ByteString cursor_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes cursor = 4;
     * @return The cursor.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getCursor() {
      return cursor_;
    }
    /**
     * bytes cursor = 4;
     * @param value The cursor to set.
     * @return This builder for chaining.
     */
    public Builder setCursor(com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      cursor_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * bytes cursor = 4;
     * @return This builder for chaining.
     */
    public Builder clearCursor() {
      bitField0_ = (bitField0_ & ~0x00000008);
      cursor_ = getDefaultInstance().getCursor();
      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:nebula.proto.graph.ExecuteResponse)
  }

  // @@protoc_insertion_point(class_scope:nebula.proto.graph.ExecuteResponse)
  private static final com.vesoft.nebula.proto.graph.ExecuteResponse DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.vesoft.nebula.proto.graph.ExecuteResponse();
  }

  public static com.vesoft.nebula.proto.graph.ExecuteResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy