Interface SearchResponse.SearchResultOrBuilder (0.16.0)

public static interface SearchResponse.SearchResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDocument()

public abstract 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
TypeDescription
Document

The document.

getDocumentOrBuilder()

public abstract 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;

Returns
TypeDescription
DocumentOrBuilder

getId()

public abstract String getId()

Document.id of the searched Document.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public abstract ByteString getIdBytes()

Document.id of the searched Document.

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

hasDocument()

public abstract 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
TypeDescription
boolean

Whether the document field is set.