Class SearchDocumentsResponse.MatchingDocument.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
- com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument.Builder
-
- All Implemented Interfaces:
SearchDocumentsResponse.MatchingDocumentOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SearchDocumentsResponse.MatchingDocument
public static final class SearchDocumentsResponse.MatchingDocument.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder> implements SearchDocumentsResponse.MatchingDocumentOrBuilder
Document entry with metadata inside [SearchDocumentsResponse][google.cloud.contentwarehouse.v1.SearchDocumentsResponse]
Protobuf typegoogle.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchDocumentsResponse.MatchingDocument.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SearchDocumentsResponse.MatchingDocument
build()
SearchDocumentsResponse.MatchingDocument
buildPartial()
SearchDocumentsResponse.MatchingDocument.Builder
clear()
SearchDocumentsResponse.MatchingDocument.Builder
clearDocument()
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.MatchingDocument.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SearchDocumentsResponse.MatchingDocument.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SearchDocumentsResponse.MatchingDocument.Builder
clearQaResult()
Experimental.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.SearchDocumentsResponse.MatchingDocument.Builder
clone()
SearchDocumentsResponse.MatchingDocument
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Document
getDocument()
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].Document.Builder
getDocumentBuilder()
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].DocumentOrBuilder
getDocumentOrBuilder()
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].QAResult
getQaResult()
Experimental.QAResult.Builder
getQaResultBuilder()
Experimental.QAResultOrBuilder
getQaResultOrBuilder()
Experimental.String
getSearchTextSnippet()
Contains snippets of text from the document full raw text that most closely match a search query's keywords, if available.com.google.protobuf.ByteString
getSearchTextSnippetBytes()
Contains snippets of text from the document full raw text that most closely match a search query's keywords, if available.boolean
hasDocument()
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].boolean
hasQaResult()
Experimental.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SearchDocumentsResponse.MatchingDocument.Builder
mergeDocument(Document value)
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.MatchingDocument.Builder
mergeFrom(SearchDocumentsResponse.MatchingDocument other)
SearchDocumentsResponse.MatchingDocument.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SearchDocumentsResponse.MatchingDocument.Builder
mergeFrom(com.google.protobuf.Message other)
SearchDocumentsResponse.MatchingDocument.Builder
mergeQaResult(QAResult value)
Experimental.SearchDocumentsResponse.MatchingDocument.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SearchDocumentsResponse.MatchingDocument.Builder
setDocument(Document value)
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.MatchingDocument.Builder
setDocument(Document.Builder builderForValue)
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.MatchingDocument.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SearchDocumentsResponse.MatchingDocument.Builder
setQaResult(QAResult value)
Experimental.SearchDocumentsResponse.MatchingDocument.Builder
setQaResult(QAResult.Builder builderForValue)
Experimental.SearchDocumentsResponse.MatchingDocument.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
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.SearchDocumentsResponse.MatchingDocument.Builder
setSearchTextSnippetBytes(com.google.protobuf.ByteString value)
Contains snippets of text from the document full raw text that most closely match a search query's keywords, if available.SearchDocumentsResponse.MatchingDocument.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
clear
public SearchDocumentsResponse.MatchingDocument.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
getDefaultInstanceForType
public SearchDocumentsResponse.MatchingDocument getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SearchDocumentsResponse.MatchingDocument build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SearchDocumentsResponse.MatchingDocument buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SearchDocumentsResponse.MatchingDocument.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
setField
public SearchDocumentsResponse.MatchingDocument.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
clearField
public SearchDocumentsResponse.MatchingDocument.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
clearOneof
public SearchDocumentsResponse.MatchingDocument.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
setRepeatedField
public SearchDocumentsResponse.MatchingDocument.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
addRepeatedField
public SearchDocumentsResponse.MatchingDocument.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
mergeFrom
public SearchDocumentsResponse.MatchingDocument.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
mergeFrom
public SearchDocumentsResponse.MatchingDocument.Builder mergeFrom(SearchDocumentsResponse.MatchingDocument other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
mergeFrom
public SearchDocumentsResponse.MatchingDocument.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
- Throws:
IOException
-
hasDocument
public boolean hasDocument()
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest]. This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
- Specified by:
hasDocument
in interfaceSearchDocumentsResponse.MatchingDocumentOrBuilder
- Returns:
- Whether the document field is set.
-
getDocument
public Document getDocument()
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest]. This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
- Specified by:
getDocument
in interfaceSearchDocumentsResponse.MatchingDocumentOrBuilder
- Returns:
- The document.
-
setDocument
public SearchDocumentsResponse.MatchingDocument.Builder setDocument(Document value)
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest]. This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
-
setDocument
public SearchDocumentsResponse.MatchingDocument.Builder setDocument(Document.Builder builderForValue)
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest]. This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
-
mergeDocument
public SearchDocumentsResponse.MatchingDocument.Builder mergeDocument(Document value)
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest]. This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
-
clearDocument
public SearchDocumentsResponse.MatchingDocument.Builder clearDocument()
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest]. This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
-
getDocumentBuilder
public Document.Builder getDocumentBuilder()
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.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][google.cloud.contentwarehouse.v1.SearchDocumentsRequest]. This document only contains indexed metadata information.
.google.cloud.contentwarehouse.v1.Document document = 1;
- Specified by:
getDocumentOrBuilder
in interfaceSearchDocumentsResponse.MatchingDocumentOrBuilder
-
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][google.cloud.contentwarehouse.v1.QAResult.highlights].
string search_text_snippet = 2;
- Specified by:
getSearchTextSnippet
in interfaceSearchDocumentsResponse.MatchingDocumentOrBuilder
- Returns:
- The searchTextSnippet.
-
getSearchTextSnippetBytes
public com.google.protobuf.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][google.cloud.contentwarehouse.v1.QAResult.highlights].
string search_text_snippet = 2;
- Specified by:
getSearchTextSnippetBytes
in interfaceSearchDocumentsResponse.MatchingDocumentOrBuilder
- Returns:
- The bytes for searchTextSnippet.
-
setSearchTextSnippet
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][google.cloud.contentwarehouse.v1.QAResult.highlights].
string search_text_snippet = 2;
- Parameters:
value
- The searchTextSnippet to set.- Returns:
- This builder for chaining.
-
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][google.cloud.contentwarehouse.v1.QAResult.highlights].
string search_text_snippet = 2;
- Returns:
- This builder for chaining.
-
setSearchTextSnippetBytes
public SearchDocumentsResponse.MatchingDocument.Builder setSearchTextSnippetBytes(com.google.protobuf.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][google.cloud.contentwarehouse.v1.QAResult.highlights].
string search_text_snippet = 2;
- Parameters:
value
- The bytes for searchTextSnippet to set.- Returns:
- This builder for chaining.
-
hasQaResult
public boolean hasQaResult()
Experimental. Additional result info if the question-answering feature is enabled.
.google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
- Specified by:
hasQaResult
in interfaceSearchDocumentsResponse.MatchingDocumentOrBuilder
- Returns:
- Whether the qaResult field is set.
-
getQaResult
public QAResult getQaResult()
Experimental. Additional result info if the question-answering feature is enabled.
.google.cloud.contentwarehouse.v1.QAResult qa_result = 3;
- Specified by:
getQaResult
in interfaceSearchDocumentsResponse.MatchingDocumentOrBuilder
- Returns:
- The qaResult.
-
setQaResult
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
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;
-
mergeQaResult
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;
-
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;
-
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;
- Specified by:
getQaResultOrBuilder
in interfaceSearchDocumentsResponse.MatchingDocumentOrBuilder
-
setUnknownFields
public final SearchDocumentsResponse.MatchingDocument.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
mergeUnknownFields
public final SearchDocumentsResponse.MatchingDocument.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
-