Class SearchConfig.Builder (0.56.0)

public static final class SearchConfig.Builder extends GeneratedMessageV3.Builder<SearchConfig.Builder> implements SearchConfigOrBuilder

Search configuration for UCS search queries.

Protobuf type google.cloud.dialogflow.cx.v3.SearchConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllBoostSpecs(Iterable<? extends BoostSpecs> values)

public SearchConfig.Builder addAllBoostSpecs(Iterable<? extends BoostSpecs> values)

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3.BoostSpecs>
Returns
Type Description
SearchConfig.Builder

addAllFilterSpecs(Iterable<? extends FilterSpecs> values)

public SearchConfig.Builder addAllFilterSpecs(Iterable<? extends FilterSpecs> values)

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3.FilterSpecs>
Returns
Type Description
SearchConfig.Builder

addBoostSpecs(BoostSpecs value)

public SearchConfig.Builder addBoostSpecs(BoostSpecs value)

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value BoostSpecs
Returns
Type Description
SearchConfig.Builder

addBoostSpecs(BoostSpecs.Builder builderForValue)

public SearchConfig.Builder addBoostSpecs(BoostSpecs.Builder builderForValue)

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue BoostSpecs.Builder
Returns
Type Description
SearchConfig.Builder

addBoostSpecs(int index, BoostSpecs value)

public SearchConfig.Builder addBoostSpecs(int index, BoostSpecs value)

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value BoostSpecs
Returns
Type Description
SearchConfig.Builder

addBoostSpecs(int index, BoostSpecs.Builder builderForValue)

public SearchConfig.Builder addBoostSpecs(int index, BoostSpecs.Builder builderForValue)

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue BoostSpecs.Builder
Returns
Type Description
SearchConfig.Builder

addBoostSpecsBuilder()

public BoostSpecs.Builder addBoostSpecsBuilder()

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BoostSpecs.Builder

addBoostSpecsBuilder(int index)

public BoostSpecs.Builder addBoostSpecsBuilder(int index)

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
BoostSpecs.Builder

addFilterSpecs(FilterSpecs value)

public SearchConfig.Builder addFilterSpecs(FilterSpecs value)

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FilterSpecs
Returns
Type Description
SearchConfig.Builder

addFilterSpecs(FilterSpecs.Builder builderForValue)

public SearchConfig.Builder addFilterSpecs(FilterSpecs.Builder builderForValue)

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue FilterSpecs.Builder
Returns
Type Description
SearchConfig.Builder

addFilterSpecs(int index, FilterSpecs value)

public SearchConfig.Builder addFilterSpecs(int index, FilterSpecs value)

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value FilterSpecs
Returns
Type Description
SearchConfig.Builder

addFilterSpecs(int index, FilterSpecs.Builder builderForValue)

public SearchConfig.Builder addFilterSpecs(int index, FilterSpecs.Builder builderForValue)

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue FilterSpecs.Builder
Returns
Type Description
SearchConfig.Builder

addFilterSpecsBuilder()

public FilterSpecs.Builder addFilterSpecsBuilder()

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FilterSpecs.Builder

addFilterSpecsBuilder(int index)

public FilterSpecs.Builder addFilterSpecsBuilder(int index)

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FilterSpecs.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchConfig.Builder
Overrides

build()

public SearchConfig build()
Returns
Type Description
SearchConfig

buildPartial()

public SearchConfig buildPartial()
Returns
Type Description
SearchConfig

clear()

public SearchConfig.Builder clear()
Returns
Type Description
SearchConfig.Builder
Overrides

clearBoostSpecs()

public SearchConfig.Builder clearBoostSpecs()

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public SearchConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchConfig.Builder
Overrides

clearFilterSpecs()

public SearchConfig.Builder clearFilterSpecs()

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SearchConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchConfig.Builder
Overrides

clone()

public SearchConfig.Builder clone()
Returns
Type Description
SearchConfig.Builder
Overrides

getBoostSpecs(int index)

public BoostSpecs getBoostSpecs(int index)

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
BoostSpecs

getBoostSpecsBuilder(int index)

public BoostSpecs.Builder getBoostSpecsBuilder(int index)

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
BoostSpecs.Builder

getBoostSpecsBuilderList()

public List<BoostSpecs.Builder> getBoostSpecsBuilderList()

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getBoostSpecsCount()

public int getBoostSpecsCount()

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getBoostSpecsList()

public List<BoostSpecs> getBoostSpecsList()

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<BoostSpecs>

getBoostSpecsOrBuilder(int index)

public BoostSpecsOrBuilder getBoostSpecsOrBuilder(int index)

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
BoostSpecsOrBuilder

getBoostSpecsOrBuilderList()

public List<? extends BoostSpecsOrBuilder> getBoostSpecsOrBuilderList()

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3.BoostSpecsOrBuilder>

getDefaultInstanceForType()

public SearchConfig getDefaultInstanceForType()
Returns
Type Description
SearchConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFilterSpecs(int index)

public FilterSpecs getFilterSpecs(int index)

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FilterSpecs

getFilterSpecsBuilder(int index)

public FilterSpecs.Builder getFilterSpecsBuilder(int index)

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FilterSpecs.Builder

getFilterSpecsBuilderList()

public List<FilterSpecs.Builder> getFilterSpecsBuilderList()

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getFilterSpecsCount()

public int getFilterSpecsCount()

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getFilterSpecsList()

public List<FilterSpecs> getFilterSpecsList()

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<FilterSpecs>

getFilterSpecsOrBuilder(int index)

public FilterSpecsOrBuilder getFilterSpecsOrBuilder(int index)

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
FilterSpecsOrBuilder

getFilterSpecsOrBuilderList()

public List<? extends FilterSpecsOrBuilder> getFilterSpecsOrBuilderList()

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3.FilterSpecsOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchConfig other)

public SearchConfig.Builder mergeFrom(SearchConfig other)
Parameter
Name Description
other SearchConfig
Returns
Type Description
SearchConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchConfig.Builder
Overrides

removeBoostSpecs(int index)

public SearchConfig.Builder removeBoostSpecs(int index)

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SearchConfig.Builder

removeFilterSpecs(int index)

public SearchConfig.Builder removeFilterSpecs(int index)

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SearchConfig.Builder

setBoostSpecs(int index, BoostSpecs value)

public SearchConfig.Builder setBoostSpecs(int index, BoostSpecs value)

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value BoostSpecs
Returns
Type Description
SearchConfig.Builder

setBoostSpecs(int index, BoostSpecs.Builder builderForValue)

public SearchConfig.Builder setBoostSpecs(int index, BoostSpecs.Builder builderForValue)

Optional. Boosting configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue BoostSpecs.Builder
Returns
Type Description
SearchConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchConfig.Builder
Overrides

setFilterSpecs(int index, FilterSpecs value)

public SearchConfig.Builder setFilterSpecs(int index, FilterSpecs value)

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value FilterSpecs
Returns
Type Description
SearchConfig.Builder

setFilterSpecs(int index, FilterSpecs.Builder builderForValue)

public SearchConfig.Builder setFilterSpecs(int index, FilterSpecs.Builder builderForValue)

Optional. Filter configuration for the datastores.

repeated .google.cloud.dialogflow.cx.v3.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue FilterSpecs.Builder
Returns
Type Description
SearchConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SearchConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchConfig.Builder
Overrides