Send feedback
Class SearchResponse.SearchResult.Builder (0.41.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.41.0 keyboard_arrow_down
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.v1.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.v1.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;
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchResponse . SearchResult . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public SearchResponse . SearchResult . Builder clone ()
Overrides
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.v1.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.v1.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.v1.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.
hasDocument()
public boolean hasDocument ()
The document data snippet in the search response. Only fields that are
marked as retrievable
are populated.
.google.cloud.discoveryengine.v1.Document document = 2;
Returns
Type
Description
boolean
Whether the document field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
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.v1.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
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.v1.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.v1.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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]