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

io.milvus.grpc.CalcDistanceRequest 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.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();
  }

  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);
  }

  private int bitField0_;
  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 ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .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 base_ == null ? io.milvus.grpc.MsgBase.getDefaultInstance() : base_;
  }

  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 ((bitField0_ & 0x00000002) != 0); } /** *
   * 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 opLeft_ == null ? io.milvus.grpc.VectorsArray.getDefaultInstance() : opLeft_; } 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 ((bitField0_ & 0x00000004) != 0); } /** *
   * 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 opRight_ == null ? io.milvus.grpc.VectorsArray.getDefaultInstance() : opRight_; } public static final int PARAMS_FIELD_NUMBER = 4; @SuppressWarnings("serial") 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getBase()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getOpLeft()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getOpRight()); } for (int i = 0; i < params_.size(); i++) { output.writeMessage(4, params_.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, getBase()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOpLeft()); } if (((bitField0_ & 0x00000004) != 0)) { 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 += 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.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 (!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 (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) + getUnknownFields().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) { getBaseFieldBuilder(); getOpLeftFieldBuilder(); getOpRightFieldBuilder(); getParamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; base_ = null; if (baseBuilder_ != null) { baseBuilder_.dispose(); baseBuilder_ = null; } opLeft_ = null; if (opLeftBuilder_ != null) { opLeftBuilder_.dispose(); opLeftBuilder_ = null; } opRight_ = null; if (opRightBuilder_ != null) { opRightBuilder_.dispose(); opRightBuilder_ = null; } if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); } else { params_ = null; paramsBuilder_.clear(); } 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_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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.milvus.grpc.CalcDistanceRequest result) { if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { params_ = java.util.Collections.unmodifiableList(params_); bitField0_ = (bitField0_ & ~0x00000008); } result.params_ = params_; } else { result.params_ = paramsBuilder_.build(); } } private void buildPartial0(io.milvus.grpc.CalcDistanceRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.base_ = baseBuilder_ == null ? base_ : baseBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.opLeft_ = opLeftBuilder_ == null ? opLeft_ : opLeftBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.opRight_ = opRightBuilder_ == null ? opRight_ : opRightBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof 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_ & ~0x00000008); } else { ensureParamsIsMutable(); params_.addAll(other.params_); } onChanged(); } } else { if (!other.params_.isEmpty()) { if (paramsBuilder_.isEmpty()) { paramsBuilder_.dispose(); paramsBuilder_ = null; params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000008); paramsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParamsFieldBuilder() : null; } else { paramsBuilder_.addAllMessages(other.params_); } } } 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( getBaseFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getOpLeftFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getOpRightFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { io.milvus.grpc.KeyValuePair m = input.readMessage( io.milvus.grpc.KeyValuePair.parser(), extensionRegistry); if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(m); } else { paramsBuilder_.addMessage(m); } 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.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 ((bitField0_ & 0x00000001) != 0); } /** * .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; } else { baseBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .milvus.proto.common.MsgBase base = 1; */ public Builder setBase( io.milvus.grpc.MsgBase.Builder builderForValue) { if (baseBuilder_ == null) { base_ = builderForValue.build(); } else { baseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .milvus.proto.common.MsgBase base = 1; */ public Builder mergeBase(io.milvus.grpc.MsgBase value) { if (baseBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && base_ != null && base_ != io.milvus.grpc.MsgBase.getDefaultInstance()) { getBaseBuilder().mergeFrom(value); } else { base_ = value; } } else { baseBuilder_.mergeFrom(value); } if (base_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .milvus.proto.common.MsgBase base = 1; */ public Builder clearBase() { bitField0_ = (bitField0_ & ~0x00000001); base_ = null; if (baseBuilder_ != null) { baseBuilder_.dispose(); baseBuilder_ = null; } onChanged(); return this; } /** * .milvus.proto.common.MsgBase base = 1; */ public io.milvus.grpc.MsgBase.Builder getBaseBuilder() { bitField0_ |= 0x00000001; 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 ((bitField0_ & 0x00000002) != 0); } /** *
     * 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; } else { opLeftBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { opLeftBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && opLeft_ != null && opLeft_ != io.milvus.grpc.VectorsArray.getDefaultInstance()) { getOpLeftBuilder().mergeFrom(value); } else { opLeft_ = value; } } else { opLeftBuilder_.mergeFrom(value); } if (opLeft_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * vectors on the left of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_left = 2; */ public Builder clearOpLeft() { bitField0_ = (bitField0_ & ~0x00000002); opLeft_ = null; if (opLeftBuilder_ != null) { opLeftBuilder_.dispose(); opLeftBuilder_ = null; } onChanged(); return this; } /** *
     * vectors on the left of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_left = 2; */ public io.milvus.grpc.VectorsArray.Builder getOpLeftBuilder() { bitField0_ |= 0x00000002; 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 ((bitField0_ & 0x00000004) != 0); } /** *
     * 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; } else { opRightBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { opRightBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && opRight_ != null && opRight_ != io.milvus.grpc.VectorsArray.getDefaultInstance()) { getOpRightBuilder().mergeFrom(value); } else { opRight_ = value; } } else { opRightBuilder_.mergeFrom(value); } if (opRight_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * vectors on the right of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_right = 3; */ public Builder clearOpRight() { bitField0_ = (bitField0_ & ~0x00000004); opRight_ = null; if (opRightBuilder_ != null) { opRightBuilder_.dispose(); opRightBuilder_ = null; } onChanged(); return this; } /** *
     * vectors on the right of operator
     * 
* * .milvus.proto.milvus.VectorsArray op_right = 3; */ public io.milvus.grpc.VectorsArray.Builder getOpRightBuilder() { bitField0_ |= 0x00000004; 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_ & 0x00000008) != 0)) { params_ = new java.util.ArrayList(params_); bitField0_ |= 0x00000008; } } 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_ & ~0x00000008); 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_ & 0x00000008) != 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 { 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.CalcDistanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy