Interface SearchResponse.SearchResultOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SearchResponse.SearchResult
,SearchResponse.SearchResult.Builder
- Enclosing class:
- SearchResponse
public static interface SearchResponse.SearchResultOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Document
getDocument()
The document data snippet in the search response.DocumentOrBuilder
getDocumentOrBuilder()
The document data snippet in the search response.String
getId()
[Document.id][google.cloud.discoveryengine.v1.Document.id] of the searched [Document][google.cloud.discoveryengine.v1.Document].com.google.protobuf.ByteString
getIdBytes()
[Document.id][google.cloud.discoveryengine.v1.Document.id] of the searched [Document][google.cloud.discoveryengine.v1.Document].boolean
hasDocument()
The document data snippet in the search response.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getId
String getId()
[Document.id][google.cloud.discoveryengine.v1.Document.id] of the searched [Document][google.cloud.discoveryengine.v1.Document].
string id = 1;
- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()
[Document.id][google.cloud.discoveryengine.v1.Document.id] of the searched [Document][google.cloud.discoveryengine.v1.Document].
string id = 1;
- Returns:
- The bytes for id.
-
hasDocument
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:
- Whether the document field is set.
-
getDocument
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:
- The document.
-
getDocumentOrBuilder
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;
-
-