public final class Vector extends GeneratedMessage implements VectorOrBuilderA vector which can be either dense or sparse.
Protobuf type google.cloud.vectorsearch.v1.Vector
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > VectorImplements
VectorOrBuilderStatic Fields
DENSE_FIELD_NUMBER
public static final int DENSE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SPARSE_FIELD_NUMBER
public static final int SPARSE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static Vector getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
Vector |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static Vector.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
Vector.Builder |
|
newBuilder(Vector prototype)
public static Vector.Builder newBuilder(Vector prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
Vector |
| Returns | |
|---|---|
| Type | Description |
Vector.Builder |
|
parseDelimitedFrom(InputStream input)
public static Vector parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Vector |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Vector parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Vector |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static Vector parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
Vector |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Vector parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Vector |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static Vector parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
Vector |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Vector parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Vector |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static Vector parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
Vector |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Vector parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Vector |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static Vector parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Vector |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Vector parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Vector |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static Vector parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
Vector |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Vector parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Vector |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<Vector> parser()| Returns | |
|---|---|
| Type | Description |
Parser<Vector> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public Vector getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Vector |
|
getDense()
public DenseVector getDense()A dense vector.
.google.cloud.vectorsearch.v1.DenseVector dense = 2;
| Returns | |
|---|---|
| Type | Description |
DenseVector |
The dense. |
getDenseOrBuilder()
public DenseVectorOrBuilder getDenseOrBuilder()A dense vector.
.google.cloud.vectorsearch.v1.DenseVector dense = 2;
| Returns | |
|---|---|
| Type | Description |
DenseVectorOrBuilder |
|
getParserForType()
public Parser<Vector> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<Vector> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getSparse()
public SparseVector getSparse()A sparse vector.
.google.cloud.vectorsearch.v1.SparseVector sparse = 3;
| Returns | |
|---|---|
| Type | Description |
SparseVector |
The sparse. |
getSparseOrBuilder()
public SparseVectorOrBuilder getSparseOrBuilder()A sparse vector.
.google.cloud.vectorsearch.v1.SparseVector sparse = 3;
| Returns | |
|---|---|
| Type | Description |
SparseVectorOrBuilder |
|
getVectorTypeCase()
public Vector.VectorTypeCase getVectorTypeCase()| Returns | |
|---|---|
| Type | Description |
Vector.VectorTypeCase |
|
hasDense()
public boolean hasDense()A dense vector.
.google.cloud.vectorsearch.v1.DenseVector dense = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the dense field is set. |
hasSparse()
public boolean hasSparse()A sparse vector.
.google.cloud.vectorsearch.v1.SparseVector sparse = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sparse field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public Vector.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
Vector.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Vector.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
Vector.Builder |
|
toBuilder()
public Vector.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
Vector.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|