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

com.vesoft.nebula.proto.graph.Summary 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.Summary}
 */
public final class Summary extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:nebula.proto.graph.Summary)
    SummaryOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Summary.newBuilder() to construct.
  private Summary(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Summary() {
    explainType_ = com.google.protobuf.ByteString.EMPTY;
  }

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

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

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

  private int bitField0_;
  public static final int ELAPSED_TIME_FIELD_NUMBER = 1;
  private com.vesoft.nebula.proto.graph.ElapsedTime elapsedTime_;
  /**
   * .nebula.proto.graph.ElapsedTime elapsed_time = 1;
   * @return Whether the elapsedTime field is set.
   */
  @java.lang.Override
  public boolean hasElapsedTime() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .nebula.proto.graph.ElapsedTime elapsed_time = 1;
   * @return The elapsedTime.
   */
  @java.lang.Override
  public com.vesoft.nebula.proto.graph.ElapsedTime getElapsedTime() {
    return elapsedTime_ == null ? com.vesoft.nebula.proto.graph.ElapsedTime.getDefaultInstance() : elapsedTime_;
  }
  /**
   * .nebula.proto.graph.ElapsedTime elapsed_time = 1;
   */
  @java.lang.Override
  public com.vesoft.nebula.proto.graph.ElapsedTimeOrBuilder getElapsedTimeOrBuilder() {
    return elapsedTime_ == null ? com.vesoft.nebula.proto.graph.ElapsedTime.getDefaultInstance() : elapsedTime_;
  }

  public static final int EXPLAIN_TYPE_FIELD_NUMBER = 2;
  private com.google.protobuf.ByteString explainType_ = com.google.protobuf.ByteString.EMPTY;
  /**
   * bytes explain_type = 2;
   * @return The explainType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getExplainType() {
    return explainType_;
  }

  public static final int PLAN_INFO_FIELD_NUMBER = 3;
  private com.vesoft.nebula.proto.graph.PlanInfo planInfo_;
  /**
   * .nebula.proto.graph.PlanInfo plan_info = 3;
   * @return Whether the planInfo field is set.
   */
  @java.lang.Override
  public boolean hasPlanInfo() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * .nebula.proto.graph.PlanInfo plan_info = 3;
   * @return The planInfo.
   */
  @java.lang.Override
  public com.vesoft.nebula.proto.graph.PlanInfo getPlanInfo() {
    return planInfo_ == null ? com.vesoft.nebula.proto.graph.PlanInfo.getDefaultInstance() : planInfo_;
  }
  /**
   * .nebula.proto.graph.PlanInfo plan_info = 3;
   */
  @java.lang.Override
  public com.vesoft.nebula.proto.graph.PlanInfoOrBuilder getPlanInfoOrBuilder() {
    return planInfo_ == null ? com.vesoft.nebula.proto.graph.PlanInfo.getDefaultInstance() : planInfo_;
  }

  public static final int QUERY_STATS_FIELD_NUMBER = 4;
  private com.vesoft.nebula.proto.graph.QueryStats queryStats_;
  /**
   * .nebula.proto.graph.QueryStats query_stats = 4;
   * @return Whether the queryStats field is set.
   */
  @java.lang.Override
  public boolean hasQueryStats() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * .nebula.proto.graph.QueryStats query_stats = 4;
   * @return The queryStats.
   */
  @java.lang.Override
  public com.vesoft.nebula.proto.graph.QueryStats getQueryStats() {
    return queryStats_ == null ? com.vesoft.nebula.proto.graph.QueryStats.getDefaultInstance() : queryStats_;
  }
  /**
   * .nebula.proto.graph.QueryStats query_stats = 4;
   */
  @java.lang.Override
  public com.vesoft.nebula.proto.graph.QueryStatsOrBuilder getQueryStatsOrBuilder() {
    return queryStats_ == null ? com.vesoft.nebula.proto.graph.QueryStats.getDefaultInstance() : queryStats_;
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getElapsedTime());
    }
    if (!explainType_.isEmpty()) {
      output.writeBytes(2, explainType_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(3, getPlanInfo());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(4, getQueryStats());
    }
    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, getElapsedTime());
    }
    if (!explainType_.isEmpty()) {
      size += com.google.protobuf.CodedOutputStream
        .computeBytesSize(2, explainType_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getPlanInfo());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getQueryStats());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.vesoft.nebula.proto.graph.Summary)) {
      return super.equals(obj);
    }
    com.vesoft.nebula.proto.graph.Summary other = (com.vesoft.nebula.proto.graph.Summary) obj;

    if (hasElapsedTime() != other.hasElapsedTime()) return false;
    if (hasElapsedTime()) {
      if (!getElapsedTime()
          .equals(other.getElapsedTime())) return false;
    }
    if (!getExplainType()
        .equals(other.getExplainType())) return false;
    if (hasPlanInfo() != other.hasPlanInfo()) return false;
    if (hasPlanInfo()) {
      if (!getPlanInfo()
          .equals(other.getPlanInfo())) return false;
    }
    if (hasQueryStats() != other.hasQueryStats()) return false;
    if (hasQueryStats()) {
      if (!getQueryStats()
          .equals(other.getQueryStats())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasElapsedTime()) {
      hash = (37 * hash) + ELAPSED_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getElapsedTime().hashCode();
    }
    hash = (37 * hash) + EXPLAIN_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getExplainType().hashCode();
    if (hasPlanInfo()) {
      hash = (37 * hash) + PLAN_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getPlanInfo().hashCode();
    }
    if (hasQueryStats()) {
      hash = (37 * hash) + QUERY_STATS_FIELD_NUMBER;
      hash = (53 * hash) + getQueryStats().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.vesoft.nebula.proto.graph.Summary 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.Summary 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.Summary 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.Summary 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.Summary}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:nebula.proto.graph.Summary)
      com.vesoft.nebula.proto.graph.SummaryOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_Summary_descriptor;
    }

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getElapsedTimeFieldBuilder();
        getPlanInfoFieldBuilder();
        getQueryStatsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      elapsedTime_ = null;
      if (elapsedTimeBuilder_ != null) {
        elapsedTimeBuilder_.dispose();
        elapsedTimeBuilder_ = null;
      }
      explainType_ = com.google.protobuf.ByteString.EMPTY;
      planInfo_ = null;
      if (planInfoBuilder_ != null) {
        planInfoBuilder_.dispose();
        planInfoBuilder_ = null;
      }
      queryStats_ = null;
      if (queryStatsBuilder_ != null) {
        queryStatsBuilder_.dispose();
        queryStatsBuilder_ = null;
      }
      return this;
    }

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

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

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

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

    private void buildPartial0(com.vesoft.nebula.proto.graph.Summary result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.elapsedTime_ = elapsedTimeBuilder_ == null
            ? elapsedTime_
            : elapsedTimeBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.explainType_ = explainType_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.planInfo_ = planInfoBuilder_ == null
            ? planInfo_
            : planInfoBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.queryStats_ = queryStatsBuilder_ == null
            ? queryStats_
            : queryStatsBuilder_.build();
        to_bitField0_ |= 0x00000004;
      }
      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.Summary) {
        return mergeFrom((com.vesoft.nebula.proto.graph.Summary)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.vesoft.nebula.proto.graph.Summary other) {
      if (other == com.vesoft.nebula.proto.graph.Summary.getDefaultInstance()) return this;
      if (other.hasElapsedTime()) {
        mergeElapsedTime(other.getElapsedTime());
      }
      if (other.getExplainType() != com.google.protobuf.ByteString.EMPTY) {
        setExplainType(other.getExplainType());
      }
      if (other.hasPlanInfo()) {
        mergePlanInfo(other.getPlanInfo());
      }
      if (other.hasQueryStats()) {
        mergeQueryStats(other.getQueryStats());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              input.readMessage(
                  getElapsedTimeFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              explainType_ = input.readBytes();
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 26: {
              input.readMessage(
                  getPlanInfoFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 34: {
              input.readMessage(
                  getQueryStatsFieldBuilder().getBuilder(),
                  extensionRegistry);
              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.graph.ElapsedTime elapsedTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.vesoft.nebula.proto.graph.ElapsedTime, com.vesoft.nebula.proto.graph.ElapsedTime.Builder, com.vesoft.nebula.proto.graph.ElapsedTimeOrBuilder> elapsedTimeBuilder_;
    /**
     * .nebula.proto.graph.ElapsedTime elapsed_time = 1;
     * @return Whether the elapsedTime field is set.
     */
    public boolean hasElapsedTime() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .nebula.proto.graph.ElapsedTime elapsed_time = 1;
     * @return The elapsedTime.
     */
    public com.vesoft.nebula.proto.graph.ElapsedTime getElapsedTime() {
      if (elapsedTimeBuilder_ == null) {
        return elapsedTime_ == null ? com.vesoft.nebula.proto.graph.ElapsedTime.getDefaultInstance() : elapsedTime_;
      } else {
        return elapsedTimeBuilder_.getMessage();
      }
    }
    /**
     * .nebula.proto.graph.ElapsedTime elapsed_time = 1;
     */
    public Builder setElapsedTime(com.vesoft.nebula.proto.graph.ElapsedTime value) {
      if (elapsedTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        elapsedTime_ = value;
      } else {
        elapsedTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.ElapsedTime elapsed_time = 1;
     */
    public Builder setElapsedTime(
        com.vesoft.nebula.proto.graph.ElapsedTime.Builder builderForValue) {
      if (elapsedTimeBuilder_ == null) {
        elapsedTime_ = builderForValue.build();
      } else {
        elapsedTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.ElapsedTime elapsed_time = 1;
     */
    public Builder mergeElapsedTime(com.vesoft.nebula.proto.graph.ElapsedTime value) {
      if (elapsedTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          elapsedTime_ != null &&
          elapsedTime_ != com.vesoft.nebula.proto.graph.ElapsedTime.getDefaultInstance()) {
          getElapsedTimeBuilder().mergeFrom(value);
        } else {
          elapsedTime_ = value;
        }
      } else {
        elapsedTimeBuilder_.mergeFrom(value);
      }
      if (elapsedTime_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * .nebula.proto.graph.ElapsedTime elapsed_time = 1;
     */
    public Builder clearElapsedTime() {
      bitField0_ = (bitField0_ & ~0x00000001);
      elapsedTime_ = null;
      if (elapsedTimeBuilder_ != null) {
        elapsedTimeBuilder_.dispose();
        elapsedTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.ElapsedTime elapsed_time = 1;
     */
    public com.vesoft.nebula.proto.graph.ElapsedTime.Builder getElapsedTimeBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getElapsedTimeFieldBuilder().getBuilder();
    }
    /**
     * .nebula.proto.graph.ElapsedTime elapsed_time = 1;
     */
    public com.vesoft.nebula.proto.graph.ElapsedTimeOrBuilder getElapsedTimeOrBuilder() {
      if (elapsedTimeBuilder_ != null) {
        return elapsedTimeBuilder_.getMessageOrBuilder();
      } else {
        return elapsedTime_ == null ?
            com.vesoft.nebula.proto.graph.ElapsedTime.getDefaultInstance() : elapsedTime_;
      }
    }
    /**
     * .nebula.proto.graph.ElapsedTime elapsed_time = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.vesoft.nebula.proto.graph.ElapsedTime, com.vesoft.nebula.proto.graph.ElapsedTime.Builder, com.vesoft.nebula.proto.graph.ElapsedTimeOrBuilder> 
        getElapsedTimeFieldBuilder() {
      if (elapsedTimeBuilder_ == null) {
        elapsedTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.vesoft.nebula.proto.graph.ElapsedTime, com.vesoft.nebula.proto.graph.ElapsedTime.Builder, com.vesoft.nebula.proto.graph.ElapsedTimeOrBuilder>(
                getElapsedTime(),
                getParentForChildren(),
                isClean());
        elapsedTime_ = null;
      }
      return elapsedTimeBuilder_;
    }

    private com.google.protobuf.ByteString explainType_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes explain_type = 2;
     * @return The explainType.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getExplainType() {
      return explainType_;
    }
    /**
     * bytes explain_type = 2;
     * @param value The explainType to set.
     * @return This builder for chaining.
     */
    public Builder setExplainType(com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      explainType_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * bytes explain_type = 2;
     * @return This builder for chaining.
     */
    public Builder clearExplainType() {
      bitField0_ = (bitField0_ & ~0x00000002);
      explainType_ = getDefaultInstance().getExplainType();
      onChanged();
      return this;
    }

    private com.vesoft.nebula.proto.graph.PlanInfo planInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.vesoft.nebula.proto.graph.PlanInfo, com.vesoft.nebula.proto.graph.PlanInfo.Builder, com.vesoft.nebula.proto.graph.PlanInfoOrBuilder> planInfoBuilder_;
    /**
     * .nebula.proto.graph.PlanInfo plan_info = 3;
     * @return Whether the planInfo field is set.
     */
    public boolean hasPlanInfo() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * .nebula.proto.graph.PlanInfo plan_info = 3;
     * @return The planInfo.
     */
    public com.vesoft.nebula.proto.graph.PlanInfo getPlanInfo() {
      if (planInfoBuilder_ == null) {
        return planInfo_ == null ? com.vesoft.nebula.proto.graph.PlanInfo.getDefaultInstance() : planInfo_;
      } else {
        return planInfoBuilder_.getMessage();
      }
    }
    /**
     * .nebula.proto.graph.PlanInfo plan_info = 3;
     */
    public Builder setPlanInfo(com.vesoft.nebula.proto.graph.PlanInfo value) {
      if (planInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        planInfo_ = value;
      } else {
        planInfoBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.PlanInfo plan_info = 3;
     */
    public Builder setPlanInfo(
        com.vesoft.nebula.proto.graph.PlanInfo.Builder builderForValue) {
      if (planInfoBuilder_ == null) {
        planInfo_ = builderForValue.build();
      } else {
        planInfoBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.PlanInfo plan_info = 3;
     */
    public Builder mergePlanInfo(com.vesoft.nebula.proto.graph.PlanInfo value) {
      if (planInfoBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0) &&
          planInfo_ != null &&
          planInfo_ != com.vesoft.nebula.proto.graph.PlanInfo.getDefaultInstance()) {
          getPlanInfoBuilder().mergeFrom(value);
        } else {
          planInfo_ = value;
        }
      } else {
        planInfoBuilder_.mergeFrom(value);
      }
      if (planInfo_ != null) {
        bitField0_ |= 0x00000004;
        onChanged();
      }
      return this;
    }
    /**
     * .nebula.proto.graph.PlanInfo plan_info = 3;
     */
    public Builder clearPlanInfo() {
      bitField0_ = (bitField0_ & ~0x00000004);
      planInfo_ = null;
      if (planInfoBuilder_ != null) {
        planInfoBuilder_.dispose();
        planInfoBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.PlanInfo plan_info = 3;
     */
    public com.vesoft.nebula.proto.graph.PlanInfo.Builder getPlanInfoBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getPlanInfoFieldBuilder().getBuilder();
    }
    /**
     * .nebula.proto.graph.PlanInfo plan_info = 3;
     */
    public com.vesoft.nebula.proto.graph.PlanInfoOrBuilder getPlanInfoOrBuilder() {
      if (planInfoBuilder_ != null) {
        return planInfoBuilder_.getMessageOrBuilder();
      } else {
        return planInfo_ == null ?
            com.vesoft.nebula.proto.graph.PlanInfo.getDefaultInstance() : planInfo_;
      }
    }
    /**
     * .nebula.proto.graph.PlanInfo plan_info = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.vesoft.nebula.proto.graph.PlanInfo, com.vesoft.nebula.proto.graph.PlanInfo.Builder, com.vesoft.nebula.proto.graph.PlanInfoOrBuilder> 
        getPlanInfoFieldBuilder() {
      if (planInfoBuilder_ == null) {
        planInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.vesoft.nebula.proto.graph.PlanInfo, com.vesoft.nebula.proto.graph.PlanInfo.Builder, com.vesoft.nebula.proto.graph.PlanInfoOrBuilder>(
                getPlanInfo(),
                getParentForChildren(),
                isClean());
        planInfo_ = null;
      }
      return planInfoBuilder_;
    }

    private com.vesoft.nebula.proto.graph.QueryStats queryStats_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.vesoft.nebula.proto.graph.QueryStats, com.vesoft.nebula.proto.graph.QueryStats.Builder, com.vesoft.nebula.proto.graph.QueryStatsOrBuilder> queryStatsBuilder_;
    /**
     * .nebula.proto.graph.QueryStats query_stats = 4;
     * @return Whether the queryStats field is set.
     */
    public boolean hasQueryStats() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * .nebula.proto.graph.QueryStats query_stats = 4;
     * @return The queryStats.
     */
    public com.vesoft.nebula.proto.graph.QueryStats getQueryStats() {
      if (queryStatsBuilder_ == null) {
        return queryStats_ == null ? com.vesoft.nebula.proto.graph.QueryStats.getDefaultInstance() : queryStats_;
      } else {
        return queryStatsBuilder_.getMessage();
      }
    }
    /**
     * .nebula.proto.graph.QueryStats query_stats = 4;
     */
    public Builder setQueryStats(com.vesoft.nebula.proto.graph.QueryStats value) {
      if (queryStatsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        queryStats_ = value;
      } else {
        queryStatsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.QueryStats query_stats = 4;
     */
    public Builder setQueryStats(
        com.vesoft.nebula.proto.graph.QueryStats.Builder builderForValue) {
      if (queryStatsBuilder_ == null) {
        queryStats_ = builderForValue.build();
      } else {
        queryStatsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.QueryStats query_stats = 4;
     */
    public Builder mergeQueryStats(com.vesoft.nebula.proto.graph.QueryStats value) {
      if (queryStatsBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0) &&
          queryStats_ != null &&
          queryStats_ != com.vesoft.nebula.proto.graph.QueryStats.getDefaultInstance()) {
          getQueryStatsBuilder().mergeFrom(value);
        } else {
          queryStats_ = value;
        }
      } else {
        queryStatsBuilder_.mergeFrom(value);
      }
      if (queryStats_ != null) {
        bitField0_ |= 0x00000008;
        onChanged();
      }
      return this;
    }
    /**
     * .nebula.proto.graph.QueryStats query_stats = 4;
     */
    public Builder clearQueryStats() {
      bitField0_ = (bitField0_ & ~0x00000008);
      queryStats_ = null;
      if (queryStatsBuilder_ != null) {
        queryStatsBuilder_.dispose();
        queryStatsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.graph.QueryStats query_stats = 4;
     */
    public com.vesoft.nebula.proto.graph.QueryStats.Builder getQueryStatsBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getQueryStatsFieldBuilder().getBuilder();
    }
    /**
     * .nebula.proto.graph.QueryStats query_stats = 4;
     */
    public com.vesoft.nebula.proto.graph.QueryStatsOrBuilder getQueryStatsOrBuilder() {
      if (queryStatsBuilder_ != null) {
        return queryStatsBuilder_.getMessageOrBuilder();
      } else {
        return queryStats_ == null ?
            com.vesoft.nebula.proto.graph.QueryStats.getDefaultInstance() : queryStats_;
      }
    }
    /**
     * .nebula.proto.graph.QueryStats query_stats = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.vesoft.nebula.proto.graph.QueryStats, com.vesoft.nebula.proto.graph.QueryStats.Builder, com.vesoft.nebula.proto.graph.QueryStatsOrBuilder> 
        getQueryStatsFieldBuilder() {
      if (queryStatsBuilder_ == null) {
        queryStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.vesoft.nebula.proto.graph.QueryStats, com.vesoft.nebula.proto.graph.QueryStats.Builder, com.vesoft.nebula.proto.graph.QueryStatsOrBuilder>(
                getQueryStats(),
                getParentForChildren(),
                isClean());
        queryStats_ = null;
      }
      return queryStatsBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:nebula.proto.graph.Summary)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy