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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SearchDocumentsResponse.MatchingDocumentbuild()SearchDocumentsResponse.MatchingDocumentbuildPartial()SearchDocumentsResponse.MatchingDocument.Builderclear()SearchDocumentsResponse.MatchingDocument.BuilderclearDocument()Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.MatchingDocument.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SearchDocumentsResponse.MatchingDocument.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SearchDocumentsResponse.MatchingDocument.BuilderclearQaResult()Experimental.SearchDocumentsResponse.MatchingDocument.BuilderclearSearchTextSnippet()Contains snippets of text from the document full raw text that most closely match a search query's keywords, if available.SearchDocumentsResponse.MatchingDocument.Builderclone()SearchDocumentsResponse.MatchingDocumentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DocumentgetDocument()Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].Document.BuildergetDocumentBuilder()Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].DocumentOrBuildergetDocumentOrBuilder()Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].QAResultgetQaResult()Experimental.QAResult.BuildergetQaResultBuilder()Experimental.QAResultOrBuildergetQaResultOrBuilder()Experimental.StringgetSearchTextSnippet()Contains snippets of text from the document full raw text that most closely match a search query's keywords, if available.com.google.protobuf.ByteStringgetSearchTextSnippetBytes()Contains snippets of text from the document full raw text that most closely match a search query's keywords, if available.booleanhasDocument()Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].booleanhasQaResult()Experimental.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SearchDocumentsResponse.MatchingDocument.BuildermergeDocument(Document value)Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.MatchingDocument.BuildermergeFrom(SearchDocumentsResponse.MatchingDocument other)SearchDocumentsResponse.MatchingDocument.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SearchDocumentsResponse.MatchingDocument.BuildermergeFrom(com.google.protobuf.Message other)SearchDocumentsResponse.MatchingDocument.BuildermergeQaResult(QAResult value)Experimental.SearchDocumentsResponse.MatchingDocument.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SearchDocumentsResponse.MatchingDocument.BuildersetDocument(Document value)Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.MatchingDocument.BuildersetDocument(Document.Builder builderForValue)Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.MatchingDocument.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SearchDocumentsResponse.MatchingDocument.BuildersetQaResult(QAResult value)Experimental.SearchDocumentsResponse.MatchingDocument.BuildersetQaResult(QAResult.Builder builderForValue)Experimental.SearchDocumentsResponse.MatchingDocument.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SearchDocumentsResponse.MatchingDocument.BuildersetSearchTextSnippet(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.BuildersetSearchTextSnippetBytes(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.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
clear
public SearchDocumentsResponse.MatchingDocument.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
getDefaultInstanceForType
public SearchDocumentsResponse.MatchingDocument getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SearchDocumentsResponse.MatchingDocument build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SearchDocumentsResponse.MatchingDocument buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SearchDocumentsResponse.MatchingDocument.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
setField
public SearchDocumentsResponse.MatchingDocument.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
clearField
public SearchDocumentsResponse.MatchingDocument.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
clearOneof
public SearchDocumentsResponse.MatchingDocument.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
addRepeatedField
public SearchDocumentsResponse.MatchingDocument.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
mergeFrom
public SearchDocumentsResponse.MatchingDocument.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
mergeFrom
public SearchDocumentsResponse.MatchingDocument.Builder mergeFrom(SearchDocumentsResponse.MatchingDocument other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasDocumentin 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:
getDocumentin 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:
getDocumentOrBuilderin 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:
getSearchTextSnippetin 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:
getSearchTextSnippetBytesin 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:
hasQaResultin 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:
getQaResultin 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:
getQaResultOrBuilderin interfaceSearchDocumentsResponse.MatchingDocumentOrBuilder
-
setUnknownFields
public final SearchDocumentsResponse.MatchingDocument.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
mergeUnknownFields
public final SearchDocumentsResponse.MatchingDocument.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.MatchingDocument.Builder>
-
-