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