public static final class SearchDocumentsResponse.MatchingDocument.Builder extends GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder> implements SearchDocumentsResponse.MatchingDocumentOrBuilder
Document entry with metadata inside SearchDocumentsResponse
Protobuf type
google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchDocumentsResponse.MatchingDocument.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SearchDocumentsResponse.MatchingDocument build()
Returns
buildPartial()
public SearchDocumentsResponse.MatchingDocument buildPartial()
Returns
clear()
public SearchDocumentsResponse.MatchingDocument.Builder clear()
Returns
Overrides
clearDocument()
public SearchDocumentsResponse.MatchingDocument.Builder clearDocument()
Document that matches the specified SearchDocumentsRequest.
This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public SearchDocumentsResponse.MatchingDocument.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchDocumentsResponse.MatchingDocument.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearQaResult()
public SearchDocumentsResponse.MatchingDocument.Builder clearQaResult()
Experimental.
Additional result info if the question-answering feature is enabled.
.google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
Returns
clearSearchTextSnippet()
public SearchDocumentsResponse.MatchingDocument.Builder clearSearchTextSnippet()
Contains snippets of text from the document full raw text that most
closely match a search query's keywords, if available. All HTML tags in
the original fields are stripped when returned in this field, and
matching query keywords are enclosed in HTML bold tags.
If the question-answering feature is enabled, this field will instead
contain a snippet that answers the user's natural-language query. No HTML
bold tags will be present, and highlights in the answer snippet can be
found in QAResult.highlights.
string search_text_snippet = 2;
Returns
clone()
public SearchDocumentsResponse.MatchingDocument.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SearchDocumentsResponse.MatchingDocument getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDocument()
public Document getDocument()
Document that matches the specified SearchDocumentsRequest.
This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
Returns
getDocumentBuilder()
public Document.Builder getDocumentBuilder()
Document that matches the specified SearchDocumentsRequest.
This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
Returns
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder()
Document that matches the specified SearchDocumentsRequest.
This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
Returns
getQaResult()
public QAResult getQaResult()
Experimental.
Additional result info if the question-answering feature is enabled.
.google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
Returns
getQaResultBuilder()
public QAResult.Builder getQaResultBuilder()
Experimental.
Additional result info if the question-answering feature is enabled.
.google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
Returns
getQaResultOrBuilder()
public QAResultOrBuilder getQaResultOrBuilder()
Experimental.
Additional result info if the question-answering feature is enabled.
.google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
Returns
getSearchTextSnippet()
public String getSearchTextSnippet()
Contains snippets of text from the document full raw text that most
closely match a search query's keywords, if available. All HTML tags in
the original fields are stripped when returned in this field, and
matching query keywords are enclosed in HTML bold tags.
If the question-answering feature is enabled, this field will instead
contain a snippet that answers the user's natural-language query. No HTML
bold tags will be present, and highlights in the answer snippet can be
found in QAResult.highlights.
string search_text_snippet = 2;
Returns
Type | Description |
String | The searchTextSnippet.
|
getSearchTextSnippetBytes()
public ByteString getSearchTextSnippetBytes()
Contains snippets of text from the document full raw text that most
closely match a search query's keywords, if available. All HTML tags in
the original fields are stripped when returned in this field, and
matching query keywords are enclosed in HTML bold tags.
If the question-answering feature is enabled, this field will instead
contain a snippet that answers the user's natural-language query. No HTML
bold tags will be present, and highlights in the answer snippet can be
found in QAResult.highlights.
string search_text_snippet = 2;
Returns
Type | Description |
ByteString | The bytes for searchTextSnippet.
|
hasDocument()
public boolean hasDocument()
Document that matches the specified SearchDocumentsRequest.
This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
Returns
Type | Description |
boolean | Whether the document field is set.
|
hasQaResult()
public boolean hasQaResult()
Experimental.
Additional result info if the question-answering feature is enabled.
.google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
Returns
Type | Description |
boolean | Whether the qaResult field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeDocument(Document value)
public SearchDocumentsResponse.MatchingDocument.Builder mergeDocument(Document value)
Document that matches the specified SearchDocumentsRequest.
This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
Parameter
Returns
mergeFrom(SearchDocumentsResponse.MatchingDocument other)
public SearchDocumentsResponse.MatchingDocument.Builder mergeFrom(SearchDocumentsResponse.MatchingDocument other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SearchDocumentsResponse.MatchingDocument.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SearchDocumentsResponse.MatchingDocument.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeQaResult(QAResult value)
public SearchDocumentsResponse.MatchingDocument.Builder mergeQaResult(QAResult value)
Experimental.
Additional result info if the question-answering feature is enabled.
.google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchDocumentsResponse.MatchingDocument.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setDocument(Document value)
public SearchDocumentsResponse.MatchingDocument.Builder setDocument(Document value)
Document that matches the specified SearchDocumentsRequest.
This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
Parameter
Returns
setDocument(Document.Builder builderForValue)
public SearchDocumentsResponse.MatchingDocument.Builder setDocument(Document.Builder builderForValue)
Document that matches the specified SearchDocumentsRequest.
This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SearchDocumentsResponse.MatchingDocument.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setQaResult(QAResult value)
public SearchDocumentsResponse.MatchingDocument.Builder setQaResult(QAResult value)
Experimental.
Additional result info if the question-answering feature is enabled.
.google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
Parameter
Returns
setQaResult(QAResult.Builder builderForValue)
public SearchDocumentsResponse.MatchingDocument.Builder setQaResult(QAResult.Builder builderForValue)
Experimental.
Additional result info if the question-answering feature is enabled.
.google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchDocumentsResponse.MatchingDocument.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSearchTextSnippet(String value)
public SearchDocumentsResponse.MatchingDocument.Builder setSearchTextSnippet(String value)
Contains snippets of text from the document full raw text that most
closely match a search query's keywords, if available. All HTML tags in
the original fields are stripped when returned in this field, and
matching query keywords are enclosed in HTML bold tags.
If the question-answering feature is enabled, this field will instead
contain a snippet that answers the user's natural-language query. No HTML
bold tags will be present, and highlights in the answer snippet can be
found in QAResult.highlights.
string search_text_snippet = 2;
Parameter
Name | Description |
value | String
The searchTextSnippet to set.
|
Returns
setSearchTextSnippetBytes(ByteString value)
public SearchDocumentsResponse.MatchingDocument.Builder setSearchTextSnippetBytes(ByteString value)
Contains snippets of text from the document full raw text that most
closely match a search query's keywords, if available. All HTML tags in
the original fields are stripped when returned in this field, and
matching query keywords are enclosed in HTML bold tags.
If the question-answering feature is enabled, this field will instead
contain a snippet that answers the user's natural-language query. No HTML
bold tags will be present, and highlights in the answer snippet can be
found in QAResult.highlights.
string search_text_snippet = 2;
Parameter
Name | Description |
value | ByteString
The bytes for searchTextSnippet to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchDocumentsResponse.MatchingDocument.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides