Class 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:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  VectorField.Builder
      Protobuf type milvus.proto.schema.VectorField
      static class  VectorField.DataCase  
      • 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 Detail

      • FLOAT_VECTOR_FIELD_NUMBER

        public static final int FLOAT_VECTOR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BINARY_VECTOR_FIELD_NUMBER

        public static final int BINARY_VECTOR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FLOAT16_VECTOR_FIELD_NUMBER

        public static final int FLOAT16_VECTOR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BFLOAT16_VECTOR_FIELD_NUMBER

        public static final int BFLOAT16_VECTOR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SPARSE_FLOAT_VECTOR_FIELD_NUMBER

        public static final int SPARSE_FLOAT_VECTOR_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • 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
      • 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.
      • 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.
      • 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​(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
      • 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