Class SearchRequest.EmbeddingSpec.EmbeddingVector (0.26.0)

public static final class SearchRequest.EmbeddingSpec.EmbeddingVector extends GeneratedMessageV3 implements SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder

Embedding vector.

Protobuf type google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SearchRequest.EmbeddingSpec.EmbeddingVector

Static Fields

FIELD_PATH_FIELD_NUMBER

public static final int FIELD_PATH_FIELD_NUMBER
Field Value
TypeDescription
int

VECTOR_FIELD_NUMBER

public static final int VECTOR_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SearchRequest.EmbeddingSpec.EmbeddingVector getDefaultInstance()
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SearchRequest.EmbeddingSpec.EmbeddingVector.Builder newBuilder()
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector.Builder

newBuilder(SearchRequest.EmbeddingSpec.EmbeddingVector prototype)

public static SearchRequest.EmbeddingSpec.EmbeddingVector.Builder newBuilder(SearchRequest.EmbeddingSpec.EmbeddingVector prototype)
Parameter
NameDescription
prototypeSearchRequest.EmbeddingSpec.EmbeddingVector
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector.Builder

parseDelimitedFrom(InputStream input)

public static SearchRequest.EmbeddingSpec.EmbeddingVector parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchRequest.EmbeddingSpec.EmbeddingVector parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SearchRequest.EmbeddingSpec.EmbeddingVector> parser()
Returns
TypeDescription
Parser<EmbeddingVector>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SearchRequest.EmbeddingSpec.EmbeddingVector getDefaultInstanceForType()
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector

getFieldPath()

public String getFieldPath()

Embedding field path in schema.

string field_path = 1;

Returns
TypeDescription
String

The fieldPath.

getFieldPathBytes()

public ByteString getFieldPathBytes()

Embedding field path in schema.

string field_path = 1;

Returns
TypeDescription
ByteString

The bytes for fieldPath.

getParserForType()

public Parser<SearchRequest.EmbeddingSpec.EmbeddingVector> getParserForType()
Returns
TypeDescription
Parser<EmbeddingVector>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getVector(int index)

public float getVector(int index)

Query embedding vector.

repeated float vector = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
float

The vector at the given index.

getVectorCount()

public int getVectorCount()

Query embedding vector.

repeated float vector = 2;

Returns
TypeDescription
int

The count of vector.

getVectorList()

public List<Float> getVectorList()

Query embedding vector.

repeated float vector = 2;

Returns
TypeDescription
List<Float>

A list containing the vector.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SearchRequest.EmbeddingSpec.EmbeddingVector.Builder newBuilderForType()
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SearchRequest.EmbeddingSpec.EmbeddingVector.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SearchRequest.EmbeddingSpec.EmbeddingVector.Builder toBuilder()
Returns
TypeDescription
SearchRequest.EmbeddingSpec.EmbeddingVector.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException