Class WidgetConfig.AssistantSettings.Builder (0.99.0)

public static final class WidgetConfig.AssistantSettings.Builder extends GeneratedMessage.Builder<WidgetConfig.AssistantSettings.Builder> implements WidgetConfig.AssistantSettingsOrBuilder

Describes the assistant settings of the widget.

Protobuf type google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings

Static Methods

getDescriptor()

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

Methods

build()

public WidgetConfig.AssistantSettings build()
Returns
Type Description
WidgetConfig.AssistantSettings

buildPartial()

public WidgetConfig.AssistantSettings buildPartial()
Returns
Type Description
WidgetConfig.AssistantSettings

clear()

public WidgetConfig.AssistantSettings.Builder clear()
Returns
Type Description
WidgetConfig.AssistantSettings.Builder
Overrides

clearDefaultWebGroundingToggleOff()

public WidgetConfig.AssistantSettings.Builder clearDefaultWebGroundingToggleOff()

Output only. This field controls the default web grounding toggle for end users if web_grounding_type is set to WEB_GROUNDING_TYPE_GOOGLE_SEARCH or WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH. By default, this field is set to false. If web_grounding_type is WEB_GROUNDING_TYPE_GOOGLE_SEARCH or WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH, end users will have web grounding enabled by default on UI. If true, grounding toggle will be disabled by default on UI. End users can still enable web grounding in the UI if web grounding is enabled.

bool default_web_grounding_toggle_off = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.AssistantSettings.Builder

This builder for chaining.

clearDisableLocationContext()

public WidgetConfig.AssistantSettings.Builder clearDisableLocationContext()

Optional. Output only. Whether to disable user location context.

bool disable_location_context = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.AssistantSettings.Builder

This builder for chaining.

clearWebGroundingType()

public WidgetConfig.AssistantSettings.Builder clearWebGroundingType()

Optional. The type of web grounding to use.

.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType web_grounding_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WidgetConfig.AssistantSettings.Builder

This builder for chaining.

getDefaultInstanceForType()

public WidgetConfig.AssistantSettings getDefaultInstanceForType()
Returns
Type Description
WidgetConfig.AssistantSettings

getDefaultWebGroundingToggleOff()

public boolean getDefaultWebGroundingToggleOff()

Output only. This field controls the default web grounding toggle for end users if web_grounding_type is set to WEB_GROUNDING_TYPE_GOOGLE_SEARCH or WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH. By default, this field is set to false. If web_grounding_type is WEB_GROUNDING_TYPE_GOOGLE_SEARCH or WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH, end users will have web grounding enabled by default on UI. If true, grounding toggle will be disabled by default on UI. End users can still enable web grounding in the UI if web grounding is enabled.

bool default_web_grounding_toggle_off = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The defaultWebGroundingToggleOff.

getDescriptorForType()

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

getDisableLocationContext()

public boolean getDisableLocationContext()

Optional. Output only. Whether to disable user location context.

bool disable_location_context = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The disableLocationContext.

getWebGroundingType()

public WidgetConfig.AssistantSettings.WebGroundingType getWebGroundingType()

Optional. The type of web grounding to use.

.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType web_grounding_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WidgetConfig.AssistantSettings.WebGroundingType

The webGroundingType.

getWebGroundingTypeValue()

public int getWebGroundingTypeValue()

Optional. The type of web grounding to use.

.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType web_grounding_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for webGroundingType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WidgetConfig.AssistantSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDefaultWebGroundingToggleOff(boolean value)

public WidgetConfig.AssistantSettings.Builder setDefaultWebGroundingToggleOff(boolean value)

Output only. This field controls the default web grounding toggle for end users if web_grounding_type is set to WEB_GROUNDING_TYPE_GOOGLE_SEARCH or WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH. By default, this field is set to false. If web_grounding_type is WEB_GROUNDING_TYPE_GOOGLE_SEARCH or WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH, end users will have web grounding enabled by default on UI. If true, grounding toggle will be disabled by default on UI. End users can still enable web grounding in the UI if web grounding is enabled.

bool default_web_grounding_toggle_off = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The defaultWebGroundingToggleOff to set.

Returns
Type Description
WidgetConfig.AssistantSettings.Builder

This builder for chaining.

setDisableLocationContext(boolean value)

public WidgetConfig.AssistantSettings.Builder setDisableLocationContext(boolean value)

Optional. Output only. Whether to disable user location context.

bool disable_location_context = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The disableLocationContext to set.

Returns
Type Description
WidgetConfig.AssistantSettings.Builder

This builder for chaining.

setWebGroundingType(WidgetConfig.AssistantSettings.WebGroundingType value)

public WidgetConfig.AssistantSettings.Builder setWebGroundingType(WidgetConfig.AssistantSettings.WebGroundingType value)

Optional. The type of web grounding to use.

.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType web_grounding_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value WidgetConfig.AssistantSettings.WebGroundingType

The webGroundingType to set.

Returns
Type Description
WidgetConfig.AssistantSettings.Builder

This builder for chaining.

setWebGroundingTypeValue(int value)

public WidgetConfig.AssistantSettings.Builder setWebGroundingTypeValue(int value)

Optional. The type of web grounding to use.

.google.cloud.discoveryengine.v1.WidgetConfig.AssistantSettings.WebGroundingType web_grounding_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
WidgetConfig.AssistantSettings.Builder

This builder for chaining.