public static final class SearchResponse.SearchResult.Builder extends GeneratedMessageV3.Builder<SearchResponse.SearchResult.Builder> implements SearchResponse.SearchResultOrBuilder
Represents the search results.
Protobuf type google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchResponse.SearchResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SearchResponse.SearchResult build()
buildPartial()
public SearchResponse.SearchResult buildPartial()
clear()
public SearchResponse.SearchResult.Builder clear()
Overrides
clearDocument()
public SearchResponse.SearchResult.Builder clearDocument()
The document data snippet in the search response. Only fields that are
marked as retrievable
are populated.
.google.cloud.discoveryengine.v1beta.Document document = 2;
clearField(Descriptors.FieldDescriptor field)
public SearchResponse.SearchResult.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearId()
public SearchResponse.SearchResult.Builder clearId()
Document.id of the
searched Document.
string id = 1;
clearModelScores()
public SearchResponse.SearchResult.Builder clearModelScores()
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchResponse.SearchResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public SearchResponse.SearchResult.Builder clone()
Overrides
containsModelScores(String key)
public boolean containsModelScores(String key)
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4;
Parameter |
Name |
Description |
key |
String
|
getDefaultInstanceForType()
public SearchResponse.SearchResult getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getDocument()
public Document getDocument()
The document data snippet in the search response. Only fields that are
marked as retrievable
are populated.
.google.cloud.discoveryengine.v1beta.Document document = 2;
Returns |
Type |
Description |
Document |
The document.
|
getDocumentBuilder()
public Document.Builder getDocumentBuilder()
The document data snippet in the search response. Only fields that are
marked as retrievable
are populated.
.google.cloud.discoveryengine.v1beta.Document document = 2;
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder()
The document data snippet in the search response. Only fields that are
marked as retrievable
are populated.
.google.cloud.discoveryengine.v1beta.Document document = 2;
getId()
Document.id of the
searched Document.
string id = 1;
Returns |
Type |
Description |
String |
The id.
|
getIdBytes()
public ByteString getIdBytes()
Document.id of the
searched Document.
string id = 1;
Returns |
Type |
Description |
ByteString |
The bytes for id.
|
getModelScores() (deprecated)
public Map<String,DoubleList> getModelScores()
getModelScoresCount()
public int getModelScoresCount()
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4;
Returns |
Type |
Description |
int |
|
getModelScoresMap()
public Map<String,DoubleList> getModelScoresMap()
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4;
getModelScoresOrDefault(String key, DoubleList defaultValue)
public DoubleList getModelScoresOrDefault(String key, DoubleList defaultValue)
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4;
getModelScoresOrThrow(String key)
public DoubleList getModelScoresOrThrow(String key)
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4;
Parameter |
Name |
Description |
key |
String
|
getMutableModelScores() (deprecated)
public Map<String,DoubleList> getMutableModelScores()
Use alternate mutation accessors instead.
hasDocument()
public boolean hasDocument()
The document data snippet in the search response. Only fields that are
marked as retrievable
are populated.
.google.cloud.discoveryengine.v1beta.Document document = 2;
Returns |
Type |
Description |
boolean |
Whether the document field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeDocument(Document value)
public SearchResponse.SearchResult.Builder mergeDocument(Document value)
The document data snippet in the search response. Only fields that are
marked as retrievable
are populated.
.google.cloud.discoveryengine.v1beta.Document document = 2;
Parameter |
Name |
Description |
value |
Document
|
mergeFrom(SearchResponse.SearchResult other)
public SearchResponse.SearchResult.Builder mergeFrom(SearchResponse.SearchResult other)
public SearchResponse.SearchResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchResponse.SearchResult.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchResponse.SearchResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
putAllModelScores(Map<String,DoubleList> values)
public SearchResponse.SearchResult.Builder putAllModelScores(Map<String,DoubleList> values)
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4;
putModelScores(String key, DoubleList value)
public SearchResponse.SearchResult.Builder putModelScores(String key, DoubleList value)
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4;
putModelScoresBuilderIfAbsent(String key)
public DoubleList.Builder putModelScoresBuilderIfAbsent(String key)
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4;
Parameter |
Name |
Description |
key |
String
|
removeModelScores(String key)
public SearchResponse.SearchResult.Builder removeModelScores(String key)
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4;
Parameter |
Name |
Description |
key |
String
|
setDocument(Document value)
public SearchResponse.SearchResult.Builder setDocument(Document value)
The document data snippet in the search response. Only fields that are
marked as retrievable
are populated.
.google.cloud.discoveryengine.v1beta.Document document = 2;
Parameter |
Name |
Description |
value |
Document
|
setDocument(Document.Builder builderForValue)
public SearchResponse.SearchResult.Builder setDocument(Document.Builder builderForValue)
The document data snippet in the search response. Only fields that are
marked as retrievable
are populated.
.google.cloud.discoveryengine.v1beta.Document document = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public SearchResponse.SearchResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setId(String value)
public SearchResponse.SearchResult.Builder setId(String value)
Document.id of the
searched Document.
string id = 1;
Parameter |
Name |
Description |
value |
String
The id to set.
|
setIdBytes(ByteString value)
public SearchResponse.SearchResult.Builder setIdBytes(ByteString value)
Document.id of the
searched Document.
string id = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for id to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchResponse.SearchResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchResponse.SearchResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides