public static final class SearchRequest.EmbeddingSpec.Builder extends GeneratedMessageV3.Builder<SearchRequest.EmbeddingSpec.Builder> implements SearchRequest.EmbeddingSpecOrBuilder
The specification that uses customized query embedding vector to do
semantic document retrieval.
Protobuf type google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllEmbeddingVectors(Iterable<? extends SearchRequest.EmbeddingSpec.EmbeddingVector> values)
public SearchRequest.EmbeddingSpec.Builder addAllEmbeddingVectors(Iterable<? extends SearchRequest.EmbeddingSpec.EmbeddingVector> values)
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector>
|
addEmbeddingVectors(SearchRequest.EmbeddingSpec.EmbeddingVector value)
public SearchRequest.EmbeddingSpec.Builder addEmbeddingVectors(SearchRequest.EmbeddingSpec.EmbeddingVector value)
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
addEmbeddingVectors(SearchRequest.EmbeddingSpec.EmbeddingVector.Builder builderForValue)
public SearchRequest.EmbeddingSpec.Builder addEmbeddingVectors(SearchRequest.EmbeddingSpec.EmbeddingVector.Builder builderForValue)
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
addEmbeddingVectors(int index, SearchRequest.EmbeddingSpec.EmbeddingVector value)
public SearchRequest.EmbeddingSpec.Builder addEmbeddingVectors(int index, SearchRequest.EmbeddingSpec.EmbeddingVector value)
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
addEmbeddingVectors(int index, SearchRequest.EmbeddingSpec.EmbeddingVector.Builder builderForValue)
public SearchRequest.EmbeddingSpec.Builder addEmbeddingVectors(int index, SearchRequest.EmbeddingSpec.EmbeddingVector.Builder builderForValue)
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
addEmbeddingVectorsBuilder()
public SearchRequest.EmbeddingSpec.EmbeddingVector.Builder addEmbeddingVectorsBuilder()
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
addEmbeddingVectorsBuilder(int index)
public SearchRequest.EmbeddingSpec.EmbeddingVector.Builder addEmbeddingVectorsBuilder(int index)
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchRequest.EmbeddingSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SearchRequest.EmbeddingSpec build()
buildPartial()
public SearchRequest.EmbeddingSpec buildPartial()
clear()
public SearchRequest.EmbeddingSpec.Builder clear()
Overrides
clearEmbeddingVectors()
public SearchRequest.EmbeddingSpec.Builder clearEmbeddingVectors()
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
clearField(Descriptors.FieldDescriptor field)
public SearchRequest.EmbeddingSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchRequest.EmbeddingSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public SearchRequest.EmbeddingSpec.Builder clone()
Overrides
getDefaultInstanceForType()
public SearchRequest.EmbeddingSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEmbeddingVectors(int index)
public SearchRequest.EmbeddingSpec.EmbeddingVector getEmbeddingVectors(int index)
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
Parameter |
---|
Name | Description |
index | int
|
getEmbeddingVectorsBuilder(int index)
public SearchRequest.EmbeddingSpec.EmbeddingVector.Builder getEmbeddingVectorsBuilder(int index)
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
Parameter |
---|
Name | Description |
index | int
|
getEmbeddingVectorsBuilderList()
public List<SearchRequest.EmbeddingSpec.EmbeddingVector.Builder> getEmbeddingVectorsBuilderList()
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
getEmbeddingVectorsCount()
public int getEmbeddingVectorsCount()
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
Returns |
---|
Type | Description |
int | |
getEmbeddingVectorsList()
public List<SearchRequest.EmbeddingSpec.EmbeddingVector> getEmbeddingVectorsList()
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
getEmbeddingVectorsOrBuilder(int index)
public SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder getEmbeddingVectorsOrBuilder(int index)
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
Parameter |
---|
Name | Description |
index | int
|
getEmbeddingVectorsOrBuilderList()
public List<? extends SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder> getEmbeddingVectorsOrBuilderList()
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SearchRequest.EmbeddingSpec other)
public SearchRequest.EmbeddingSpec.Builder mergeFrom(SearchRequest.EmbeddingSpec other)
public SearchRequest.EmbeddingSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchRequest.EmbeddingSpec.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.EmbeddingSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeEmbeddingVectors(int index)
public SearchRequest.EmbeddingSpec.Builder removeEmbeddingVectors(int index)
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
Parameter |
---|
Name | Description |
index | int
|
setEmbeddingVectors(int index, SearchRequest.EmbeddingSpec.EmbeddingVector value)
public SearchRequest.EmbeddingSpec.Builder setEmbeddingVectors(int index, SearchRequest.EmbeddingSpec.EmbeddingVector value)
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
setEmbeddingVectors(int index, SearchRequest.EmbeddingSpec.EmbeddingVector.Builder builderForValue)
public SearchRequest.EmbeddingSpec.Builder setEmbeddingVectors(int index, SearchRequest.EmbeddingSpec.EmbeddingVector.Builder builderForValue)
The embedding vector used for retrieval. Limit to 1.
repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public SearchRequest.EmbeddingSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchRequest.EmbeddingSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.EmbeddingSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides