public final class VectorField extends GeneratedMessage implements VectorFieldOrBuilderMessage describing a vector field.
Protobuf type google.cloud.vectorsearch.v1beta.VectorField
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > VectorFieldImplements
VectorFieldOrBuilderStatic Fields
DENSE_VECTOR_FIELD_NUMBER
public static final int DENSE_VECTOR_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SPARSE_VECTOR_FIELD_NUMBER
public static final int SPARSE_VECTOR_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static VectorField getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
VectorField |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static VectorField.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
VectorField.Builder |
|
newBuilder(VectorField prototype)
public static VectorField.Builder newBuilder(VectorField prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
VectorField |
| Returns | |
|---|---|
| Type | Description |
VectorField.Builder |
|
parseDelimitedFrom(InputStream input)
public static VectorField parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
VectorField |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static VectorField parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
VectorField |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static VectorField parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
VectorField |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static VectorField parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
VectorField |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static VectorField parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
VectorField |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static VectorField parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
VectorField |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static VectorField parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
VectorField |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static VectorField parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
VectorField |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static VectorField parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
VectorField |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static VectorField parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
VectorField |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static VectorField parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
VectorField |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static VectorField parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
VectorField |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<VectorField> parser()| Returns | |
|---|---|
| Type | Description |
Parser<VectorField> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public VectorField getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
VectorField |
|
getDenseVector()
public DenseVectorField getDenseVector()Dense vector field.
.google.cloud.vectorsearch.v1beta.DenseVectorField dense_vector = 3;
| Returns | |
|---|---|
| Type | Description |
DenseVectorField |
The denseVector. |
getDenseVectorOrBuilder()
public DenseVectorFieldOrBuilder getDenseVectorOrBuilder()Dense vector field.
.google.cloud.vectorsearch.v1beta.DenseVectorField dense_vector = 3;
| Returns | |
|---|---|
| Type | Description |
DenseVectorFieldOrBuilder |
|
getParserForType()
public Parser<VectorField> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<VectorField> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getSparseVector()
public SparseVectorField getSparseVector()Sparse vector field.
.google.cloud.vectorsearch.v1beta.SparseVectorField sparse_vector = 4;
| Returns | |
|---|---|
| Type | Description |
SparseVectorField |
The sparseVector. |
getSparseVectorOrBuilder()
public SparseVectorFieldOrBuilder getSparseVectorOrBuilder()Sparse vector field.
.google.cloud.vectorsearch.v1beta.SparseVectorField sparse_vector = 4;
| Returns | |
|---|---|
| Type | Description |
SparseVectorFieldOrBuilder |
|
getVectorTypeConfigCase()
public VectorField.VectorTypeConfigCase getVectorTypeConfigCase()| Returns | |
|---|---|
| Type | Description |
VectorField.VectorTypeConfigCase |
|
hasDenseVector()
public boolean hasDenseVector()Dense vector field.
.google.cloud.vectorsearch.v1beta.DenseVectorField dense_vector = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the denseVector field is set. |
hasSparseVector()
public boolean hasSparseVector()Sparse vector field.
.google.cloud.vectorsearch.v1beta.SparseVectorField sparse_vector = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sparseVector 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 VectorField.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
VectorField.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected VectorField.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
VectorField.Builder |
|
toBuilder()
public VectorField.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
VectorField.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|