Class Engine.SearchEngineConfig.Builder (0.35.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.v1.Engine.SearchEngineConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1.SearchAddOn search_add_ons = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.discoveryengine.v1.SearchAddOn>

The searchAddOns to add.

Returns
TypeDescription
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.v1.SearchAddOn search_add_ons = 2;

Parameter
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
Engine.SearchEngineConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Engine.SearchEngineConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1.SearchAddOn search_add_ons = 2;

Parameter
NameDescription
valueSearchAddOn

The searchAddOns to add.

Returns
TypeDescription
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.v1.SearchAddOn search_add_ons = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Engine.SearchEngineConfig.Builder

This builder for chaining.

build()

public Engine.SearchEngineConfig build()
Returns
TypeDescription
Engine.SearchEngineConfig

buildPartial()

public Engine.SearchEngineConfig buildPartial()
Returns
TypeDescription
Engine.SearchEngineConfig

clear()

public Engine.SearchEngineConfig.Builder clear()
Returns
TypeDescription
Engine.SearchEngineConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Engine.SearchEngineConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Engine.SearchEngineConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Engine.SearchEngineConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Engine.SearchEngineConfig.Builder
Overrides

clearSearchAddOns()

public Engine.SearchEngineConfig.Builder clearSearchAddOns()

The add-on that this search engine enables.

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

Returns
TypeDescription
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, please check the pricing documentation.

Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.

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

Returns
TypeDescription
Engine.SearchEngineConfig.Builder

This builder for chaining.

clone()

public Engine.SearchEngineConfig.Builder clone()
Returns
TypeDescription
Engine.SearchEngineConfig.Builder
Overrides

getDefaultInstanceForType()

public Engine.SearchEngineConfig getDefaultInstanceForType()
Returns
TypeDescription
Engine.SearchEngineConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSearchAddOns(int index)

public SearchAddOn getSearchAddOns(int index)

The add-on that this search engine enables.

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
SearchAddOn

The searchAddOns at the given index.

getSearchAddOnsCount()

public int getSearchAddOnsCount()

The add-on that this search engine enables.

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

Returns
TypeDescription
int

The count of searchAddOns.

getSearchAddOnsList()

public List<SearchAddOn> getSearchAddOnsList()

The add-on that this search engine enables.

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

Returns
TypeDescription
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.v1.SearchAddOn search_add_ons = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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.v1.SearchAddOn search_add_ons = 2;

Returns
TypeDescription
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, please check the pricing documentation.

Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.

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

Returns
TypeDescription
SearchTier

The searchTier.

getSearchTierValue()

public int getSearchTierValue()

The search feature tier of this engine.

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

Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.

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

Returns
TypeDescription
int

The enum numeric value on the wire for searchTier.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Engine.SearchEngineConfig other)

public Engine.SearchEngineConfig.Builder mergeFrom(Engine.SearchEngineConfig other)
Parameter
NameDescription
otherEngine.SearchEngineConfig
Returns
TypeDescription
Engine.SearchEngineConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Engine.SearchEngineConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Engine.SearchEngineConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Engine.SearchEngineConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Engine.SearchEngineConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Engine.SearchEngineConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Engine.SearchEngineConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Engine.SearchEngineConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1.SearchAddOn search_add_ons = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueSearchAddOn

The searchAddOns to set.

Returns
TypeDescription
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.v1.SearchAddOn search_add_ons = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
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, please check the pricing documentation.

Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.

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

Parameter
NameDescription
valueSearchTier

The searchTier to set.

Returns
TypeDescription
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, please check the pricing documentation.

Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Engine.SearchEngineConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Engine.SearchEngineConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Engine.SearchEngineConfig.Builder
Overrides