public static final class SearchRequest.ContentSearchSpec.Builder extends GeneratedMessageV3.Builder<SearchRequest.ContentSearchSpec.Builder> implements SearchRequest.ContentSearchSpecOrBuilder
The specification that configs the desired behavior of the UCS content
search.
Protobuf type google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec
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 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
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 there is no snippet spec provided, there will be no snippet in the
search result.
.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
clone()
public SearchRequest.ContentSearchSpec.Builder clone()
Overrides
getDefaultInstanceForType()
public SearchRequest.ContentSearchSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getSnippetSpec()
public SearchRequest.ContentSearchSpec.SnippetSpec getSnippetSpec()
If there is no snippet spec provided, there will be no snippet in the
search result.
.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
getSnippetSpecBuilder()
public SearchRequest.ContentSearchSpec.SnippetSpec.Builder getSnippetSpecBuilder()
If there is no snippet spec provided, there will be no snippet in the
search result.
.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
getSnippetSpecOrBuilder()
public SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder getSnippetSpecOrBuilder()
If there is no snippet spec provided, there will be no snippet in the
search result.
.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
hasSnippetSpec()
public boolean hasSnippetSpec()
If there is no snippet spec provided, there will be no snippet in the
search result.
.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
Returns |
---|
Type | Description |
boolean | Whether the snippetSpec field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
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 there is no snippet spec provided, there will be no snippet in the
search result.
.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.ContentSearchSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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 there is no snippet spec provided, there will be no snippet in the
search result.
.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
setSnippetSpec(SearchRequest.ContentSearchSpec.SnippetSpec.Builder builderForValue)
public SearchRequest.ContentSearchSpec.Builder setSnippetSpec(SearchRequest.ContentSearchSpec.SnippetSpec.Builder builderForValue)
If there is no snippet spec provided, there will be no snippet in the
search result.
.google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.ContentSearchSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides