Class Engine.SearchEngineConfig.Builder (0.40.0)

public static final class Engine.SearchEngineConfig.Builder extends GeneratedMessageV3.Builder<Engine.SearchEngineConfig.Builder> implements Engine.SearchEngineConfigOrBuilder

Configurations for a Search Engine.

Protobuf type google.cloud.discoveryengine.v1alpha.Engine.SearchEngineConfig

Static Methods

getDescriptor()

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

Methods

addAllSearchAddOns(Iterable<? extends SearchAddOn> values)

public Engine.SearchEngineConfig.Builder addAllSearchAddOns(Iterable<? extends SearchAddOn> values)

The add-on that this search engine enables.

repeated .google.cloud.discoveryengine.v1alpha.SearchAddOn search_add_ons = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1alpha.SearchAddOn>

The searchAddOns to add.

Returns
Type Description
Engine.SearchEngineConfig.Builder

This builder for chaining.

addAllSearchAddOnsValue(Iterable<Integer> values)

public Engine.SearchEngineConfig.Builder addAllSearchAddOnsValue(Iterable<Integer> values)

The add-on that this search engine enables.

repeated .google.cloud.discoveryengine.v1alpha.SearchAddOn search_add_ons = 2;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for searchAddOns to add.

Returns
Type Description
Engine.SearchEngineConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSearchAddOns(SearchAddOn value)

public Engine.SearchEngineConfig.Builder addSearchAddOns(SearchAddOn value)

The add-on that this search engine enables.

repeated .google.cloud.discoveryengine.v1alpha.SearchAddOn search_add_ons = 2;

Parameter
Name Description
value SearchAddOn

The searchAddOns to add.

Returns
Type Description
Engine.SearchEngineConfig.Builder

This builder for chaining.

addSearchAddOnsValue(int value)

public Engine.SearchEngineConfig.Builder addSearchAddOnsValue(int value)

The add-on that this search engine enables.

repeated .google.cloud.discoveryengine.v1alpha.SearchAddOn search_add_ons = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for searchAddOns to add.

Returns
Type Description
Engine.SearchEngineConfig.Builder

This builder for chaining.

build()

public Engine.SearchEngineConfig build()
Returns
Type Description
Engine.SearchEngineConfig

buildPartial()

public Engine.SearchEngineConfig buildPartial()
Returns
Type Description
Engine.SearchEngineConfig

clear()

public Engine.SearchEngineConfig.Builder clear()
Returns
Type Description
Engine.SearchEngineConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSearchAddOns()

public Engine.SearchEngineConfig.Builder clearSearchAddOns()

The add-on that this search engine enables.

repeated .google.cloud.discoveryengine.v1alpha.SearchAddOn search_add_ons = 2;

Returns
Type Description
Engine.SearchEngineConfig.Builder

This builder for chaining.

clearSearchTier()

public Engine.SearchEngineConfig.Builder clearSearchTier()

The search feature tier of this engine.

Different tiers might have different pricing. To learn more, check the pricing documentation.

Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.

.google.cloud.discoveryengine.v1alpha.SearchTier search_tier = 1;

Returns
Type Description
Engine.SearchEngineConfig.Builder

This builder for chaining.

clone()

public Engine.SearchEngineConfig.Builder clone()
Returns
Type Description
Engine.SearchEngineConfig.Builder
Overrides

getDefaultInstanceForType()

public Engine.SearchEngineConfig getDefaultInstanceForType()
Returns
Type Description
Engine.SearchEngineConfig

getDescriptorForType()

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

getSearchAddOns(int index)

public SearchAddOn getSearchAddOns(int index)

The add-on that this search engine enables.

repeated .google.cloud.discoveryengine.v1alpha.SearchAddOn search_add_ons = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
SearchAddOn

The searchAddOns at the given index.

getSearchAddOnsCount()

public int getSearchAddOnsCount()

The add-on that this search engine enables.

repeated .google.cloud.discoveryengine.v1alpha.SearchAddOn search_add_ons = 2;

Returns
Type Description
int

The count of searchAddOns.

getSearchAddOnsList()

public List<SearchAddOn> getSearchAddOnsList()

The add-on that this search engine enables.

repeated .google.cloud.discoveryengine.v1alpha.SearchAddOn search_add_ons = 2;

Returns
Type Description
List<SearchAddOn>

A list containing the searchAddOns.

getSearchAddOnsValue(int index)

public int getSearchAddOnsValue(int index)

The add-on that this search engine enables.

repeated .google.cloud.discoveryengine.v1alpha.SearchAddOn search_add_ons = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of searchAddOns at the given index.

getSearchAddOnsValueList()

public List<Integer> getSearchAddOnsValueList()

The add-on that this search engine enables.

repeated .google.cloud.discoveryengine.v1alpha.SearchAddOn search_add_ons = 2;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for searchAddOns.

getSearchTier()

public SearchTier getSearchTier()

The search feature tier of this engine.

Different tiers might have different pricing. To learn more, check the pricing documentation.

Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.

.google.cloud.discoveryengine.v1alpha.SearchTier search_tier = 1;

Returns
Type Description
SearchTier

The searchTier.

getSearchTierValue()

public int getSearchTierValue()

The search feature tier of this engine.

Different tiers might have different pricing. To learn more, check the pricing documentation.

Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.

.google.cloud.discoveryengine.v1alpha.SearchTier search_tier = 1;

Returns
Type Description
int

The enum numeric value on the wire for searchTier.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Engine.SearchEngineConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSearchAddOns(int index, SearchAddOn value)

public Engine.SearchEngineConfig.Builder setSearchAddOns(int index, SearchAddOn value)

The add-on that this search engine enables.

repeated .google.cloud.discoveryengine.v1alpha.SearchAddOn search_add_ons = 2;

Parameters
Name Description
index int

The index to set the value at.

value SearchAddOn

The searchAddOns to set.

Returns
Type Description
Engine.SearchEngineConfig.Builder

This builder for chaining.

setSearchAddOnsValue(int index, int value)

public Engine.SearchEngineConfig.Builder setSearchAddOnsValue(int index, int value)

The add-on that this search engine enables.

repeated .google.cloud.discoveryengine.v1alpha.SearchAddOn search_add_ons = 2;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for searchAddOns to set.

Returns
Type Description
Engine.SearchEngineConfig.Builder

This builder for chaining.

setSearchTier(SearchTier value)

public Engine.SearchEngineConfig.Builder setSearchTier(SearchTier value)

The search feature tier of this engine.

Different tiers might have different pricing. To learn more, check the pricing documentation.

Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.

.google.cloud.discoveryengine.v1alpha.SearchTier search_tier = 1;

Parameter
Name Description
value SearchTier

The searchTier to set.

Returns
Type Description
Engine.SearchEngineConfig.Builder

This builder for chaining.

setSearchTierValue(int value)

public Engine.SearchEngineConfig.Builder setSearchTierValue(int value)

The search feature tier of this engine.

Different tiers might have different pricing. To learn more, check the pricing documentation.

Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.

.google.cloud.discoveryengine.v1alpha.SearchTier search_tier = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for searchTier to set.

Returns
Type Description
Engine.SearchEngineConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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