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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchDocumentsResponse.MatchingDocument.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SearchDocumentsResponse.MatchingDocument build()
buildPartial()
public SearchDocumentsResponse.MatchingDocument buildPartial()
clear()
public SearchDocumentsResponse.MatchingDocument.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public SearchDocumentsResponse.MatchingDocument.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchDocumentsResponse.MatchingDocument.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
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;
clone()
public SearchDocumentsResponse.MatchingDocument.Builder clone()
Overrides
getDefaultInstanceForType()
public SearchDocumentsResponse.MatchingDocument getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
Document | The document.
|
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;
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder()
Document that matches the specified SearchDocumentsRequest.
This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
getQaResult()
public QAResult getQaResult()
Experimental.
Additional result info if the question-answering feature is enabled.
.google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
Returns |
---|
Type | Description |
QAResult | The qaResult.
|
getQaResultBuilder()
public QAResult.Builder getQaResultBuilder()
Experimental.
Additional result info if the question-answering feature is enabled.
.google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
getQaResultOrBuilder()
public QAResultOrBuilder getQaResultOrBuilder()
Experimental.
Additional result info if the question-answering feature is enabled.
.google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(SearchDocumentsResponse.MatchingDocument other)
public SearchDocumentsResponse.MatchingDocument.Builder mergeFrom(SearchDocumentsResponse.MatchingDocument other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SearchDocumentsResponse.MatchingDocument.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchDocumentsResponse.MatchingDocument.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchDocumentsResponse.MatchingDocument.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public SearchDocumentsResponse.MatchingDocument.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchDocumentsResponse.MatchingDocument.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchDocumentsResponse.MatchingDocument.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides