Class VectorField

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.milvus.grpc.VectorField
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VectorFieldOrBuilder, Serializable

public final class VectorField extends com.google.protobuf.GeneratedMessageV3 implements VectorFieldOrBuilder
Protobuf type milvus.proto.schema.VectorField
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protobuf type milvus.proto.schema.VectorField
    static enum 
     

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    com.google.protobuf.ByteString
    bytes bfloat16_vector = 5;
    com.google.protobuf.ByteString
    bytes binary_vector = 3;
     
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    long
    For sparse vector, dim is the max dimension of the current batch of vectors
    com.google.protobuf.ByteString
    bytes float16_vector = 4;
    .milvus.proto.schema.FloatArray float_vector = 2;
    .milvus.proto.schema.FloatArray float_vector = 2;
    com.google.protobuf.ByteString
    bytes int8_vector = 7;
    com.google.protobuf.Parser<VectorField>
     
    int
     
    .milvus.proto.schema.SparseFloatArray sparse_float_vector = 6;
    .milvus.proto.schema.SparseFloatArray sparse_float_vector = 6;
    .milvus.proto.schema.VectorArray vector_array = 8;
    .milvus.proto.schema.VectorArray vector_array = 8;
    boolean
    bytes bfloat16_vector = 5;
    boolean
    bytes binary_vector = 3;
    boolean
    bytes float16_vector = 4;
    boolean
    .milvus.proto.schema.FloatArray float_vector = 2;
    int
     
    boolean
    bytes int8_vector = 7;
    boolean
    .milvus.proto.schema.SparseFloatArray sparse_float_vector = 6;
    boolean
    .milvus.proto.schema.VectorArray vector_array = 8;
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<VectorField>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • DIM_FIELD_NUMBER

      public static final int DIM_FIELD_NUMBER
      See Also:
    • FLOAT_VECTOR_FIELD_NUMBER

      public static final int FLOAT_VECTOR_FIELD_NUMBER
      See Also:
    • BINARY_VECTOR_FIELD_NUMBER

      public static final int BINARY_VECTOR_FIELD_NUMBER
      See Also:
    • FLOAT16_VECTOR_FIELD_NUMBER

      public static final int FLOAT16_VECTOR_FIELD_NUMBER
      See Also:
    • BFLOAT16_VECTOR_FIELD_NUMBER

      public static final int BFLOAT16_VECTOR_FIELD_NUMBER
      See Also:
    • SPARSE_FLOAT_VECTOR_FIELD_NUMBER

      public static final int SPARSE_FLOAT_VECTOR_FIELD_NUMBER
      See Also:
    • INT8_VECTOR_FIELD_NUMBER

      public static final int INT8_VECTOR_FIELD_NUMBER
      See Also:
    • VECTOR_ARRAY_FIELD_NUMBER

      public static final int VECTOR_ARRAY_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getDataCase

      public VectorField.DataCase getDataCase()
      Specified by:
      getDataCase in interface VectorFieldOrBuilder
    • getDim

      public long getDim()
       For sparse vector, dim is the max dimension of the current batch of vectors
       
      int64 dim = 1;
      Specified by:
      getDim in interface VectorFieldOrBuilder
      Returns:
      The dim.
    • hasFloatVector

      public boolean hasFloatVector()
      .milvus.proto.schema.FloatArray float_vector = 2;
      Specified by:
      hasFloatVector in interface VectorFieldOrBuilder
      Returns:
      Whether the floatVector field is set.
    • getFloatVector

      public FloatArray getFloatVector()
      .milvus.proto.schema.FloatArray float_vector = 2;
      Specified by:
      getFloatVector in interface VectorFieldOrBuilder
      Returns:
      The floatVector.
    • getFloatVectorOrBuilder

      public FloatArrayOrBuilder getFloatVectorOrBuilder()
      .milvus.proto.schema.FloatArray float_vector = 2;
      Specified by:
      getFloatVectorOrBuilder in interface VectorFieldOrBuilder
    • hasBinaryVector

      public boolean hasBinaryVector()
      bytes binary_vector = 3;
      Specified by:
      hasBinaryVector in interface VectorFieldOrBuilder
      Returns:
      Whether the binaryVector field is set.
    • getBinaryVector

      public com.google.protobuf.ByteString getBinaryVector()
      bytes binary_vector = 3;
      Specified by:
      getBinaryVector in interface VectorFieldOrBuilder
      Returns:
      The binaryVector.
    • hasFloat16Vector

      public boolean hasFloat16Vector()
      bytes float16_vector = 4;
      Specified by:
      hasFloat16Vector in interface VectorFieldOrBuilder
      Returns:
      Whether the float16Vector field is set.
    • getFloat16Vector

      public com.google.protobuf.ByteString getFloat16Vector()
      bytes float16_vector = 4;
      Specified by:
      getFloat16Vector in interface VectorFieldOrBuilder
      Returns:
      The float16Vector.
    • hasBfloat16Vector

      public boolean hasBfloat16Vector()
      bytes bfloat16_vector = 5;
      Specified by:
      hasBfloat16Vector in interface VectorFieldOrBuilder
      Returns:
      Whether the bfloat16Vector field is set.
    • getBfloat16Vector

      public com.google.protobuf.ByteString getBfloat16Vector()
      bytes bfloat16_vector = 5;
      Specified by:
      getBfloat16Vector in interface VectorFieldOrBuilder
      Returns:
      The bfloat16Vector.
    • hasSparseFloatVector

      public boolean hasSparseFloatVector()
      .milvus.proto.schema.SparseFloatArray sparse_float_vector = 6;
      Specified by:
      hasSparseFloatVector in interface VectorFieldOrBuilder
      Returns:
      Whether the sparseFloatVector field is set.
    • getSparseFloatVector

      public SparseFloatArray getSparseFloatVector()
      .milvus.proto.schema.SparseFloatArray sparse_float_vector = 6;
      Specified by:
      getSparseFloatVector in interface VectorFieldOrBuilder
      Returns:
      The sparseFloatVector.
    • getSparseFloatVectorOrBuilder

      public SparseFloatArrayOrBuilder getSparseFloatVectorOrBuilder()
      .milvus.proto.schema.SparseFloatArray sparse_float_vector = 6;
      Specified by:
      getSparseFloatVectorOrBuilder in interface VectorFieldOrBuilder
    • hasInt8Vector

      public boolean hasInt8Vector()
      bytes int8_vector = 7;
      Specified by:
      hasInt8Vector in interface VectorFieldOrBuilder
      Returns:
      Whether the int8Vector field is set.
    • getInt8Vector

      public com.google.protobuf.ByteString getInt8Vector()
      bytes int8_vector = 7;
      Specified by:
      getInt8Vector in interface VectorFieldOrBuilder
      Returns:
      The int8Vector.
    • hasVectorArray

      public boolean hasVectorArray()
      .milvus.proto.schema.VectorArray vector_array = 8;
      Specified by:
      hasVectorArray in interface VectorFieldOrBuilder
      Returns:
      Whether the vectorArray field is set.
    • getVectorArray

      public VectorArray getVectorArray()
      .milvus.proto.schema.VectorArray vector_array = 8;
      Specified by:
      getVectorArray in interface VectorFieldOrBuilder
      Returns:
      The vectorArray.
    • getVectorArrayOrBuilder

      public VectorArrayOrBuilder getVectorArrayOrBuilder()
      .milvus.proto.schema.VectorArray vector_array = 8;
      Specified by:
      getVectorArrayOrBuilder in interface VectorFieldOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static VectorField parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VectorField parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VectorField parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VectorField parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VectorField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VectorField parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VectorField parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VectorField parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static VectorField parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static VectorField parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VectorField parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VectorField parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public VectorField.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static VectorField.Builder newBuilder()
    • newBuilder

      public static VectorField.Builder newBuilder(VectorField prototype)
    • toBuilder

      public VectorField.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected VectorField.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static VectorField getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<VectorField> parser()
    • getParserForType

      public com.google.protobuf.Parser<VectorField> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public VectorField getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder