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

io.milvus.grpc.VectorField 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: schema.proto

package io.milvus.grpc;

/**
 * Protobuf type {@code milvus.proto.schema.VectorField}
 */
public final class VectorField extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:milvus.proto.schema.VectorField)
    VectorFieldOrBuilder {
private static final long serialVersionUID = 0L;
  // Use VectorField.newBuilder() to construct.
  private VectorField(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private VectorField() {
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private VectorField(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    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 8: {

            dim_ = input.readInt64();
            break;
          }
          case 18: {
            io.milvus.grpc.FloatArray.Builder subBuilder = null;
            if (dataCase_ == 2) {
              subBuilder = ((io.milvus.grpc.FloatArray) data_).toBuilder();
            }
            data_ =
                input.readMessage(io.milvus.grpc.FloatArray.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.milvus.grpc.FloatArray) data_);
              data_ = subBuilder.buildPartial();
            }
            dataCase_ = 2;
            break;
          }
          case 26: {
            data_ = input.readBytes();
            dataCase_ = 3;
            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 {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.milvus.grpc.SchemaProto.internal_static_milvus_proto_schema_VectorField_descriptor;
  }

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

  private int dataCase_ = 0;
  private java.lang.Object data_;
  public enum DataCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    FLOAT_VECTOR(2),
    BINARY_VECTOR(3),
    DATA_NOT_SET(0);
    private final int value;
    private DataCase(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 DataCase valueOf(int value) {
      return forNumber(value);
    }

    public static DataCase forNumber(int value) {
      switch (value) {
        case 2: return FLOAT_VECTOR;
        case 3: return BINARY_VECTOR;
        case 0: return DATA_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public DataCase
  getDataCase() {
    return DataCase.forNumber(
        dataCase_);
  }

  public static final int DIM_FIELD_NUMBER = 1;
  private long dim_;
  /**
   * int64 dim = 1;
   * @return The dim.
   */
  @java.lang.Override
  public long getDim() {
    return dim_;
  }

  public static final int FLOAT_VECTOR_FIELD_NUMBER = 2;
  /**
   * .milvus.proto.schema.FloatArray float_vector = 2;
   * @return Whether the floatVector field is set.
   */
  @java.lang.Override
  public boolean hasFloatVector() {
    return dataCase_ == 2;
  }
  /**
   * .milvus.proto.schema.FloatArray float_vector = 2;
   * @return The floatVector.
   */
  @java.lang.Override
  public io.milvus.grpc.FloatArray getFloatVector() {
    if (dataCase_ == 2) {
       return (io.milvus.grpc.FloatArray) data_;
    }
    return io.milvus.grpc.FloatArray.getDefaultInstance();
  }
  /**
   * .milvus.proto.schema.FloatArray float_vector = 2;
   */
  @java.lang.Override
  public io.milvus.grpc.FloatArrayOrBuilder getFloatVectorOrBuilder() {
    if (dataCase_ == 2) {
       return (io.milvus.grpc.FloatArray) data_;
    }
    return io.milvus.grpc.FloatArray.getDefaultInstance();
  }

  public static final int BINARY_VECTOR_FIELD_NUMBER = 3;
  /**
   * bytes binary_vector = 3;
   * @return Whether the binaryVector field is set.
   */
  @java.lang.Override
  public boolean hasBinaryVector() {
    return dataCase_ == 3;
  }
  /**
   * bytes binary_vector = 3;
   * @return The binaryVector.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getBinaryVector() {
    if (dataCase_ == 3) {
      return (com.google.protobuf.ByteString) data_;
    }
    return com.google.protobuf.ByteString.EMPTY;
  }

  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 (dim_ != 0L) {
      output.writeInt64(1, dim_);
    }
    if (dataCase_ == 2) {
      output.writeMessage(2, (io.milvus.grpc.FloatArray) data_);
    }
    if (dataCase_ == 3) {
      output.writeBytes(
          3, (com.google.protobuf.ByteString) data_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (dim_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(1, dim_);
    }
    if (dataCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (io.milvus.grpc.FloatArray) data_);
    }
    if (dataCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeBytesSize(
            3, (com.google.protobuf.ByteString) data_);
    }
    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.VectorField)) {
      return super.equals(obj);
    }
    io.milvus.grpc.VectorField other = (io.milvus.grpc.VectorField) obj;

    if (getDim()
        != other.getDim()) return false;
    if (!getDataCase().equals(other.getDataCase())) return false;
    switch (dataCase_) {
      case 2:
        if (!getFloatVector()
            .equals(other.getFloatVector())) return false;
        break;
      case 3:
        if (!getBinaryVector()
            .equals(other.getBinaryVector())) return false;
        break;
      case 0:
      default:
    }
    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();
    hash = (37 * hash) + DIM_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getDim());
    switch (dataCase_) {
      case 2:
        hash = (37 * hash) + FLOAT_VECTOR_FIELD_NUMBER;
        hash = (53 * hash) + getFloatVector().hashCode();
        break;
      case 3:
        hash = (37 * hash) + BINARY_VECTOR_FIELD_NUMBER;
        hash = (53 * hash) + getBinaryVector().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.milvus.grpc.VectorField parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.milvus.grpc.VectorField 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.VectorField parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.milvus.grpc.VectorField 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.VectorField parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.milvus.grpc.VectorField parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.milvus.grpc.VectorField parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.milvus.grpc.VectorField 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.VectorField parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.milvus.grpc.VectorField 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.VectorField parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.milvus.grpc.VectorField 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.VectorField 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.schema.VectorField}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:milvus.proto.schema.VectorField)
      io.milvus.grpc.VectorFieldOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.milvus.grpc.SchemaProto.internal_static_milvus_proto_schema_VectorField_descriptor;
    }

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

    // Construct using io.milvus.grpc.VectorField.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      dim_ = 0L;

      dataCase_ = 0;
      data_ = null;
      return this;
    }

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

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

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

    @java.lang.Override
    public io.milvus.grpc.VectorField buildPartial() {
      io.milvus.grpc.VectorField result = new io.milvus.grpc.VectorField(this);
      result.dim_ = dim_;
      if (dataCase_ == 2) {
        if (floatVectorBuilder_ == null) {
          result.data_ = data_;
        } else {
          result.data_ = floatVectorBuilder_.build();
        }
      }
      if (dataCase_ == 3) {
        result.data_ = data_;
      }
      result.dataCase_ = dataCase_;
      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.VectorField) {
        return mergeFrom((io.milvus.grpc.VectorField)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.milvus.grpc.VectorField other) {
      if (other == io.milvus.grpc.VectorField.getDefaultInstance()) return this;
      if (other.getDim() != 0L) {
        setDim(other.getDim());
      }
      switch (other.getDataCase()) {
        case FLOAT_VECTOR: {
          mergeFloatVector(other.getFloatVector());
          break;
        }
        case BINARY_VECTOR: {
          setBinaryVector(other.getBinaryVector());
          break;
        }
        case DATA_NOT_SET: {
          break;
        }
      }
      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.VectorField parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.milvus.grpc.VectorField) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int dataCase_ = 0;
    private java.lang.Object data_;
    public DataCase
        getDataCase() {
      return DataCase.forNumber(
          dataCase_);
    }

    public Builder clearData() {
      dataCase_ = 0;
      data_ = null;
      onChanged();
      return this;
    }


    private long dim_ ;
    /**
     * int64 dim = 1;
     * @return The dim.
     */
    @java.lang.Override
    public long getDim() {
      return dim_;
    }
    /**
     * int64 dim = 1;
     * @param value The dim to set.
     * @return This builder for chaining.
     */
    public Builder setDim(long value) {
      
      dim_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 dim = 1;
     * @return This builder for chaining.
     */
    public Builder clearDim() {
      
      dim_ = 0L;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.FloatArray, io.milvus.grpc.FloatArray.Builder, io.milvus.grpc.FloatArrayOrBuilder> floatVectorBuilder_;
    /**
     * .milvus.proto.schema.FloatArray float_vector = 2;
     * @return Whether the floatVector field is set.
     */
    @java.lang.Override
    public boolean hasFloatVector() {
      return dataCase_ == 2;
    }
    /**
     * .milvus.proto.schema.FloatArray float_vector = 2;
     * @return The floatVector.
     */
    @java.lang.Override
    public io.milvus.grpc.FloatArray getFloatVector() {
      if (floatVectorBuilder_ == null) {
        if (dataCase_ == 2) {
          return (io.milvus.grpc.FloatArray) data_;
        }
        return io.milvus.grpc.FloatArray.getDefaultInstance();
      } else {
        if (dataCase_ == 2) {
          return floatVectorBuilder_.getMessage();
        }
        return io.milvus.grpc.FloatArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.FloatArray float_vector = 2;
     */
    public Builder setFloatVector(io.milvus.grpc.FloatArray value) {
      if (floatVectorBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        data_ = value;
        onChanged();
      } else {
        floatVectorBuilder_.setMessage(value);
      }
      dataCase_ = 2;
      return this;
    }
    /**
     * .milvus.proto.schema.FloatArray float_vector = 2;
     */
    public Builder setFloatVector(
        io.milvus.grpc.FloatArray.Builder builderForValue) {
      if (floatVectorBuilder_ == null) {
        data_ = builderForValue.build();
        onChanged();
      } else {
        floatVectorBuilder_.setMessage(builderForValue.build());
      }
      dataCase_ = 2;
      return this;
    }
    /**
     * .milvus.proto.schema.FloatArray float_vector = 2;
     */
    public Builder mergeFloatVector(io.milvus.grpc.FloatArray value) {
      if (floatVectorBuilder_ == null) {
        if (dataCase_ == 2 &&
            data_ != io.milvus.grpc.FloatArray.getDefaultInstance()) {
          data_ = io.milvus.grpc.FloatArray.newBuilder((io.milvus.grpc.FloatArray) data_)
              .mergeFrom(value).buildPartial();
        } else {
          data_ = value;
        }
        onChanged();
      } else {
        if (dataCase_ == 2) {
          floatVectorBuilder_.mergeFrom(value);
        }
        floatVectorBuilder_.setMessage(value);
      }
      dataCase_ = 2;
      return this;
    }
    /**
     * .milvus.proto.schema.FloatArray float_vector = 2;
     */
    public Builder clearFloatVector() {
      if (floatVectorBuilder_ == null) {
        if (dataCase_ == 2) {
          dataCase_ = 0;
          data_ = null;
          onChanged();
        }
      } else {
        if (dataCase_ == 2) {
          dataCase_ = 0;
          data_ = null;
        }
        floatVectorBuilder_.clear();
      }
      return this;
    }
    /**
     * .milvus.proto.schema.FloatArray float_vector = 2;
     */
    public io.milvus.grpc.FloatArray.Builder getFloatVectorBuilder() {
      return getFloatVectorFieldBuilder().getBuilder();
    }
    /**
     * .milvus.proto.schema.FloatArray float_vector = 2;
     */
    @java.lang.Override
    public io.milvus.grpc.FloatArrayOrBuilder getFloatVectorOrBuilder() {
      if ((dataCase_ == 2) && (floatVectorBuilder_ != null)) {
        return floatVectorBuilder_.getMessageOrBuilder();
      } else {
        if (dataCase_ == 2) {
          return (io.milvus.grpc.FloatArray) data_;
        }
        return io.milvus.grpc.FloatArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.FloatArray float_vector = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.FloatArray, io.milvus.grpc.FloatArray.Builder, io.milvus.grpc.FloatArrayOrBuilder> 
        getFloatVectorFieldBuilder() {
      if (floatVectorBuilder_ == null) {
        if (!(dataCase_ == 2)) {
          data_ = io.milvus.grpc.FloatArray.getDefaultInstance();
        }
        floatVectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.milvus.grpc.FloatArray, io.milvus.grpc.FloatArray.Builder, io.milvus.grpc.FloatArrayOrBuilder>(
                (io.milvus.grpc.FloatArray) data_,
                getParentForChildren(),
                isClean());
        data_ = null;
      }
      dataCase_ = 2;
      onChanged();;
      return floatVectorBuilder_;
    }

    /**
     * bytes binary_vector = 3;
     * @return Whether the binaryVector field is set.
     */
    public boolean hasBinaryVector() {
      return dataCase_ == 3;
    }
    /**
     * bytes binary_vector = 3;
     * @return The binaryVector.
     */
    public com.google.protobuf.ByteString getBinaryVector() {
      if (dataCase_ == 3) {
        return (com.google.protobuf.ByteString) data_;
      }
      return com.google.protobuf.ByteString.EMPTY;
    }
    /**
     * bytes binary_vector = 3;
     * @param value The binaryVector to set.
     * @return This builder for chaining.
     */
    public Builder setBinaryVector(com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  dataCase_ = 3;
      data_ = value;
      onChanged();
      return this;
    }
    /**
     * bytes binary_vector = 3;
     * @return This builder for chaining.
     */
    public Builder clearBinaryVector() {
      if (dataCase_ == 3) {
        dataCase_ = 0;
        data_ = null;
        onChanged();
      }
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:milvus.proto.schema.VectorField)
  }

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

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

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public VectorField parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new VectorField(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.VectorField getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy