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

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

Go to download

Java SDK for Milvus, a distributed high-performance vector search engine. update grpc to 1.42.1 update protobuf to 3.19.1

There is a newer version: 2.2.2.1
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.CalcDistanceRequest}
 */
public final class CalcDistanceRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:milvus.proto.milvus.CalcDistanceRequest)
    CalcDistanceRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CalcDistanceRequest.newBuilder() to construct.
  private CalcDistanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private CalcDistanceRequest() {
    params_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private CalcDistanceRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            io.milvus.grpc.MsgBase.Builder subBuilder = null;
            if (base_ != null) {
              subBuilder = base_.toBuilder();
            }
            base_ = input.readMessage(io.milvus.grpc.MsgBase.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(base_);
              base_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            io.milvus.grpc.VectorsArray.Builder subBuilder = null;
            if (opLeft_ != null) {
              subBuilder = opLeft_.toBuilder();
            }
            opLeft_ = input.readMessage(io.milvus.grpc.VectorsArray.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(opLeft_);
              opLeft_ = subBuilder.buildPartial();
            }

            break;
          }
          case 26: {
            io.milvus.grpc.VectorsArray.Builder subBuilder = null;
            if (opRight_ != null) {
              subBuilder = opRight_.toBuilder();
            }
            opRight_ = input.readMessage(io.milvus.grpc.VectorsArray.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(opRight_);
              opRight_ = subBuilder.buildPartial();
            }

            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              params_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            params_.add(
                input.readMessage(io.milvus.grpc.KeyValuePair.parser(), extensionRegistry));
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        params_ = java.util.Collections.unmodifiableList(params_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_CalcDistanceRequest_descriptor;
  }

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

  public static final int BASE_FIELD_NUMBER = 1;
  private io.milvus.grpc.MsgBase base_;
  /**
   * .milvus.proto.common.MsgBase base = 1;
   * @return Whether the base field is set.
   */
  @java.lang.Override
  public boolean hasBase() {
    return base_ != null;
  }
  /**
   * .milvus.proto.common.MsgBase base = 1;
   * @return The base.
   */
  @java.lang.Override
  public io.milvus.grpc.MsgBase getBase() {
    return base_ == null ? io.milvus.grpc.MsgBase.getDefaultInstance() : base_;
  }
  /**
   * .milvus.proto.common.MsgBase base = 1;
   */
  @java.lang.Override
  public io.milvus.grpc.MsgBaseOrBuilder getBaseOrBuilder() {
    return getBase();
  }

  public static final int OP_LEFT_FIELD_NUMBER = 2;
  private io.milvus.grpc.VectorsArray opLeft_;
  /**
   * 
   * vectors on the left of operator
   * 
* * .milvus.proto.milvus.VectorsArray op_left = 2; * @return Whether the opLeft field is set. */ @java.lang.Override public boolean hasOpLeft() { return opLeft_ != null; } /** *
   * vectors on the left of operator
   * 
* * .milvus.proto.milvus.VectorsArray op_left = 2; * @return The opLeft. */ @java.lang.Override public io.milvus.grpc.VectorsArray getOpLeft() { return opLeft_ == null ? io.milvus.grpc.VectorsArray.getDefaultInstance() : opLeft_; } /** *
   * vectors on the left of operator
   * 
* * .milvus.proto.milvus.VectorsArray op_left = 2; */ @java.lang.Override public io.milvus.grpc.VectorsArrayOrBuilder getOpLeftOrBuilder() { return getOpLeft(); } public static final int OP_RIGHT_FIELD_NUMBER = 3; private io.milvus.grpc.VectorsArray opRight_; /** *
   * vectors on the right of operator
   * 
* * .milvus.proto.milvus.VectorsArray op_right = 3; * @return Whether the opRight field is set. */ @java.lang.Override public boolean hasOpRight() { return opRight_ != null; } /** *
   * vectors on the right of operator
   * 
* * .milvus.proto.milvus.VectorsArray op_right = 3; * @return The opRight. */ @java.lang.Override public io.milvus.grpc.VectorsArray getOpRight() { return opRight_ == null ? io.milvus.grpc.VectorsArray.getDefaultInstance() : opRight_; } /** *
   * vectors on the right of operator
   * 
* * .milvus.proto.milvus.VectorsArray op_right = 3; */ @java.lang.Override public io.milvus.grpc.VectorsArrayOrBuilder getOpRightOrBuilder() { return getOpRight(); } public static final int PARAMS_FIELD_NUMBER = 4; private java.util.List params_; /** *
   * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
   * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ @java.lang.Override public java.util.List getParamsList() { return params_; } /** *
   * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
   * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ @java.lang.Override public java.util.List getParamsOrBuilderList() { return params_; } /** *
   * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
   * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ @java.lang.Override public int getParamsCount() { return params_.size(); } /** *
   * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
   * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ @java.lang.Override public io.milvus.grpc.KeyValuePair getParams(int index) { return params_.get(index); } /** *
   * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
   * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ @java.lang.Override public io.milvus.grpc.KeyValuePairOrBuilder getParamsOrBuilder( int index) { return params_.get(index); } 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 (base_ != null) { output.writeMessage(1, getBase()); } if (opLeft_ != null) { output.writeMessage(2, getOpLeft()); } if (opRight_ != null) { output.writeMessage(3, getOpRight()); } for (int i = 0; i < params_.size(); i++) { output.writeMessage(4, params_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (base_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getBase()); } if (opLeft_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOpLeft()); } if (opRight_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getOpRight()); } for (int i = 0; i < params_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, params_.get(i)); } size += unknownFields.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.CalcDistanceRequest)) { return super.equals(obj); } io.milvus.grpc.CalcDistanceRequest other = (io.milvus.grpc.CalcDistanceRequest) obj; if (hasBase() != other.hasBase()) return false; if (hasBase()) { if (!getBase() .equals(other.getBase())) return false; } if (hasOpLeft() != other.hasOpLeft()) return false; if (hasOpLeft()) { if (!getOpLeft() .equals(other.getOpLeft())) return false; } if (hasOpRight() != other.hasOpRight()) return false; if (hasOpRight()) { if (!getOpRight() .equals(other.getOpRight())) return false; } if (!getParamsList() .equals(other.getParamsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasBase()) { hash = (37 * hash) + BASE_FIELD_NUMBER; hash = (53 * hash) + getBase().hashCode(); } if (hasOpLeft()) { hash = (37 * hash) + OP_LEFT_FIELD_NUMBER; hash = (53 * hash) + getOpLeft().hashCode(); } if (hasOpRight()) { hash = (37 * hash) + OP_RIGHT_FIELD_NUMBER; hash = (53 * hash) + getOpRight().hashCode(); } if (getParamsCount() > 0) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParamsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.milvus.grpc.CalcDistanceRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.CalcDistanceRequest 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.CalcDistanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.CalcDistanceRequest 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.CalcDistanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.CalcDistanceRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.milvus.grpc.CalcDistanceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.CalcDistanceRequest 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.CalcDistanceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.milvus.grpc.CalcDistanceRequest 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.CalcDistanceRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.CalcDistanceRequest 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.CalcDistanceRequest 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.CalcDistanceRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:milvus.proto.milvus.CalcDistanceRequest) io.milvus.grpc.CalcDistanceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_CalcDistanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_CalcDistanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.milvus.grpc.CalcDistanceRequest.class, io.milvus.grpc.CalcDistanceRequest.Builder.class); } // Construct using io.milvus.grpc.CalcDistanceRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (baseBuilder_ == null) { base_ = null; } else { base_ = null; baseBuilder_ = null; } if (opLeftBuilder_ == null) { opLeft_ = null; } else { opLeft_ = null; opLeftBuilder_ = null; } if (opRightBuilder_ == null) { opRight_ = null; } else { opRight_ = null; opRightBuilder_ = null; } if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { paramsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_CalcDistanceRequest_descriptor; } @java.lang.Override public io.milvus.grpc.CalcDistanceRequest getDefaultInstanceForType() { return io.milvus.grpc.CalcDistanceRequest.getDefaultInstance(); } @java.lang.Override public io.milvus.grpc.CalcDistanceRequest build() { io.milvus.grpc.CalcDistanceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.milvus.grpc.CalcDistanceRequest buildPartial() { io.milvus.grpc.CalcDistanceRequest result = new io.milvus.grpc.CalcDistanceRequest(this); int from_bitField0_ = bitField0_; if (baseBuilder_ == null) { result.base_ = base_; } else { result.base_ = baseBuilder_.build(); } if (opLeftBuilder_ == null) { result.opLeft_ = opLeft_; } else { result.opLeft_ = opLeftBuilder_.build(); } if (opRightBuilder_ == null) { result.opRight_ = opRight_; } else { result.opRight_ = opRightBuilder_.build(); } if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { params_ = java.util.Collections.unmodifiableList(params_); bitField0_ = (bitField0_ & ~0x00000001); } result.params_ = params_; } else { result.params_ = paramsBuilder_.build(); } onBuilt(); return result; } @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.CalcDistanceRequest) { return mergeFrom((io.milvus.grpc.CalcDistanceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.milvus.grpc.CalcDistanceRequest other) { if (other == io.milvus.grpc.CalcDistanceRequest.getDefaultInstance()) return this; if (other.hasBase()) { mergeBase(other.getBase()); } if (other.hasOpLeft()) { mergeOpLeft(other.getOpLeft()); } if (other.hasOpRight()) { mergeOpRight(other.getOpRight()); } if (paramsBuilder_ == null) { if (!other.params_.isEmpty()) { if (params_.isEmpty()) { params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureParamsIsMutable(); params_.addAll(other.params_); } onChanged(); } } else { if (!other.params_.isEmpty()) { if (paramsBuilder_.isEmpty()) { paramsBuilder_.dispose(); paramsBuilder_ = null; params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000001); paramsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParamsFieldBuilder() : null; } else { paramsBuilder_.addAllMessages(other.params_); } } } this.mergeUnknownFields(other.unknownFields); 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 { io.milvus.grpc.CalcDistanceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.milvus.grpc.CalcDistanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.milvus.grpc.MsgBase base_; private com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.MsgBase, io.milvus.grpc.MsgBase.Builder, io.milvus.grpc.MsgBaseOrBuilder> baseBuilder_; /** * .milvus.proto.common.MsgBase base = 1; * @return Whether the base field is set. */ public boolean hasBase() { return baseBuilder_ != null || base_ != null; } /** * .milvus.proto.common.MsgBase base = 1; * @return The base. */ public io.milvus.grpc.MsgBase getBase() { if (baseBuilder_ == null) { return base_ == null ? io.milvus.grpc.MsgBase.getDefaultInstance() : base_; } else { return baseBuilder_.getMessage(); } } /** * .milvus.proto.common.MsgBase base = 1; */ public Builder setBase(io.milvus.grpc.MsgBase value) { if (baseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } base_ = value; onChanged(); } else { baseBuilder_.setMessage(value); } return this; } /** * .milvus.proto.common.MsgBase base = 1; */ public Builder setBase( io.milvus.grpc.MsgBase.Builder builderForValue) { if (baseBuilder_ == null) { base_ = builderForValue.build(); onChanged(); } else { baseBuilder_.setMessage(builderForValue.build()); } return this; } /** * .milvus.proto.common.MsgBase base = 1; */ public Builder mergeBase(io.milvus.grpc.MsgBase value) { if (baseBuilder_ == null) { if (base_ != null) { base_ = io.milvus.grpc.MsgBase.newBuilder(base_).mergeFrom(value).buildPartial(); } else { base_ = value; } onChanged(); } else { baseBuilder_.mergeFrom(value); } return this; } /** * .milvus.proto.common.MsgBase base = 1; */ public Builder clearBase() { if (baseBuilder_ == null) { base_ = null; onChanged(); } else { base_ = null; baseBuilder_ = null; } return this; } /** * .milvus.proto.common.MsgBase base = 1; */ public io.milvus.grpc.MsgBase.Builder getBaseBuilder() { onChanged(); return getBaseFieldBuilder().getBuilder(); } /** * .milvus.proto.common.MsgBase base = 1; */ public io.milvus.grpc.MsgBaseOrBuilder getBaseOrBuilder() { if (baseBuilder_ != null) { return baseBuilder_.getMessageOrBuilder(); } else { return base_ == null ? io.milvus.grpc.MsgBase.getDefaultInstance() : base_; } } /** * .milvus.proto.common.MsgBase base = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.MsgBase, io.milvus.grpc.MsgBase.Builder, io.milvus.grpc.MsgBaseOrBuilder> getBaseFieldBuilder() { if (baseBuilder_ == null) { baseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.MsgBase, io.milvus.grpc.MsgBase.Builder, io.milvus.grpc.MsgBaseOrBuilder>( getBase(), getParentForChildren(), isClean()); base_ = null; } return baseBuilder_; } private io.milvus.grpc.VectorsArray opLeft_; private com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.VectorsArray, io.milvus.grpc.VectorsArray.Builder, io.milvus.grpc.VectorsArrayOrBuilder> opLeftBuilder_; /** *
     * vectors on the left of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_left = 2; * @return Whether the opLeft field is set. */ public boolean hasOpLeft() { return opLeftBuilder_ != null || opLeft_ != null; } /** *
     * vectors on the left of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_left = 2; * @return The opLeft. */ public io.milvus.grpc.VectorsArray getOpLeft() { if (opLeftBuilder_ == null) { return opLeft_ == null ? io.milvus.grpc.VectorsArray.getDefaultInstance() : opLeft_; } else { return opLeftBuilder_.getMessage(); } } /** *
     * vectors on the left of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_left = 2; */ public Builder setOpLeft(io.milvus.grpc.VectorsArray value) { if (opLeftBuilder_ == null) { if (value == null) { throw new NullPointerException(); } opLeft_ = value; onChanged(); } else { opLeftBuilder_.setMessage(value); } return this; } /** *
     * vectors on the left of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_left = 2; */ public Builder setOpLeft( io.milvus.grpc.VectorsArray.Builder builderForValue) { if (opLeftBuilder_ == null) { opLeft_ = builderForValue.build(); onChanged(); } else { opLeftBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * vectors on the left of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_left = 2; */ public Builder mergeOpLeft(io.milvus.grpc.VectorsArray value) { if (opLeftBuilder_ == null) { if (opLeft_ != null) { opLeft_ = io.milvus.grpc.VectorsArray.newBuilder(opLeft_).mergeFrom(value).buildPartial(); } else { opLeft_ = value; } onChanged(); } else { opLeftBuilder_.mergeFrom(value); } return this; } /** *
     * vectors on the left of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_left = 2; */ public Builder clearOpLeft() { if (opLeftBuilder_ == null) { opLeft_ = null; onChanged(); } else { opLeft_ = null; opLeftBuilder_ = null; } return this; } /** *
     * vectors on the left of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_left = 2; */ public io.milvus.grpc.VectorsArray.Builder getOpLeftBuilder() { onChanged(); return getOpLeftFieldBuilder().getBuilder(); } /** *
     * vectors on the left of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_left = 2; */ public io.milvus.grpc.VectorsArrayOrBuilder getOpLeftOrBuilder() { if (opLeftBuilder_ != null) { return opLeftBuilder_.getMessageOrBuilder(); } else { return opLeft_ == null ? io.milvus.grpc.VectorsArray.getDefaultInstance() : opLeft_; } } /** *
     * vectors on the left of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_left = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.VectorsArray, io.milvus.grpc.VectorsArray.Builder, io.milvus.grpc.VectorsArrayOrBuilder> getOpLeftFieldBuilder() { if (opLeftBuilder_ == null) { opLeftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.VectorsArray, io.milvus.grpc.VectorsArray.Builder, io.milvus.grpc.VectorsArrayOrBuilder>( getOpLeft(), getParentForChildren(), isClean()); opLeft_ = null; } return opLeftBuilder_; } private io.milvus.grpc.VectorsArray opRight_; private com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.VectorsArray, io.milvus.grpc.VectorsArray.Builder, io.milvus.grpc.VectorsArrayOrBuilder> opRightBuilder_; /** *
     * vectors on the right of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_right = 3; * @return Whether the opRight field is set. */ public boolean hasOpRight() { return opRightBuilder_ != null || opRight_ != null; } /** *
     * vectors on the right of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_right = 3; * @return The opRight. */ public io.milvus.grpc.VectorsArray getOpRight() { if (opRightBuilder_ == null) { return opRight_ == null ? io.milvus.grpc.VectorsArray.getDefaultInstance() : opRight_; } else { return opRightBuilder_.getMessage(); } } /** *
     * vectors on the right of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_right = 3; */ public Builder setOpRight(io.milvus.grpc.VectorsArray value) { if (opRightBuilder_ == null) { if (value == null) { throw new NullPointerException(); } opRight_ = value; onChanged(); } else { opRightBuilder_.setMessage(value); } return this; } /** *
     * vectors on the right of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_right = 3; */ public Builder setOpRight( io.milvus.grpc.VectorsArray.Builder builderForValue) { if (opRightBuilder_ == null) { opRight_ = builderForValue.build(); onChanged(); } else { opRightBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * vectors on the right of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_right = 3; */ public Builder mergeOpRight(io.milvus.grpc.VectorsArray value) { if (opRightBuilder_ == null) { if (opRight_ != null) { opRight_ = io.milvus.grpc.VectorsArray.newBuilder(opRight_).mergeFrom(value).buildPartial(); } else { opRight_ = value; } onChanged(); } else { opRightBuilder_.mergeFrom(value); } return this; } /** *
     * vectors on the right of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_right = 3; */ public Builder clearOpRight() { if (opRightBuilder_ == null) { opRight_ = null; onChanged(); } else { opRight_ = null; opRightBuilder_ = null; } return this; } /** *
     * vectors on the right of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_right = 3; */ public io.milvus.grpc.VectorsArray.Builder getOpRightBuilder() { onChanged(); return getOpRightFieldBuilder().getBuilder(); } /** *
     * vectors on the right of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_right = 3; */ public io.milvus.grpc.VectorsArrayOrBuilder getOpRightOrBuilder() { if (opRightBuilder_ != null) { return opRightBuilder_.getMessageOrBuilder(); } else { return opRight_ == null ? io.milvus.grpc.VectorsArray.getDefaultInstance() : opRight_; } } /** *
     * vectors on the right of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_right = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.VectorsArray, io.milvus.grpc.VectorsArray.Builder, io.milvus.grpc.VectorsArrayOrBuilder> getOpRightFieldBuilder() { if (opRightBuilder_ == null) { opRightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.VectorsArray, io.milvus.grpc.VectorsArray.Builder, io.milvus.grpc.VectorsArrayOrBuilder>( getOpRight(), getParentForChildren(), isClean()); opRight_ = null; } return opRightBuilder_; } private java.util.List params_ = java.util.Collections.emptyList(); private void ensureParamsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { params_ = new java.util.ArrayList(params_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder> paramsBuilder_; /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public java.util.List getParamsList() { if (paramsBuilder_ == null) { return java.util.Collections.unmodifiableList(params_); } else { return paramsBuilder_.getMessageList(); } } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public int getParamsCount() { if (paramsBuilder_ == null) { return params_.size(); } else { return paramsBuilder_.getCount(); } } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public io.milvus.grpc.KeyValuePair getParams(int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessage(index); } } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public Builder setParams( int index, io.milvus.grpc.KeyValuePair value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.set(index, value); onChanged(); } else { paramsBuilder_.setMessage(index, value); } return this; } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public Builder setParams( int index, io.milvus.grpc.KeyValuePair.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.set(index, builderForValue.build()); onChanged(); } else { paramsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public Builder addParams(io.milvus.grpc.KeyValuePair value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.add(value); onChanged(); } else { paramsBuilder_.addMessage(value); } return this; } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public Builder addParams( int index, io.milvus.grpc.KeyValuePair value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.add(index, value); onChanged(); } else { paramsBuilder_.addMessage(index, value); } return this; } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public Builder addParams( io.milvus.grpc.KeyValuePair.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public Builder addParams( int index, io.milvus.grpc.KeyValuePair.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(index, builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public Builder addAllParams( java.lang.Iterable values) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, params_); onChanged(); } else { paramsBuilder_.addAllMessages(values); } return this; } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public Builder clearParams() { if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { paramsBuilder_.clear(); } return this; } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public Builder removeParams(int index) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.remove(index); onChanged(); } else { paramsBuilder_.remove(index); } return this; } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public io.milvus.grpc.KeyValuePair.Builder getParamsBuilder( int index) { return getParamsFieldBuilder().getBuilder(index); } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public io.milvus.grpc.KeyValuePairOrBuilder getParamsOrBuilder( int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessageOrBuilder(index); } } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public java.util.List getParamsOrBuilderList() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(params_); } } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public io.milvus.grpc.KeyValuePair.Builder addParamsBuilder() { return getParamsFieldBuilder().addBuilder( io.milvus.grpc.KeyValuePair.getDefaultInstance()); } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public io.milvus.grpc.KeyValuePair.Builder addParamsBuilder( int index) { return getParamsFieldBuilder().addBuilder( index, io.milvus.grpc.KeyValuePair.getDefaultInstance()); } /** *
     * "metric":"L2"/"IP"/"HAMMIN"/"TANIMOTO"
     * 
* * repeated .milvus.proto.common.KeyValuePair params = 4; */ public java.util.List getParamsBuilderList() { return getParamsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder>( params_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } @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.CalcDistanceRequest) } // @@protoc_insertion_point(class_scope:milvus.proto.milvus.CalcDistanceRequest) private static final io.milvus.grpc.CalcDistanceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.milvus.grpc.CalcDistanceRequest(); } public static io.milvus.grpc.CalcDistanceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CalcDistanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CalcDistanceRequest(input, extensionRegistry); } }; 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.CalcDistanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy