Package org.opensearch.protobufs
Class KnnQuery
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.opensearch.protobufs.KnnQuery
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,KnnQueryOrBuilder
public final class KnnQuery
extends com.google.protobuf.GeneratedMessageV3
implements KnnQueryOrBuilder
Protobuf type
org.opensearch.protobufs.KnnQuery- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeorg.opensearch.protobufs.KnnQueryNested 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatgetBoost()optional float boost = 7 [json_name = "boost"];static KnnQuerystatic final com.google.protobuf.Descriptors.Descriptorbooleanoptional bool expand_nested_docs = 11 [json_name = "expandNestedDocs"];getField()string field = 1 [json_name = "field"];com.google.protobuf.ByteStringstring field = 1 [json_name = "field"];optional .org.opensearch.protobufs.QueryContainer filter = 6 [json_name = "filter"];optional .org.opensearch.protobufs.QueryContainer filter = 6 [json_name = "filter"];intgetK()optional int32 k = 3 [json_name = "k"];floatoptional float max_distance = 5 [json_name = "maxDistance"];optional .org.opensearch.protobufs.ObjectMap method_parameters = 9 [json_name = "methodParameters"];optional .org.opensearch.protobufs.ObjectMap method_parameters = 9 [json_name = "methodParameters"];floatoptional float min_score = 4 [json_name = "minScore"];com.google.protobuf.Parser<KnnQuery> optional .org.opensearch.protobufs.KnnQueryRescore rescore = 10 [json_name = "rescore"];optional .org.opensearch.protobufs.KnnQueryRescore rescore = 10 [json_name = "rescore"];intfloatgetVector(int index) repeated float vector = 2 [json_name = "vector"];intrepeated float vector = 2 [json_name = "vector"];repeated float vector = 2 [json_name = "vector"];getXName()optional string x_name = 8 [json_name = "xName"];com.google.protobuf.ByteStringoptional string x_name = 8 [json_name = "xName"];booleanhasBoost()optional float boost = 7 [json_name = "boost"];booleanoptional bool expand_nested_docs = 11 [json_name = "expandNestedDocs"];booleanoptional .org.opensearch.protobufs.QueryContainer filter = 6 [json_name = "filter"];inthashCode()booleanhasK()optional int32 k = 3 [json_name = "k"];booleanoptional float max_distance = 5 [json_name = "maxDistance"];booleanoptional .org.opensearch.protobufs.ObjectMap method_parameters = 9 [json_name = "methodParameters"];booleanoptional float min_score = 4 [json_name = "minScore"];booleanoptional .org.opensearch.protobufs.KnnQueryRescore rescore = 10 [json_name = "rescore"];booleanhasXName()optional string x_name = 8 [json_name = "xName"];protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic KnnQuery.Builderstatic KnnQuery.BuildernewBuilder(KnnQuery prototype) protected KnnQuery.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static KnnQueryparseDelimitedFrom(InputStream input) static KnnQueryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KnnQueryparseFrom(byte[] data) static KnnQueryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KnnQueryparseFrom(com.google.protobuf.ByteString data) static KnnQueryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KnnQueryparseFrom(com.google.protobuf.CodedInputStream input) static KnnQueryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KnnQueryparseFrom(InputStream input) static KnnQueryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static KnnQueryparseFrom(ByteBuffer data) static KnnQueryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<KnnQuery> parser()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
FIELD_FIELD_NUMBER
public static final int FIELD_FIELD_NUMBER- See Also:
-
VECTOR_FIELD_NUMBER
public static final int VECTOR_FIELD_NUMBER- See Also:
-
K_FIELD_NUMBER
public static final int K_FIELD_NUMBER- See Also:
-
MIN_SCORE_FIELD_NUMBER
public static final int MIN_SCORE_FIELD_NUMBER- See Also:
-
MAX_DISTANCE_FIELD_NUMBER
public static final int MAX_DISTANCE_FIELD_NUMBER- See Also:
-
FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER- See Also:
-
BOOST_FIELD_NUMBER
public static final int BOOST_FIELD_NUMBER- See Also:
-
X_NAME_FIELD_NUMBER
public static final int X_NAME_FIELD_NUMBER- See Also:
-
METHOD_PARAMETERS_FIELD_NUMBER
public static final int METHOD_PARAMETERS_FIELD_NUMBER- See Also:
-
RESCORE_FIELD_NUMBER
public static final int RESCORE_FIELD_NUMBER- See Also:
-
EXPAND_NESTED_DOCS_FIELD_NUMBER
public static final int EXPAND_NESTED_DOCS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getField
string field = 1 [json_name = "field"];- Specified by:
getFieldin interfaceKnnQueryOrBuilder- Returns:
- The field.
-
getFieldBytes
public com.google.protobuf.ByteString getFieldBytes()string field = 1 [json_name = "field"];- Specified by:
getFieldBytesin interfaceKnnQueryOrBuilder- Returns:
- The bytes for field.
-
getVectorList
repeated float vector = 2 [json_name = "vector"];- Specified by:
getVectorListin interfaceKnnQueryOrBuilder- Returns:
- A list containing the vector.
-
getVectorCount
public int getVectorCount()repeated float vector = 2 [json_name = "vector"];- Specified by:
getVectorCountin interfaceKnnQueryOrBuilder- Returns:
- The count of vector.
-
getVector
public float getVector(int index) repeated float vector = 2 [json_name = "vector"];- Specified by:
getVectorin interfaceKnnQueryOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The vector at the given index.
-
hasK
public boolean hasK()optional int32 k = 3 [json_name = "k"];- Specified by:
hasKin interfaceKnnQueryOrBuilder- Returns:
- Whether the k field is set.
-
getK
public int getK()optional int32 k = 3 [json_name = "k"];- Specified by:
getKin interfaceKnnQueryOrBuilder- Returns:
- The k.
-
hasMinScore
public boolean hasMinScore()optional float min_score = 4 [json_name = "minScore"];- Specified by:
hasMinScorein interfaceKnnQueryOrBuilder- Returns:
- Whether the minScore field is set.
-
getMinScore
public float getMinScore()optional float min_score = 4 [json_name = "minScore"];- Specified by:
getMinScorein interfaceKnnQueryOrBuilder- Returns:
- The minScore.
-
hasMaxDistance
public boolean hasMaxDistance()optional float max_distance = 5 [json_name = "maxDistance"];- Specified by:
hasMaxDistancein interfaceKnnQueryOrBuilder- Returns:
- Whether the maxDistance field is set.
-
getMaxDistance
public float getMaxDistance()optional float max_distance = 5 [json_name = "maxDistance"];- Specified by:
getMaxDistancein interfaceKnnQueryOrBuilder- Returns:
- The maxDistance.
-
hasFilter
public boolean hasFilter()optional .org.opensearch.protobufs.QueryContainer filter = 6 [json_name = "filter"];- Specified by:
hasFilterin interfaceKnnQueryOrBuilder- Returns:
- Whether the filter field is set.
-
getFilter
optional .org.opensearch.protobufs.QueryContainer filter = 6 [json_name = "filter"];- Specified by:
getFilterin interfaceKnnQueryOrBuilder- Returns:
- The filter.
-
getFilterOrBuilder
optional .org.opensearch.protobufs.QueryContainer filter = 6 [json_name = "filter"];- Specified by:
getFilterOrBuilderin interfaceKnnQueryOrBuilder
-
hasBoost
public boolean hasBoost()optional float boost = 7 [json_name = "boost"];- Specified by:
hasBoostin interfaceKnnQueryOrBuilder- Returns:
- Whether the boost field is set.
-
getBoost
public float getBoost()optional float boost = 7 [json_name = "boost"];- Specified by:
getBoostin interfaceKnnQueryOrBuilder- Returns:
- The boost.
-
hasXName
public boolean hasXName()optional string x_name = 8 [json_name = "xName"];- Specified by:
hasXNamein interfaceKnnQueryOrBuilder- Returns:
- Whether the xName field is set.
-
getXName
optional string x_name = 8 [json_name = "xName"];- Specified by:
getXNamein interfaceKnnQueryOrBuilder- Returns:
- The xName.
-
getXNameBytes
public com.google.protobuf.ByteString getXNameBytes()optional string x_name = 8 [json_name = "xName"];- Specified by:
getXNameBytesin interfaceKnnQueryOrBuilder- Returns:
- The bytes for xName.
-
hasMethodParameters
public boolean hasMethodParameters()optional .org.opensearch.protobufs.ObjectMap method_parameters = 9 [json_name = "methodParameters"];- Specified by:
hasMethodParametersin interfaceKnnQueryOrBuilder- Returns:
- Whether the methodParameters field is set.
-
getMethodParameters
optional .org.opensearch.protobufs.ObjectMap method_parameters = 9 [json_name = "methodParameters"];- Specified by:
getMethodParametersin interfaceKnnQueryOrBuilder- Returns:
- The methodParameters.
-
getMethodParametersOrBuilder
optional .org.opensearch.protobufs.ObjectMap method_parameters = 9 [json_name = "methodParameters"];- Specified by:
getMethodParametersOrBuilderin interfaceKnnQueryOrBuilder
-
hasRescore
public boolean hasRescore()optional .org.opensearch.protobufs.KnnQueryRescore rescore = 10 [json_name = "rescore"];- Specified by:
hasRescorein interfaceKnnQueryOrBuilder- Returns:
- Whether the rescore field is set.
-
getRescore
optional .org.opensearch.protobufs.KnnQueryRescore rescore = 10 [json_name = "rescore"];- Specified by:
getRescorein interfaceKnnQueryOrBuilder- Returns:
- The rescore.
-
getRescoreOrBuilder
optional .org.opensearch.protobufs.KnnQueryRescore rescore = 10 [json_name = "rescore"];- Specified by:
getRescoreOrBuilderin interfaceKnnQueryOrBuilder
-
hasExpandNestedDocs
public boolean hasExpandNestedDocs()optional bool expand_nested_docs = 11 [json_name = "expandNestedDocs"];- Specified by:
hasExpandNestedDocsin interfaceKnnQueryOrBuilder- Returns:
- Whether the expandNestedDocs field is set.
-
getExpandNestedDocs
public boolean getExpandNestedDocs()optional bool expand_nested_docs = 11 [json_name = "expandNestedDocs"];- Specified by:
getExpandNestedDocsin interfaceKnnQueryOrBuilder- Returns:
- The expandNestedDocs.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static KnnQuery parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KnnQuery parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KnnQuery parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KnnQuery parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KnnQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KnnQuery parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static KnnQuery parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static KnnQuery parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static KnnQuery parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected KnnQuery.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-