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

io.milvus.grpc.CheckHealthResponse Maven / Gradle / Ivy

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

package io.milvus.grpc;

/**
 * Protobuf type {@code milvus.proto.milvus.CheckHealthResponse}
 */
public final class CheckHealthResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:milvus.proto.milvus.CheckHealthResponse)
    CheckHealthResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CheckHealthResponse.newBuilder() to construct.
  private CheckHealthResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private CheckHealthResponse() {
    reasons_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    quotaStates_ = java.util.Collections.emptyList();
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_CheckHealthResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_CheckHealthResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.milvus.grpc.CheckHealthResponse.class, io.milvus.grpc.CheckHealthResponse.Builder.class);
  }

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

  public static final int ISHEALTHY_FIELD_NUMBER = 2;
  private boolean isHealthy_ = false;
  /**
   * bool isHealthy = 2;
   * @return The isHealthy.
   */
  @java.lang.Override
  public boolean getIsHealthy() {
    return isHealthy_;
  }

  public static final int REASONS_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringArrayList reasons_ =
      com.google.protobuf.LazyStringArrayList.emptyList();
  /**
   * repeated string reasons = 3;
   * @return A list containing the reasons.
   */
  public com.google.protobuf.ProtocolStringList
      getReasonsList() {
    return reasons_;
  }
  /**
   * repeated string reasons = 3;
   * @return The count of reasons.
   */
  public int getReasonsCount() {
    return reasons_.size();
  }
  /**
   * repeated string reasons = 3;
   * @param index The index of the element to return.
   * @return The reasons at the given index.
   */
  public java.lang.String getReasons(int index) {
    return reasons_.get(index);
  }
  /**
   * repeated string reasons = 3;
   * @param index The index of the value to return.
   * @return The bytes of the reasons at the given index.
   */
  public com.google.protobuf.ByteString
      getReasonsBytes(int index) {
    return reasons_.getByteString(index);
  }

  public static final int QUOTA_STATES_FIELD_NUMBER = 4;
  @SuppressWarnings("serial")
  private java.util.List quotaStates_;
  private static final com.google.protobuf.Internal.ListAdapter.Converter<
      java.lang.Integer, io.milvus.grpc.QuotaState> quotaStates_converter_ =
          new com.google.protobuf.Internal.ListAdapter.Converter<
              java.lang.Integer, io.milvus.grpc.QuotaState>() {
            public io.milvus.grpc.QuotaState convert(java.lang.Integer from) {
              io.milvus.grpc.QuotaState result = io.milvus.grpc.QuotaState.forNumber(from);
              return result == null ? io.milvus.grpc.QuotaState.UNRECOGNIZED : result;
            }
          };
  /**
   * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
   * @return A list containing the quotaStates.
   */
  @java.lang.Override
  public java.util.List getQuotaStatesList() {
    return new com.google.protobuf.Internal.ListAdapter<
        java.lang.Integer, io.milvus.grpc.QuotaState>(quotaStates_, quotaStates_converter_);
  }
  /**
   * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
   * @return The count of quotaStates.
   */
  @java.lang.Override
  public int getQuotaStatesCount() {
    return quotaStates_.size();
  }
  /**
   * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
   * @param index The index of the element to return.
   * @return The quotaStates at the given index.
   */
  @java.lang.Override
  public io.milvus.grpc.QuotaState getQuotaStates(int index) {
    return quotaStates_converter_.convert(quotaStates_.get(index));
  }
  /**
   * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
   * @return A list containing the enum numeric values on the wire for quotaStates.
   */
  @java.lang.Override
  public java.util.List
  getQuotaStatesValueList() {
    return quotaStates_;
  }
  /**
   * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
   * @param index The index of the value to return.
   * @return The enum numeric value on the wire of quotaStates at the given index.
   */
  @java.lang.Override
  public int getQuotaStatesValue(int index) {
    return quotaStates_.get(index);
  }
  private int quotaStatesMemoizedSerializedSize;

  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 {
    getSerializedSize();
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getStatus());
    }
    if (isHealthy_ != false) {
      output.writeBool(2, isHealthy_);
    }
    for (int i = 0; i < reasons_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, reasons_.getRaw(i));
    }
    if (getQuotaStatesList().size() > 0) {
      output.writeUInt32NoTag(34);
      output.writeUInt32NoTag(quotaStatesMemoizedSerializedSize);
    }
    for (int i = 0; i < quotaStates_.size(); i++) {
      output.writeEnumNoTag(quotaStates_.get(i));
    }
    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 (isHealthy_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(2, isHealthy_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < reasons_.size(); i++) {
        dataSize += computeStringSizeNoTag(reasons_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getReasonsList().size();
    }
    {
      int dataSize = 0;
      for (int i = 0; i < quotaStates_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeEnumSizeNoTag(quotaStates_.get(i));
      }
      size += dataSize;
      if (!getQuotaStatesList().isEmpty()) {  size += 1;
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32SizeNoTag(dataSize);
      }quotaStatesMemoizedSerializedSize = dataSize;
    }
    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 io.milvus.grpc.CheckHealthResponse)) {
      return super.equals(obj);
    }
    io.milvus.grpc.CheckHealthResponse other = (io.milvus.grpc.CheckHealthResponse) obj;

    if (hasStatus() != other.hasStatus()) return false;
    if (hasStatus()) {
      if (!getStatus()
          .equals(other.getStatus())) return false;
    }
    if (getIsHealthy()
        != other.getIsHealthy()) return false;
    if (!getReasonsList()
        .equals(other.getReasonsList())) return false;
    if (!quotaStates_.equals(other.quotaStates_)) 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();
    }
    hash = (37 * hash) + ISHEALTHY_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsHealthy());
    if (getReasonsCount() > 0) {
      hash = (37 * hash) + REASONS_FIELD_NUMBER;
      hash = (53 * hash) + getReasonsList().hashCode();
    }
    if (getQuotaStatesCount() > 0) {
      hash = (37 * hash) + QUOTA_STATES_FIELD_NUMBER;
      hash = (53 * hash) + quotaStates_.hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static io.milvus.grpc.CheckHealthResponse 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 io.milvus.grpc.CheckHealthResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.milvus.grpc.CheckHealthResponse 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(io.milvus.grpc.CheckHealthResponse 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 milvus.proto.milvus.CheckHealthResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:milvus.proto.milvus.CheckHealthResponse)
      io.milvus.grpc.CheckHealthResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_CheckHealthResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_CheckHealthResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.milvus.grpc.CheckHealthResponse.class, io.milvus.grpc.CheckHealthResponse.Builder.class);
    }

    // Construct using io.milvus.grpc.CheckHealthResponse.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();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      status_ = null;
      if (statusBuilder_ != null) {
        statusBuilder_.dispose();
        statusBuilder_ = null;
      }
      isHealthy_ = false;
      reasons_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      quotaStates_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000008);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_CheckHealthResponse_descriptor;
    }

    @java.lang.Override
    public io.milvus.grpc.CheckHealthResponse getDefaultInstanceForType() {
      return io.milvus.grpc.CheckHealthResponse.getDefaultInstance();
    }

    @java.lang.Override
    public io.milvus.grpc.CheckHealthResponse build() {
      io.milvus.grpc.CheckHealthResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.milvus.grpc.CheckHealthResponse buildPartial() {
      io.milvus.grpc.CheckHealthResponse result = new io.milvus.grpc.CheckHealthResponse(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(io.milvus.grpc.CheckHealthResponse result) {
      if (((bitField0_ & 0x00000008) != 0)) {
        quotaStates_ = java.util.Collections.unmodifiableList(quotaStates_);
        bitField0_ = (bitField0_ & ~0x00000008);
      }
      result.quotaStates_ = quotaStates_;
    }

    private void buildPartial0(io.milvus.grpc.CheckHealthResponse 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.isHealthy_ = isHealthy_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        reasons_.makeImmutable();
        result.reasons_ = reasons_;
      }
      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 io.milvus.grpc.CheckHealthResponse) {
        return mergeFrom((io.milvus.grpc.CheckHealthResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.milvus.grpc.CheckHealthResponse other) {
      if (other == io.milvus.grpc.CheckHealthResponse.getDefaultInstance()) return this;
      if (other.hasStatus()) {
        mergeStatus(other.getStatus());
      }
      if (other.getIsHealthy() != false) {
        setIsHealthy(other.getIsHealthy());
      }
      if (!other.reasons_.isEmpty()) {
        if (reasons_.isEmpty()) {
          reasons_ = other.reasons_;
          bitField0_ |= 0x00000004;
        } else {
          ensureReasonsIsMutable();
          reasons_.addAll(other.reasons_);
        }
        onChanged();
      }
      if (!other.quotaStates_.isEmpty()) {
        if (quotaStates_.isEmpty()) {
          quotaStates_ = other.quotaStates_;
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          ensureQuotaStatesIsMutable();
          quotaStates_.addAll(other.quotaStates_);
        }
        onChanged();
      }
      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 16: {
              isHealthy_ = input.readBool();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();
              ensureReasonsIsMutable();
              reasons_.add(s);
              break;
            } // case 26
            case 32: {
              int tmpRaw = input.readEnum();
              ensureQuotaStatesIsMutable();
              quotaStates_.add(tmpRaw);
              break;
            } // case 32
            case 34: {
              int length = input.readRawVarint32();
              int oldLimit = input.pushLimit(length);
              while(input.getBytesUntilLimit() > 0) {
                int tmpRaw = input.readEnum();
                ensureQuotaStatesIsMutable();
                quotaStates_.add(tmpRaw);
              }
              input.popLimit(oldLimit);
              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 io.milvus.grpc.Status status_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.Status, io.milvus.grpc.Status.Builder, io.milvus.grpc.StatusOrBuilder> statusBuilder_;
    /**
     * .milvus.proto.common.Status status = 1;
     * @return Whether the status field is set.
     */
    public boolean hasStatus() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .milvus.proto.common.Status status = 1;
     * @return The status.
     */
    public io.milvus.grpc.Status getStatus() {
      if (statusBuilder_ == null) {
        return status_ == null ? io.milvus.grpc.Status.getDefaultInstance() : status_;
      } else {
        return statusBuilder_.getMessage();
      }
    }
    /**
     * .milvus.proto.common.Status status = 1;
     */
    public Builder setStatus(io.milvus.grpc.Status value) {
      if (statusBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        status_ = value;
      } else {
        statusBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .milvus.proto.common.Status status = 1;
     */
    public Builder setStatus(
        io.milvus.grpc.Status.Builder builderForValue) {
      if (statusBuilder_ == null) {
        status_ = builderForValue.build();
      } else {
        statusBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .milvus.proto.common.Status status = 1;
     */
    public Builder mergeStatus(io.milvus.grpc.Status value) {
      if (statusBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          status_ != null &&
          status_ != io.milvus.grpc.Status.getDefaultInstance()) {
          getStatusBuilder().mergeFrom(value);
        } else {
          status_ = value;
        }
      } else {
        statusBuilder_.mergeFrom(value);
      }
      if (status_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * .milvus.proto.common.Status status = 1;
     */
    public Builder clearStatus() {
      bitField0_ = (bitField0_ & ~0x00000001);
      status_ = null;
      if (statusBuilder_ != null) {
        statusBuilder_.dispose();
        statusBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .milvus.proto.common.Status status = 1;
     */
    public io.milvus.grpc.Status.Builder getStatusBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getStatusFieldBuilder().getBuilder();
    }
    /**
     * .milvus.proto.common.Status status = 1;
     */
    public io.milvus.grpc.StatusOrBuilder getStatusOrBuilder() {
      if (statusBuilder_ != null) {
        return statusBuilder_.getMessageOrBuilder();
      } else {
        return status_ == null ?
            io.milvus.grpc.Status.getDefaultInstance() : status_;
      }
    }
    /**
     * .milvus.proto.common.Status status = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.Status, io.milvus.grpc.Status.Builder, io.milvus.grpc.StatusOrBuilder> 
        getStatusFieldBuilder() {
      if (statusBuilder_ == null) {
        statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.milvus.grpc.Status, io.milvus.grpc.Status.Builder, io.milvus.grpc.StatusOrBuilder>(
                getStatus(),
                getParentForChildren(),
                isClean());
        status_ = null;
      }
      return statusBuilder_;
    }

    private boolean isHealthy_ ;
    /**
     * bool isHealthy = 2;
     * @return The isHealthy.
     */
    @java.lang.Override
    public boolean getIsHealthy() {
      return isHealthy_;
    }
    /**
     * bool isHealthy = 2;
     * @param value The isHealthy to set.
     * @return This builder for chaining.
     */
    public Builder setIsHealthy(boolean value) {

      isHealthy_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * bool isHealthy = 2;
     * @return This builder for chaining.
     */
    public Builder clearIsHealthy() {
      bitField0_ = (bitField0_ & ~0x00000002);
      isHealthy_ = false;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringArrayList reasons_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    private void ensureReasonsIsMutable() {
      if (!reasons_.isModifiable()) {
        reasons_ = new com.google.protobuf.LazyStringArrayList(reasons_);
      }
      bitField0_ |= 0x00000004;
    }
    /**
     * repeated string reasons = 3;
     * @return A list containing the reasons.
     */
    public com.google.protobuf.ProtocolStringList
        getReasonsList() {
      reasons_.makeImmutable();
      return reasons_;
    }
    /**
     * repeated string reasons = 3;
     * @return The count of reasons.
     */
    public int getReasonsCount() {
      return reasons_.size();
    }
    /**
     * repeated string reasons = 3;
     * @param index The index of the element to return.
     * @return The reasons at the given index.
     */
    public java.lang.String getReasons(int index) {
      return reasons_.get(index);
    }
    /**
     * repeated string reasons = 3;
     * @param index The index of the value to return.
     * @return The bytes of the reasons at the given index.
     */
    public com.google.protobuf.ByteString
        getReasonsBytes(int index) {
      return reasons_.getByteString(index);
    }
    /**
     * repeated string reasons = 3;
     * @param index The index to set the value at.
     * @param value The reasons to set.
     * @return This builder for chaining.
     */
    public Builder setReasons(
        int index, java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      ensureReasonsIsMutable();
      reasons_.set(index, value);
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * repeated string reasons = 3;
     * @param value The reasons to add.
     * @return This builder for chaining.
     */
    public Builder addReasons(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      ensureReasonsIsMutable();
      reasons_.add(value);
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * repeated string reasons = 3;
     * @param values The reasons to add.
     * @return This builder for chaining.
     */
    public Builder addAllReasons(
        java.lang.Iterable values) {
      ensureReasonsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, reasons_);
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * repeated string reasons = 3;
     * @return This builder for chaining.
     */
    public Builder clearReasons() {
      reasons_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
      bitField0_ = (bitField0_ & ~0x00000004);;
      onChanged();
      return this;
    }
    /**
     * repeated string reasons = 3;
     * @param value The bytes of the reasons to add.
     * @return This builder for chaining.
     */
    public Builder addReasonsBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      ensureReasonsIsMutable();
      reasons_.add(value);
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.util.List quotaStates_ =
      java.util.Collections.emptyList();
    private void ensureQuotaStatesIsMutable() {
      if (!((bitField0_ & 0x00000008) != 0)) {
        quotaStates_ = new java.util.ArrayList(quotaStates_);
        bitField0_ |= 0x00000008;
      }
    }
    /**
     * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
     * @return A list containing the quotaStates.
     */
    public java.util.List getQuotaStatesList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, io.milvus.grpc.QuotaState>(quotaStates_, quotaStates_converter_);
    }
    /**
     * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
     * @return The count of quotaStates.
     */
    public int getQuotaStatesCount() {
      return quotaStates_.size();
    }
    /**
     * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
     * @param index The index of the element to return.
     * @return The quotaStates at the given index.
     */
    public io.milvus.grpc.QuotaState getQuotaStates(int index) {
      return quotaStates_converter_.convert(quotaStates_.get(index));
    }
    /**
     * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
     * @param index The index to set the value at.
     * @param value The quotaStates to set.
     * @return This builder for chaining.
     */
    public Builder setQuotaStates(
        int index, io.milvus.grpc.QuotaState value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureQuotaStatesIsMutable();
      quotaStates_.set(index, value.getNumber());
      onChanged();
      return this;
    }
    /**
     * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
     * @param value The quotaStates to add.
     * @return This builder for chaining.
     */
    public Builder addQuotaStates(io.milvus.grpc.QuotaState value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureQuotaStatesIsMutable();
      quotaStates_.add(value.getNumber());
      onChanged();
      return this;
    }
    /**
     * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
     * @param values The quotaStates to add.
     * @return This builder for chaining.
     */
    public Builder addAllQuotaStates(
        java.lang.Iterable values) {
      ensureQuotaStatesIsMutable();
      for (io.milvus.grpc.QuotaState value : values) {
        quotaStates_.add(value.getNumber());
      }
      onChanged();
      return this;
    }
    /**
     * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
     * @return This builder for chaining.
     */
    public Builder clearQuotaStates() {
      quotaStates_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
     * @return A list containing the enum numeric values on the wire for quotaStates.
     */
    public java.util.List
    getQuotaStatesValueList() {
      return java.util.Collections.unmodifiableList(quotaStates_);
    }
    /**
     * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of quotaStates at the given index.
     */
    public int getQuotaStatesValue(int index) {
      return quotaStates_.get(index);
    }
    /**
     * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
     * @param index The index to set the value at.
     * @param value The enum numeric value on the wire for quotaStates to set.
     * @return This builder for chaining.
     */
    public Builder setQuotaStatesValue(
        int index, int value) {
      ensureQuotaStatesIsMutable();
      quotaStates_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
     * @param value The enum numeric value on the wire for quotaStates to add.
     * @return This builder for chaining.
     */
    public Builder addQuotaStatesValue(int value) {
      ensureQuotaStatesIsMutable();
      quotaStates_.add(value);
      onChanged();
      return this;
    }
    /**
     * repeated .milvus.proto.milvus.QuotaState quota_states = 4;
     * @param values The enum numeric values on the wire for quotaStates to add.
     * @return This builder for chaining.
     */
    public Builder addAllQuotaStatesValue(
        java.lang.Iterable values) {
      ensureQuotaStatesIsMutable();
      for (int value : values) {
        quotaStates_.add(value);
      }
      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:milvus.proto.milvus.CheckHealthResponse)
  }

  // @@protoc_insertion_point(class_scope:milvus.proto.milvus.CheckHealthResponse)
  private static final io.milvus.grpc.CheckHealthResponse DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.milvus.grpc.CheckHealthResponse();
  }

  public static io.milvus.grpc.CheckHealthResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy