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

grpc.vectorindex._SearchAndFetchVectorsRequest Maven / Gradle / Ivy

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

package grpc.vectorindex;

/**
 * Protobuf type {@code vectorindex._SearchAndFetchVectorsRequest}
 */
public final class _SearchAndFetchVectorsRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:vectorindex._SearchAndFetchVectorsRequest)
    _SearchAndFetchVectorsRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use _SearchAndFetchVectorsRequest.newBuilder() to construct.
  private _SearchAndFetchVectorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private _SearchAndFetchVectorsRequest() {
    indexName_ = "";
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return grpc.vectorindex.Vectorindex.internal_static_vectorindex__SearchAndFetchVectorsRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return grpc.vectorindex.Vectorindex.internal_static_vectorindex__SearchAndFetchVectorsRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            grpc.vectorindex._SearchAndFetchVectorsRequest.class, grpc.vectorindex._SearchAndFetchVectorsRequest.Builder.class);
  }

  private int bitField0_;
  private int thresholdCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object threshold_;
  public enum ThresholdCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    SCORE_THRESHOLD(5),
    NO_SCORE_THRESHOLD(6),
    THRESHOLD_NOT_SET(0);
    private final int value;
    private ThresholdCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ThresholdCase valueOf(int value) {
      return forNumber(value);
    }

    public static ThresholdCase forNumber(int value) {
      switch (value) {
        case 5: return SCORE_THRESHOLD;
        case 6: return NO_SCORE_THRESHOLD;
        case 0: return THRESHOLD_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ThresholdCase
  getThresholdCase() {
    return ThresholdCase.forNumber(
        thresholdCase_);
  }

  public static final int INDEX_NAME_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object indexName_ = "";
  /**
   * string index_name = 1;
   * @return The indexName.
   */
  @java.lang.Override
  public java.lang.String getIndexName() {
    java.lang.Object ref = indexName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      indexName_ = s;
      return s;
    }
  }
  /**
   * string index_name = 1;
   * @return The bytes for indexName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getIndexNameBytes() {
    java.lang.Object ref = indexName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      indexName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TOP_K_FIELD_NUMBER = 2;
  private int topK_ = 0;
  /**
   * uint32 top_k = 2;
   * @return The topK.
   */
  @java.lang.Override
  public int getTopK() {
    return topK_;
  }

  public static final int QUERY_VECTOR_FIELD_NUMBER = 3;
  private grpc.vectorindex._Vector queryVector_;
  /**
   * .vectorindex._Vector query_vector = 3;
   * @return Whether the queryVector field is set.
   */
  @java.lang.Override
  public boolean hasQueryVector() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .vectorindex._Vector query_vector = 3;
   * @return The queryVector.
   */
  @java.lang.Override
  public grpc.vectorindex._Vector getQueryVector() {
    return queryVector_ == null ? grpc.vectorindex._Vector.getDefaultInstance() : queryVector_;
  }
  /**
   * .vectorindex._Vector query_vector = 3;
   */
  @java.lang.Override
  public grpc.vectorindex._VectorOrBuilder getQueryVectorOrBuilder() {
    return queryVector_ == null ? grpc.vectorindex._Vector.getDefaultInstance() : queryVector_;
  }

  public static final int METADATA_FIELDS_FIELD_NUMBER = 4;
  private grpc.vectorindex._MetadataRequest metadataFields_;
  /**
   * .vectorindex._MetadataRequest metadata_fields = 4;
   * @return Whether the metadataFields field is set.
   */
  @java.lang.Override
  public boolean hasMetadataFields() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * .vectorindex._MetadataRequest metadata_fields = 4;
   * @return The metadataFields.
   */
  @java.lang.Override
  public grpc.vectorindex._MetadataRequest getMetadataFields() {
    return metadataFields_ == null ? grpc.vectorindex._MetadataRequest.getDefaultInstance() : metadataFields_;
  }
  /**
   * .vectorindex._MetadataRequest metadata_fields = 4;
   */
  @java.lang.Override
  public grpc.vectorindex._MetadataRequestOrBuilder getMetadataFieldsOrBuilder() {
    return metadataFields_ == null ? grpc.vectorindex._MetadataRequest.getDefaultInstance() : metadataFields_;
  }

  public static final int SCORE_THRESHOLD_FIELD_NUMBER = 5;
  /**
   * float score_threshold = 5;
   * @return Whether the scoreThreshold field is set.
   */
  @java.lang.Override
  public boolean hasScoreThreshold() {
    return thresholdCase_ == 5;
  }
  /**
   * float score_threshold = 5;
   * @return The scoreThreshold.
   */
  @java.lang.Override
  public float getScoreThreshold() {
    if (thresholdCase_ == 5) {
      return (java.lang.Float) threshold_;
    }
    return 0F;
  }

  public static final int NO_SCORE_THRESHOLD_FIELD_NUMBER = 6;
  /**
   * .vectorindex._NoScoreThreshold no_score_threshold = 6;
   * @return Whether the noScoreThreshold field is set.
   */
  @java.lang.Override
  public boolean hasNoScoreThreshold() {
    return thresholdCase_ == 6;
  }
  /**
   * .vectorindex._NoScoreThreshold no_score_threshold = 6;
   * @return The noScoreThreshold.
   */
  @java.lang.Override
  public grpc.vectorindex._NoScoreThreshold getNoScoreThreshold() {
    if (thresholdCase_ == 6) {
       return (grpc.vectorindex._NoScoreThreshold) threshold_;
    }
    return grpc.vectorindex._NoScoreThreshold.getDefaultInstance();
  }
  /**
   * .vectorindex._NoScoreThreshold no_score_threshold = 6;
   */
  @java.lang.Override
  public grpc.vectorindex._NoScoreThresholdOrBuilder getNoScoreThresholdOrBuilder() {
    if (thresholdCase_ == 6) {
       return (grpc.vectorindex._NoScoreThreshold) threshold_;
    }
    return grpc.vectorindex._NoScoreThreshold.getDefaultInstance();
  }

  public static final int FILTER_FIELD_NUMBER = 7;
  private grpc.vectorindex._FilterExpression filter_;
  /**
   * .vectorindex._FilterExpression filter = 7;
   * @return Whether the filter field is set.
   */
  @java.lang.Override
  public boolean hasFilter() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * .vectorindex._FilterExpression filter = 7;
   * @return The filter.
   */
  @java.lang.Override
  public grpc.vectorindex._FilterExpression getFilter() {
    return filter_ == null ? grpc.vectorindex._FilterExpression.getDefaultInstance() : filter_;
  }
  /**
   * .vectorindex._FilterExpression filter = 7;
   */
  @java.lang.Override
  public grpc.vectorindex._FilterExpressionOrBuilder getFilterOrBuilder() {
    return filter_ == null ? grpc.vectorindex._FilterExpression.getDefaultInstance() : filter_;
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, indexName_);
    }
    if (topK_ != 0) {
      output.writeUInt32(2, topK_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(3, getQueryVector());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(4, getMetadataFields());
    }
    if (thresholdCase_ == 5) {
      output.writeFloat(
          5, (float)((java.lang.Float) threshold_));
    }
    if (thresholdCase_ == 6) {
      output.writeMessage(6, (grpc.vectorindex._NoScoreThreshold) threshold_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(7, getFilter());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, indexName_);
    }
    if (topK_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(2, topK_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getQueryVector());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getMetadataFields());
    }
    if (thresholdCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeFloatSize(
            5, (float)((java.lang.Float) threshold_));
    }
    if (thresholdCase_ == 6) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, (grpc.vectorindex._NoScoreThreshold) threshold_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, getFilter());
    }
    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 grpc.vectorindex._SearchAndFetchVectorsRequest)) {
      return super.equals(obj);
    }
    grpc.vectorindex._SearchAndFetchVectorsRequest other = (grpc.vectorindex._SearchAndFetchVectorsRequest) obj;

    if (!getIndexName()
        .equals(other.getIndexName())) return false;
    if (getTopK()
        != other.getTopK()) return false;
    if (hasQueryVector() != other.hasQueryVector()) return false;
    if (hasQueryVector()) {
      if (!getQueryVector()
          .equals(other.getQueryVector())) return false;
    }
    if (hasMetadataFields() != other.hasMetadataFields()) return false;
    if (hasMetadataFields()) {
      if (!getMetadataFields()
          .equals(other.getMetadataFields())) return false;
    }
    if (hasFilter() != other.hasFilter()) return false;
    if (hasFilter()) {
      if (!getFilter()
          .equals(other.getFilter())) return false;
    }
    if (!getThresholdCase().equals(other.getThresholdCase())) return false;
    switch (thresholdCase_) {
      case 5:
        if (java.lang.Float.floatToIntBits(getScoreThreshold())
            != java.lang.Float.floatToIntBits(
                other.getScoreThreshold())) return false;
        break;
      case 6:
        if (!getNoScoreThreshold()
            .equals(other.getNoScoreThreshold())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + INDEX_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getIndexName().hashCode();
    hash = (37 * hash) + TOP_K_FIELD_NUMBER;
    hash = (53 * hash) + getTopK();
    if (hasQueryVector()) {
      hash = (37 * hash) + QUERY_VECTOR_FIELD_NUMBER;
      hash = (53 * hash) + getQueryVector().hashCode();
    }
    if (hasMetadataFields()) {
      hash = (37 * hash) + METADATA_FIELDS_FIELD_NUMBER;
      hash = (53 * hash) + getMetadataFields().hashCode();
    }
    if (hasFilter()) {
      hash = (37 * hash) + FILTER_FIELD_NUMBER;
      hash = (53 * hash) + getFilter().hashCode();
    }
    switch (thresholdCase_) {
      case 5:
        hash = (37 * hash) + SCORE_THRESHOLD_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getScoreThreshold());
        break;
      case 6:
        hash = (37 * hash) + NO_SCORE_THRESHOLD_FIELD_NUMBER;
        hash = (53 * hash) + getNoScoreThreshold().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return grpc.vectorindex.Vectorindex.internal_static_vectorindex__SearchAndFetchVectorsRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              grpc.vectorindex._SearchAndFetchVectorsRequest.class, grpc.vectorindex._SearchAndFetchVectorsRequest.Builder.class);
    }

    // Construct using grpc.vectorindex._SearchAndFetchVectorsRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getQueryVectorFieldBuilder();
        getMetadataFieldsFieldBuilder();
        getFilterFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      indexName_ = "";
      topK_ = 0;
      queryVector_ = null;
      if (queryVectorBuilder_ != null) {
        queryVectorBuilder_.dispose();
        queryVectorBuilder_ = null;
      }
      metadataFields_ = null;
      if (metadataFieldsBuilder_ != null) {
        metadataFieldsBuilder_.dispose();
        metadataFieldsBuilder_ = null;
      }
      if (noScoreThresholdBuilder_ != null) {
        noScoreThresholdBuilder_.clear();
      }
      filter_ = null;
      if (filterBuilder_ != null) {
        filterBuilder_.dispose();
        filterBuilder_ = null;
      }
      thresholdCase_ = 0;
      threshold_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return grpc.vectorindex.Vectorindex.internal_static_vectorindex__SearchAndFetchVectorsRequest_descriptor;
    }

    @java.lang.Override
    public grpc.vectorindex._SearchAndFetchVectorsRequest getDefaultInstanceForType() {
      return grpc.vectorindex._SearchAndFetchVectorsRequest.getDefaultInstance();
    }

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

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

    private void buildPartial0(grpc.vectorindex._SearchAndFetchVectorsRequest result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.indexName_ = indexName_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.topK_ = topK_;
      }
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.queryVector_ = queryVectorBuilder_ == null
            ? queryVector_
            : queryVectorBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.metadataFields_ = metadataFieldsBuilder_ == null
            ? metadataFields_
            : metadataFieldsBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.filter_ = filterBuilder_ == null
            ? filter_
            : filterBuilder_.build();
        to_bitField0_ |= 0x00000004;
      }
      result.bitField0_ |= to_bitField0_;
    }

    private void buildPartialOneofs(grpc.vectorindex._SearchAndFetchVectorsRequest result) {
      result.thresholdCase_ = thresholdCase_;
      result.threshold_ = this.threshold_;
      if (thresholdCase_ == 6 &&
          noScoreThresholdBuilder_ != null) {
        result.threshold_ = noScoreThresholdBuilder_.build();
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof grpc.vectorindex._SearchAndFetchVectorsRequest) {
        return mergeFrom((grpc.vectorindex._SearchAndFetchVectorsRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(grpc.vectorindex._SearchAndFetchVectorsRequest other) {
      if (other == grpc.vectorindex._SearchAndFetchVectorsRequest.getDefaultInstance()) return this;
      if (!other.getIndexName().isEmpty()) {
        indexName_ = other.indexName_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (other.getTopK() != 0) {
        setTopK(other.getTopK());
      }
      if (other.hasQueryVector()) {
        mergeQueryVector(other.getQueryVector());
      }
      if (other.hasMetadataFields()) {
        mergeMetadataFields(other.getMetadataFields());
      }
      if (other.hasFilter()) {
        mergeFilter(other.getFilter());
      }
      switch (other.getThresholdCase()) {
        case SCORE_THRESHOLD: {
          setScoreThreshold(other.getScoreThreshold());
          break;
        }
        case NO_SCORE_THRESHOLD: {
          mergeNoScoreThreshold(other.getNoScoreThreshold());
          break;
        }
        case THRESHOLD_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              indexName_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 16: {
              topK_ = input.readUInt32();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 26: {
              input.readMessage(
                  getQueryVectorFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 34: {
              input.readMessage(
                  getMetadataFieldsFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            case 45: {
              threshold_ = input.readFloat();
              thresholdCase_ = 5;
              break;
            } // case 45
            case 50: {
              input.readMessage(
                  getNoScoreThresholdFieldBuilder().getBuilder(),
                  extensionRegistry);
              thresholdCase_ = 6;
              break;
            } // case 50
            case 58: {
              input.readMessage(
                  getFilterFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000040;
              break;
            } // case 58
            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 thresholdCase_ = 0;
    private java.lang.Object threshold_;
    public ThresholdCase
        getThresholdCase() {
      return ThresholdCase.forNumber(
          thresholdCase_);
    }

    public Builder clearThreshold() {
      thresholdCase_ = 0;
      threshold_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private java.lang.Object indexName_ = "";
    /**
     * string index_name = 1;
     * @return The indexName.
     */
    public java.lang.String getIndexName() {
      java.lang.Object ref = indexName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        indexName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string index_name = 1;
     * @return The bytes for indexName.
     */
    public com.google.protobuf.ByteString
        getIndexNameBytes() {
      java.lang.Object ref = indexName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        indexName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string index_name = 1;
     * @param value The indexName to set.
     * @return This builder for chaining.
     */
    public Builder setIndexName(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      indexName_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * string index_name = 1;
     * @return This builder for chaining.
     */
    public Builder clearIndexName() {
      indexName_ = getDefaultInstance().getIndexName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * string index_name = 1;
     * @param value The bytes for indexName to set.
     * @return This builder for chaining.
     */
    public Builder setIndexNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      indexName_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private int topK_ ;
    /**
     * uint32 top_k = 2;
     * @return The topK.
     */
    @java.lang.Override
    public int getTopK() {
      return topK_;
    }
    /**
     * uint32 top_k = 2;
     * @param value The topK to set.
     * @return This builder for chaining.
     */
    public Builder setTopK(int value) {

      topK_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * uint32 top_k = 2;
     * @return This builder for chaining.
     */
    public Builder clearTopK() {
      bitField0_ = (bitField0_ & ~0x00000002);
      topK_ = 0;
      onChanged();
      return this;
    }

    private grpc.vectorindex._Vector queryVector_;
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.vectorindex._Vector, grpc.vectorindex._Vector.Builder, grpc.vectorindex._VectorOrBuilder> queryVectorBuilder_;
    /**
     * .vectorindex._Vector query_vector = 3;
     * @return Whether the queryVector field is set.
     */
    public boolean hasQueryVector() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * .vectorindex._Vector query_vector = 3;
     * @return The queryVector.
     */
    public grpc.vectorindex._Vector getQueryVector() {
      if (queryVectorBuilder_ == null) {
        return queryVector_ == null ? grpc.vectorindex._Vector.getDefaultInstance() : queryVector_;
      } else {
        return queryVectorBuilder_.getMessage();
      }
    }
    /**
     * .vectorindex._Vector query_vector = 3;
     */
    public Builder setQueryVector(grpc.vectorindex._Vector value) {
      if (queryVectorBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        queryVector_ = value;
      } else {
        queryVectorBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * .vectorindex._Vector query_vector = 3;
     */
    public Builder setQueryVector(
        grpc.vectorindex._Vector.Builder builderForValue) {
      if (queryVectorBuilder_ == null) {
        queryVector_ = builderForValue.build();
      } else {
        queryVectorBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * .vectorindex._Vector query_vector = 3;
     */
    public Builder mergeQueryVector(grpc.vectorindex._Vector value) {
      if (queryVectorBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0) &&
          queryVector_ != null &&
          queryVector_ != grpc.vectorindex._Vector.getDefaultInstance()) {
          getQueryVectorBuilder().mergeFrom(value);
        } else {
          queryVector_ = value;
        }
      } else {
        queryVectorBuilder_.mergeFrom(value);
      }
      if (queryVector_ != null) {
        bitField0_ |= 0x00000004;
        onChanged();
      }
      return this;
    }
    /**
     * .vectorindex._Vector query_vector = 3;
     */
    public Builder clearQueryVector() {
      bitField0_ = (bitField0_ & ~0x00000004);
      queryVector_ = null;
      if (queryVectorBuilder_ != null) {
        queryVectorBuilder_.dispose();
        queryVectorBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .vectorindex._Vector query_vector = 3;
     */
    public grpc.vectorindex._Vector.Builder getQueryVectorBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getQueryVectorFieldBuilder().getBuilder();
    }
    /**
     * .vectorindex._Vector query_vector = 3;
     */
    public grpc.vectorindex._VectorOrBuilder getQueryVectorOrBuilder() {
      if (queryVectorBuilder_ != null) {
        return queryVectorBuilder_.getMessageOrBuilder();
      } else {
        return queryVector_ == null ?
            grpc.vectorindex._Vector.getDefaultInstance() : queryVector_;
      }
    }
    /**
     * .vectorindex._Vector query_vector = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.vectorindex._Vector, grpc.vectorindex._Vector.Builder, grpc.vectorindex._VectorOrBuilder> 
        getQueryVectorFieldBuilder() {
      if (queryVectorBuilder_ == null) {
        queryVectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            grpc.vectorindex._Vector, grpc.vectorindex._Vector.Builder, grpc.vectorindex._VectorOrBuilder>(
                getQueryVector(),
                getParentForChildren(),
                isClean());
        queryVector_ = null;
      }
      return queryVectorBuilder_;
    }

    private grpc.vectorindex._MetadataRequest metadataFields_;
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.vectorindex._MetadataRequest, grpc.vectorindex._MetadataRequest.Builder, grpc.vectorindex._MetadataRequestOrBuilder> metadataFieldsBuilder_;
    /**
     * .vectorindex._MetadataRequest metadata_fields = 4;
     * @return Whether the metadataFields field is set.
     */
    public boolean hasMetadataFields() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * .vectorindex._MetadataRequest metadata_fields = 4;
     * @return The metadataFields.
     */
    public grpc.vectorindex._MetadataRequest getMetadataFields() {
      if (metadataFieldsBuilder_ == null) {
        return metadataFields_ == null ? grpc.vectorindex._MetadataRequest.getDefaultInstance() : metadataFields_;
      } else {
        return metadataFieldsBuilder_.getMessage();
      }
    }
    /**
     * .vectorindex._MetadataRequest metadata_fields = 4;
     */
    public Builder setMetadataFields(grpc.vectorindex._MetadataRequest value) {
      if (metadataFieldsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        metadataFields_ = value;
      } else {
        metadataFieldsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * .vectorindex._MetadataRequest metadata_fields = 4;
     */
    public Builder setMetadataFields(
        grpc.vectorindex._MetadataRequest.Builder builderForValue) {
      if (metadataFieldsBuilder_ == null) {
        metadataFields_ = builderForValue.build();
      } else {
        metadataFieldsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * .vectorindex._MetadataRequest metadata_fields = 4;
     */
    public Builder mergeMetadataFields(grpc.vectorindex._MetadataRequest value) {
      if (metadataFieldsBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0) &&
          metadataFields_ != null &&
          metadataFields_ != grpc.vectorindex._MetadataRequest.getDefaultInstance()) {
          getMetadataFieldsBuilder().mergeFrom(value);
        } else {
          metadataFields_ = value;
        }
      } else {
        metadataFieldsBuilder_.mergeFrom(value);
      }
      if (metadataFields_ != null) {
        bitField0_ |= 0x00000008;
        onChanged();
      }
      return this;
    }
    /**
     * .vectorindex._MetadataRequest metadata_fields = 4;
     */
    public Builder clearMetadataFields() {
      bitField0_ = (bitField0_ & ~0x00000008);
      metadataFields_ = null;
      if (metadataFieldsBuilder_ != null) {
        metadataFieldsBuilder_.dispose();
        metadataFieldsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .vectorindex._MetadataRequest metadata_fields = 4;
     */
    public grpc.vectorindex._MetadataRequest.Builder getMetadataFieldsBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getMetadataFieldsFieldBuilder().getBuilder();
    }
    /**
     * .vectorindex._MetadataRequest metadata_fields = 4;
     */
    public grpc.vectorindex._MetadataRequestOrBuilder getMetadataFieldsOrBuilder() {
      if (metadataFieldsBuilder_ != null) {
        return metadataFieldsBuilder_.getMessageOrBuilder();
      } else {
        return metadataFields_ == null ?
            grpc.vectorindex._MetadataRequest.getDefaultInstance() : metadataFields_;
      }
    }
    /**
     * .vectorindex._MetadataRequest metadata_fields = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.vectorindex._MetadataRequest, grpc.vectorindex._MetadataRequest.Builder, grpc.vectorindex._MetadataRequestOrBuilder> 
        getMetadataFieldsFieldBuilder() {
      if (metadataFieldsBuilder_ == null) {
        metadataFieldsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            grpc.vectorindex._MetadataRequest, grpc.vectorindex._MetadataRequest.Builder, grpc.vectorindex._MetadataRequestOrBuilder>(
                getMetadataFields(),
                getParentForChildren(),
                isClean());
        metadataFields_ = null;
      }
      return metadataFieldsBuilder_;
    }

    /**
     * float score_threshold = 5;
     * @return Whether the scoreThreshold field is set.
     */
    public boolean hasScoreThreshold() {
      return thresholdCase_ == 5;
    }
    /**
     * float score_threshold = 5;
     * @return The scoreThreshold.
     */
    public float getScoreThreshold() {
      if (thresholdCase_ == 5) {
        return (java.lang.Float) threshold_;
      }
      return 0F;
    }
    /**
     * float score_threshold = 5;
     * @param value The scoreThreshold to set.
     * @return This builder for chaining.
     */
    public Builder setScoreThreshold(float value) {

      thresholdCase_ = 5;
      threshold_ = value;
      onChanged();
      return this;
    }
    /**
     * float score_threshold = 5;
     * @return This builder for chaining.
     */
    public Builder clearScoreThreshold() {
      if (thresholdCase_ == 5) {
        thresholdCase_ = 0;
        threshold_ = null;
        onChanged();
      }
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.vectorindex._NoScoreThreshold, grpc.vectorindex._NoScoreThreshold.Builder, grpc.vectorindex._NoScoreThresholdOrBuilder> noScoreThresholdBuilder_;
    /**
     * .vectorindex._NoScoreThreshold no_score_threshold = 6;
     * @return Whether the noScoreThreshold field is set.
     */
    @java.lang.Override
    public boolean hasNoScoreThreshold() {
      return thresholdCase_ == 6;
    }
    /**
     * .vectorindex._NoScoreThreshold no_score_threshold = 6;
     * @return The noScoreThreshold.
     */
    @java.lang.Override
    public grpc.vectorindex._NoScoreThreshold getNoScoreThreshold() {
      if (noScoreThresholdBuilder_ == null) {
        if (thresholdCase_ == 6) {
          return (grpc.vectorindex._NoScoreThreshold) threshold_;
        }
        return grpc.vectorindex._NoScoreThreshold.getDefaultInstance();
      } else {
        if (thresholdCase_ == 6) {
          return noScoreThresholdBuilder_.getMessage();
        }
        return grpc.vectorindex._NoScoreThreshold.getDefaultInstance();
      }
    }
    /**
     * .vectorindex._NoScoreThreshold no_score_threshold = 6;
     */
    public Builder setNoScoreThreshold(grpc.vectorindex._NoScoreThreshold value) {
      if (noScoreThresholdBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        threshold_ = value;
        onChanged();
      } else {
        noScoreThresholdBuilder_.setMessage(value);
      }
      thresholdCase_ = 6;
      return this;
    }
    /**
     * .vectorindex._NoScoreThreshold no_score_threshold = 6;
     */
    public Builder setNoScoreThreshold(
        grpc.vectorindex._NoScoreThreshold.Builder builderForValue) {
      if (noScoreThresholdBuilder_ == null) {
        threshold_ = builderForValue.build();
        onChanged();
      } else {
        noScoreThresholdBuilder_.setMessage(builderForValue.build());
      }
      thresholdCase_ = 6;
      return this;
    }
    /**
     * .vectorindex._NoScoreThreshold no_score_threshold = 6;
     */
    public Builder mergeNoScoreThreshold(grpc.vectorindex._NoScoreThreshold value) {
      if (noScoreThresholdBuilder_ == null) {
        if (thresholdCase_ == 6 &&
            threshold_ != grpc.vectorindex._NoScoreThreshold.getDefaultInstance()) {
          threshold_ = grpc.vectorindex._NoScoreThreshold.newBuilder((grpc.vectorindex._NoScoreThreshold) threshold_)
              .mergeFrom(value).buildPartial();
        } else {
          threshold_ = value;
        }
        onChanged();
      } else {
        if (thresholdCase_ == 6) {
          noScoreThresholdBuilder_.mergeFrom(value);
        } else {
          noScoreThresholdBuilder_.setMessage(value);
        }
      }
      thresholdCase_ = 6;
      return this;
    }
    /**
     * .vectorindex._NoScoreThreshold no_score_threshold = 6;
     */
    public Builder clearNoScoreThreshold() {
      if (noScoreThresholdBuilder_ == null) {
        if (thresholdCase_ == 6) {
          thresholdCase_ = 0;
          threshold_ = null;
          onChanged();
        }
      } else {
        if (thresholdCase_ == 6) {
          thresholdCase_ = 0;
          threshold_ = null;
        }
        noScoreThresholdBuilder_.clear();
      }
      return this;
    }
    /**
     * .vectorindex._NoScoreThreshold no_score_threshold = 6;
     */
    public grpc.vectorindex._NoScoreThreshold.Builder getNoScoreThresholdBuilder() {
      return getNoScoreThresholdFieldBuilder().getBuilder();
    }
    /**
     * .vectorindex._NoScoreThreshold no_score_threshold = 6;
     */
    @java.lang.Override
    public grpc.vectorindex._NoScoreThresholdOrBuilder getNoScoreThresholdOrBuilder() {
      if ((thresholdCase_ == 6) && (noScoreThresholdBuilder_ != null)) {
        return noScoreThresholdBuilder_.getMessageOrBuilder();
      } else {
        if (thresholdCase_ == 6) {
          return (grpc.vectorindex._NoScoreThreshold) threshold_;
        }
        return grpc.vectorindex._NoScoreThreshold.getDefaultInstance();
      }
    }
    /**
     * .vectorindex._NoScoreThreshold no_score_threshold = 6;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.vectorindex._NoScoreThreshold, grpc.vectorindex._NoScoreThreshold.Builder, grpc.vectorindex._NoScoreThresholdOrBuilder> 
        getNoScoreThresholdFieldBuilder() {
      if (noScoreThresholdBuilder_ == null) {
        if (!(thresholdCase_ == 6)) {
          threshold_ = grpc.vectorindex._NoScoreThreshold.getDefaultInstance();
        }
        noScoreThresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            grpc.vectorindex._NoScoreThreshold, grpc.vectorindex._NoScoreThreshold.Builder, grpc.vectorindex._NoScoreThresholdOrBuilder>(
                (grpc.vectorindex._NoScoreThreshold) threshold_,
                getParentForChildren(),
                isClean());
        threshold_ = null;
      }
      thresholdCase_ = 6;
      onChanged();
      return noScoreThresholdBuilder_;
    }

    private grpc.vectorindex._FilterExpression filter_;
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.vectorindex._FilterExpression, grpc.vectorindex._FilterExpression.Builder, grpc.vectorindex._FilterExpressionOrBuilder> filterBuilder_;
    /**
     * .vectorindex._FilterExpression filter = 7;
     * @return Whether the filter field is set.
     */
    public boolean hasFilter() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * .vectorindex._FilterExpression filter = 7;
     * @return The filter.
     */
    public grpc.vectorindex._FilterExpression getFilter() {
      if (filterBuilder_ == null) {
        return filter_ == null ? grpc.vectorindex._FilterExpression.getDefaultInstance() : filter_;
      } else {
        return filterBuilder_.getMessage();
      }
    }
    /**
     * .vectorindex._FilterExpression filter = 7;
     */
    public Builder setFilter(grpc.vectorindex._FilterExpression value) {
      if (filterBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        filter_ = value;
      } else {
        filterBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * .vectorindex._FilterExpression filter = 7;
     */
    public Builder setFilter(
        grpc.vectorindex._FilterExpression.Builder builderForValue) {
      if (filterBuilder_ == null) {
        filter_ = builderForValue.build();
      } else {
        filterBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * .vectorindex._FilterExpression filter = 7;
     */
    public Builder mergeFilter(grpc.vectorindex._FilterExpression value) {
      if (filterBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0) &&
          filter_ != null &&
          filter_ != grpc.vectorindex._FilterExpression.getDefaultInstance()) {
          getFilterBuilder().mergeFrom(value);
        } else {
          filter_ = value;
        }
      } else {
        filterBuilder_.mergeFrom(value);
      }
      if (filter_ != null) {
        bitField0_ |= 0x00000040;
        onChanged();
      }
      return this;
    }
    /**
     * .vectorindex._FilterExpression filter = 7;
     */
    public Builder clearFilter() {
      bitField0_ = (bitField0_ & ~0x00000040);
      filter_ = null;
      if (filterBuilder_ != null) {
        filterBuilder_.dispose();
        filterBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .vectorindex._FilterExpression filter = 7;
     */
    public grpc.vectorindex._FilterExpression.Builder getFilterBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return getFilterFieldBuilder().getBuilder();
    }
    /**
     * .vectorindex._FilterExpression filter = 7;
     */
    public grpc.vectorindex._FilterExpressionOrBuilder getFilterOrBuilder() {
      if (filterBuilder_ != null) {
        return filterBuilder_.getMessageOrBuilder();
      } else {
        return filter_ == null ?
            grpc.vectorindex._FilterExpression.getDefaultInstance() : filter_;
      }
    }
    /**
     * .vectorindex._FilterExpression filter = 7;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.vectorindex._FilterExpression, grpc.vectorindex._FilterExpression.Builder, grpc.vectorindex._FilterExpressionOrBuilder> 
        getFilterFieldBuilder() {
      if (filterBuilder_ == null) {
        filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            grpc.vectorindex._FilterExpression, grpc.vectorindex._FilterExpression.Builder, grpc.vectorindex._FilterExpressionOrBuilder>(
                getFilter(),
                getParentForChildren(),
                isClean());
        filter_ = null;
      }
      return filterBuilder_;
    }
    @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:vectorindex._SearchAndFetchVectorsRequest)
  }

  // @@protoc_insertion_point(class_scope:vectorindex._SearchAndFetchVectorsRequest)
  private static final grpc.vectorindex._SearchAndFetchVectorsRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new grpc.vectorindex._SearchAndFetchVectorsRequest();
  }

  public static grpc.vectorindex._SearchAndFetchVectorsRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

  @java.lang.Override
  public com.google.protobuf.Parser<_SearchAndFetchVectorsRequest> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public grpc.vectorindex._SearchAndFetchVectorsRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy