public static final class SearchRequest.ContentSearchSpec.Builder extends GeneratedMessageV3.Builder<SearchRequest.ContentSearchSpec.Builder> implements SearchRequest.ContentSearchSpecOrBuilder
A specification for configuring the behavior of content search.
Protobuf type google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 SearchRequest.ContentSearchSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SearchRequest.ContentSearchSpec build()
buildPartial()
public SearchRequest.ContentSearchSpec buildPartial()
clear()
public SearchRequest.ContentSearchSpec.Builder clear()
Overrides
public SearchRequest.ContentSearchSpec.Builder clearExtractiveContentSpec()
If there is no extractive_content_spec provided, there will be no
extractive answer in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
clearField(Descriptors.FieldDescriptor field)
public SearchRequest.ContentSearchSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchRequest.ContentSearchSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSnippetSpec()
public SearchRequest.ContentSearchSpec.Builder clearSnippetSpec()
If snippetSpec
is not specified, snippets are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
clearSummarySpec()
public SearchRequest.ContentSearchSpec.Builder clearSummarySpec()
If summarySpec
is not specified, summaries are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;
clone()
public SearchRequest.ContentSearchSpec.Builder clone()
Overrides
getDefaultInstanceForType()
public SearchRequest.ContentSearchSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public SearchRequest.ContentSearchSpec.ExtractiveContentSpec getExtractiveContentSpec()
If there is no extractive_content_spec provided, there will be no
extractive answer in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
public SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder getExtractiveContentSpecBuilder()
If there is no extractive_content_spec provided, there will be no
extractive answer in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
public SearchRequest.ContentSearchSpec.ExtractiveContentSpecOrBuilder getExtractiveContentSpecOrBuilder()
If there is no extractive_content_spec provided, there will be no
extractive answer in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
getSnippetSpec()
public SearchRequest.ContentSearchSpec.SnippetSpec getSnippetSpec()
If snippetSpec
is not specified, snippets are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
getSnippetSpecBuilder()
public SearchRequest.ContentSearchSpec.SnippetSpec.Builder getSnippetSpecBuilder()
If snippetSpec
is not specified, snippets are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
getSnippetSpecOrBuilder()
public SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder getSnippetSpecOrBuilder()
If snippetSpec
is not specified, snippets are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
getSummarySpec()
public SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec()
If summarySpec
is not specified, summaries are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;
getSummarySpecBuilder()
public SearchRequest.ContentSearchSpec.SummarySpec.Builder getSummarySpecBuilder()
If summarySpec
is not specified, summaries are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;
getSummarySpecOrBuilder()
public SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder()
If summarySpec
is not specified, summaries are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;
public boolean hasExtractiveContentSpec()
If there is no extractive_content_spec provided, there will be no
extractive answer in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
Returns |
---|
Type | Description |
boolean | Whether the extractiveContentSpec field is set.
|
hasSnippetSpec()
public boolean hasSnippetSpec()
If snippetSpec
is not specified, snippets are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
Returns |
---|
Type | Description |
boolean | Whether the snippetSpec field is set.
|
hasSummarySpec()
public boolean hasSummarySpec()
If summarySpec
is not specified, summaries are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;
Returns |
---|
Type | Description |
boolean | Whether the summarySpec field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public SearchRequest.ContentSearchSpec.Builder mergeExtractiveContentSpec(SearchRequest.ContentSearchSpec.ExtractiveContentSpec value)
If there is no extractive_content_spec provided, there will be no
extractive answer in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
mergeFrom(SearchRequest.ContentSearchSpec other)
public SearchRequest.ContentSearchSpec.Builder mergeFrom(SearchRequest.ContentSearchSpec other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SearchRequest.ContentSearchSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchRequest.ContentSearchSpec.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeSnippetSpec(SearchRequest.ContentSearchSpec.SnippetSpec value)
public SearchRequest.ContentSearchSpec.Builder mergeSnippetSpec(SearchRequest.ContentSearchSpec.SnippetSpec value)
If snippetSpec
is not specified, snippets are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
mergeSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec value)
public SearchRequest.ContentSearchSpec.Builder mergeSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec value)
If summarySpec
is not specified, summaries are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.ContentSearchSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public SearchRequest.ContentSearchSpec.Builder setExtractiveContentSpec(SearchRequest.ContentSearchSpec.ExtractiveContentSpec value)
If there is no extractive_content_spec provided, there will be no
extractive answer in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
public SearchRequest.ContentSearchSpec.Builder setExtractiveContentSpec(SearchRequest.ContentSearchSpec.ExtractiveContentSpec.Builder builderForValue)
If there is no extractive_content_spec provided, there will be no
extractive answer in the search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
setField(Descriptors.FieldDescriptor field, Object value)
public SearchRequest.ContentSearchSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchRequest.ContentSearchSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSnippetSpec(SearchRequest.ContentSearchSpec.SnippetSpec value)
public SearchRequest.ContentSearchSpec.Builder setSnippetSpec(SearchRequest.ContentSearchSpec.SnippetSpec value)
If snippetSpec
is not specified, snippets are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
setSnippetSpec(SearchRequest.ContentSearchSpec.SnippetSpec.Builder builderForValue)
public SearchRequest.ContentSearchSpec.Builder setSnippetSpec(SearchRequest.ContentSearchSpec.SnippetSpec.Builder builderForValue)
If snippetSpec
is not specified, snippets are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec value)
public SearchRequest.ContentSearchSpec.Builder setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec value)
If summarySpec
is not specified, summaries are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;
setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.Builder builderForValue)
public SearchRequest.ContentSearchSpec.Builder setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.Builder builderForValue)
If summarySpec
is not specified, summaries are not included in the
search response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.ContentSearchSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides