public final class ScoredVector extends com.google.protobuf.GeneratedMessageV3 implements ScoredVectorOrBuilder
ScoredVector| Modifier and Type | Class and Description |
|---|---|
static class |
ScoredVector.Builder
Protobuf type
ScoredVector |
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| Modifier and Type | Field and Description |
|---|---|
static int |
ID_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
SCORE_FIELD_NUMBER |
static int |
SPARSE_VALUES_FIELD_NUMBER |
static int |
VALUES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static ScoredVector |
getDefaultInstance() |
ScoredVector |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getId()
This is the vector's unique id.
|
com.google.protobuf.ByteString |
getIdBytes()
This is the vector's unique id.
|
com.google.protobuf.Struct |
getMetadata()
This is the metadata, if it is requested.
|
com.google.protobuf.StructOrBuilder |
getMetadataOrBuilder()
This is the metadata, if it is requested.
|
com.google.protobuf.Parser<ScoredVector> |
getParserForType() |
float |
getScore()
This is a measure of similarity between this vector and the query vector.
|
int |
getSerializedSize() |
SparseValues |
getSparseValues()
This is the sparse data, if it is requested.
|
SparseValuesOrBuilder |
getSparseValuesOrBuilder()
This is the sparse data, if it is requested.
|
float |
getValues(int index)
This is the vector data, if it is requested.
|
int |
getValuesCount()
This is the vector data, if it is requested.
|
java.util.List<java.lang.Float> |
getValuesList()
This is the vector data, if it is requested.
|
int |
hashCode() |
boolean |
hasMetadata()
This is the metadata, if it is requested.
|
boolean |
hasSparseValues()
This is the sparse data, if it is requested.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ScoredVector.Builder |
newBuilder() |
static ScoredVector.Builder |
newBuilder(ScoredVector prototype) |
ScoredVector.Builder |
newBuilderForType() |
protected ScoredVector.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ScoredVector |
parseDelimitedFrom(java.io.InputStream input) |
static ScoredVector |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ScoredVector |
parseFrom(byte[] data) |
static ScoredVector |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ScoredVector |
parseFrom(java.nio.ByteBuffer data) |
static ScoredVector |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ScoredVector |
parseFrom(com.google.protobuf.ByteString data) |
static ScoredVector |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ScoredVector |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ScoredVector |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ScoredVector |
parseFrom(java.io.InputStream input) |
static ScoredVector |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ScoredVector> |
parser() |
ScoredVector.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ID_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
public static final int VALUES_FIELD_NUMBER
public static final int SPARSE_VALUES_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getId()
This is the vector's unique id.
string id = 1 [(.google.api.field_behavior) = REQUIRED];getId in interface ScoredVectorOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
This is the vector's unique id.
string id = 1 [(.google.api.field_behavior) = REQUIRED];getIdBytes in interface ScoredVectorOrBuilderpublic float getScore()
This is a measure of similarity between this vector and the query vector. The higher the score, the more they are similar.
float score = 2;getScore in interface ScoredVectorOrBuilderpublic java.util.List<java.lang.Float> getValuesList()
This is the vector data, if it is requested.
repeated float values = 3;getValuesList in interface ScoredVectorOrBuilderpublic int getValuesCount()
This is the vector data, if it is requested.
repeated float values = 3;getValuesCount in interface ScoredVectorOrBuilderpublic float getValues(int index)
This is the vector data, if it is requested.
repeated float values = 3;getValues in interface ScoredVectorOrBuilderindex - The index of the element to return.public boolean hasSparseValues()
This is the sparse data, if it is requested.
.SparseValues sparse_values = 5;hasSparseValues in interface ScoredVectorOrBuilderpublic SparseValues getSparseValues()
This is the sparse data, if it is requested.
.SparseValues sparse_values = 5;getSparseValues in interface ScoredVectorOrBuilderpublic SparseValuesOrBuilder getSparseValuesOrBuilder()
This is the sparse data, if it is requested.
.SparseValues sparse_values = 5;getSparseValuesOrBuilder in interface ScoredVectorOrBuilderpublic boolean hasMetadata()
This is the metadata, if it is requested.
.google.protobuf.Struct metadata = 4;hasMetadata in interface ScoredVectorOrBuilderpublic com.google.protobuf.Struct getMetadata()
This is the metadata, if it is requested.
.google.protobuf.Struct metadata = 4;getMetadata in interface ScoredVectorOrBuilderpublic com.google.protobuf.StructOrBuilder getMetadataOrBuilder()
This is the metadata, if it is requested.
.google.protobuf.Struct metadata = 4;getMetadataOrBuilder in interface ScoredVectorOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ScoredVector parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ScoredVector parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ScoredVector parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ScoredVector parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ScoredVector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ScoredVector parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ScoredVector parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ScoredVector parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ScoredVector parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ScoredVector parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ScoredVector parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ScoredVector parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic ScoredVector.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ScoredVector.Builder newBuilder()
public static ScoredVector.Builder newBuilder(ScoredVector prototype)
public ScoredVector.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ScoredVector.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ScoredVector getDefaultInstance()
public static com.google.protobuf.Parser<ScoredVector> parser()
public com.google.protobuf.Parser<ScoredVector> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ScoredVector getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder