public static final class SearchRequest.EmbeddingSpec.EmbeddingVector extends GeneratedMessageV3 implements SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder
Embedding vector.
Protobuf type
google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
FIELD_PATH_FIELD_NUMBER
public static final int FIELD_PATH_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
VECTOR_FIELD_NUMBER
public static final int VECTOR_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static SearchRequest.EmbeddingSpec.EmbeddingVector getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SearchRequest.EmbeddingSpec.EmbeddingVector.Builder newBuilder()
newBuilder(SearchRequest.EmbeddingSpec.EmbeddingVector prototype)
public static SearchRequest.EmbeddingSpec.EmbeddingVector.Builder newBuilder(SearchRequest.EmbeddingSpec.EmbeddingVector prototype)
public static SearchRequest.EmbeddingSpec.EmbeddingVector parseDelimitedFrom(InputStream input)
public static SearchRequest.EmbeddingSpec.EmbeddingVector parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(CodedInputStream input)
public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(InputStream input)
public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.EmbeddingSpec.EmbeddingVector parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SearchRequest.EmbeddingSpec.EmbeddingVector> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public SearchRequest.EmbeddingSpec.EmbeddingVector getDefaultInstanceForType()
getFieldPath()
public String getFieldPath()
Embedding field path in schema.
string field_path = 1;
Returns |
---|
Type | Description |
String | The fieldPath.
|
getFieldPathBytes()
public ByteString getFieldPathBytes()
Embedding field path in schema.
string field_path = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for fieldPath.
|
getParserForType()
public Parser<SearchRequest.EmbeddingSpec.EmbeddingVector> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getVector(int index)
public float getVector(int index)
Query embedding vector.
repeated float vector = 2;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
float | The vector at the given index.
|
getVectorCount()
public int getVectorCount()
Query embedding vector.
repeated float vector = 2;
Returns |
---|
Type | Description |
int | The count of vector.
|
getVectorList()
public List<Float> getVectorList()
Query embedding vector.
repeated float vector = 2;
Returns |
---|
Type | Description |
List<Float> | A list containing the vector.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SearchRequest.EmbeddingSpec.EmbeddingVector.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SearchRequest.EmbeddingSpec.EmbeddingVector.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public SearchRequest.EmbeddingSpec.EmbeddingVector.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides