Class GetWidgetConfigRequest.Builder (0.99.0)

public static final class GetWidgetConfigRequest.Builder extends GeneratedMessage.Builder<GetWidgetConfigRequest.Builder> implements GetWidgetConfigRequestOrBuilder

Request for WidgetConfigService.GetWidgetConfig method.

Protobuf type google.cloud.discoveryengine.v1.GetWidgetConfigRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetWidgetConfigRequest build()
Returns
Type Description
GetWidgetConfigRequest

buildPartial()

public GetWidgetConfigRequest buildPartial()
Returns
Type Description
GetWidgetConfigRequest

clear()

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

clearAcceptCache()

public GetWidgetConfigRequest.Builder clearAcceptCache()

Optional. Whether it's acceptable to load the widget config from cache. If set to true, recent changes on widget configs may take a few minutes to reflect on the end user's view. It's recommended to set to true for maturely developed widgets, as it improves widget performance. Set to false to see changes reflected in prod right away, if your widget is under development.

bool accept_cache = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GetWidgetConfigRequest.Builder

This builder for chaining.

clearGetWidgetConfigRequestOption()

public GetWidgetConfigRequest.Builder clearGetWidgetConfigRequestOption()

Optional. Options for GetWidgetConfigRequest.

.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GetWidgetConfigRequest.Builder

clearLanguageCode()

public GetWidgetConfigRequest.Builder clearLanguageCode()

Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize human-readable strings in the response, such as the model selector display_name / description on WidgetConfig.UiSettings.ModelConfigInfo. Empty / unset falls back to the default language (English).

string language_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GetWidgetConfigRequest.Builder

This builder for chaining.

clearModelInfoView()

public GetWidgetConfigRequest.Builder clearModelInfoView()

Optional. Selects which view of WidgetConfig.UiSettings.ModelConfigInfo the backend computes. ADMIN is set by the Cloud Console admin "Feature Management" page to receive the admin-surfaced model set with ResolvedModel.admin_view populated; END_USER_MOBILE is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / END_USER_WEB returns the end-user web selector.

.google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GetWidgetConfigRequest.Builder

This builder for chaining.

clearName()

public GetWidgetConfigRequest.Builder clearName()

Required. Full WidgetConfig resource name. Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetWidgetConfigRequest.Builder

This builder for chaining.

getAcceptCache()

public boolean getAcceptCache()

Optional. Whether it's acceptable to load the widget config from cache. If set to true, recent changes on widget configs may take a few minutes to reflect on the end user's view. It's recommended to set to true for maturely developed widgets, as it improves widget performance. Set to false to see changes reflected in prod right away, if your widget is under development.

bool accept_cache = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The acceptCache.

getDefaultInstanceForType()

public GetWidgetConfigRequest getDefaultInstanceForType()
Returns
Type Description
GetWidgetConfigRequest

getDescriptorForType()

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

getGetWidgetConfigRequestOption()

public GetWidgetConfigRequest.GetWidgetConfigRequestOption getGetWidgetConfigRequestOption()

Optional. Options for GetWidgetConfigRequest.

.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GetWidgetConfigRequest.GetWidgetConfigRequestOption

The getWidgetConfigRequestOption.

getGetWidgetConfigRequestOptionBuilder()

public GetWidgetConfigRequest.GetWidgetConfigRequestOption.Builder getGetWidgetConfigRequestOptionBuilder()

Optional. Options for GetWidgetConfigRequest.

.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GetWidgetConfigRequest.GetWidgetConfigRequestOption.Builder

getGetWidgetConfigRequestOptionOrBuilder()

public GetWidgetConfigRequest.GetWidgetConfigRequestOptionOrBuilder getGetWidgetConfigRequestOptionOrBuilder()

Optional. Options for GetWidgetConfigRequest.

.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GetWidgetConfigRequest.GetWidgetConfigRequestOptionOrBuilder

getLanguageCode()

public String getLanguageCode()

Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize human-readable strings in the response, such as the model selector display_name / description on WidgetConfig.UiSettings.ModelConfigInfo. Empty / unset falls back to the default language (English).

string language_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize human-readable strings in the response, such as the model selector display_name / description on WidgetConfig.UiSettings.ModelConfigInfo. Empty / unset falls back to the default language (English).

string language_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for languageCode.

getModelInfoView()

public ModelInfoView getModelInfoView()

Optional. Selects which view of WidgetConfig.UiSettings.ModelConfigInfo the backend computes. ADMIN is set by the Cloud Console admin "Feature Management" page to receive the admin-surfaced model set with ResolvedModel.admin_view populated; END_USER_MOBILE is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / END_USER_WEB returns the end-user web selector.

.google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModelInfoView

The modelInfoView.

getModelInfoViewValue()

public int getModelInfoViewValue()

Optional. Selects which view of WidgetConfig.UiSettings.ModelConfigInfo the backend computes. ADMIN is set by the Cloud Console admin "Feature Management" page to receive the admin-surfaced model set with ResolvedModel.admin_view populated; END_USER_MOBILE is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / END_USER_WEB returns the end-user web selector.

.google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for modelInfoView.

getName()

public String getName()

Required. Full WidgetConfig resource name. Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Full WidgetConfig resource name. Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

hasGetWidgetConfigRequestOption()

public boolean hasGetWidgetConfigRequestOption()

Optional. Options for GetWidgetConfigRequest.

.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the getWidgetConfigRequestOption field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetWidgetConfigRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGetWidgetConfigRequestOption(GetWidgetConfigRequest.GetWidgetConfigRequestOption value)

public GetWidgetConfigRequest.Builder mergeGetWidgetConfigRequestOption(GetWidgetConfigRequest.GetWidgetConfigRequestOption value)

Optional. Options for GetWidgetConfigRequest.

.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value GetWidgetConfigRequest.GetWidgetConfigRequestOption
Returns
Type Description
GetWidgetConfigRequest.Builder

setAcceptCache(boolean value)

public GetWidgetConfigRequest.Builder setAcceptCache(boolean value)

Optional. Whether it's acceptable to load the widget config from cache. If set to true, recent changes on widget configs may take a few minutes to reflect on the end user's view. It's recommended to set to true for maturely developed widgets, as it improves widget performance. Set to false to see changes reflected in prod right away, if your widget is under development.

bool accept_cache = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The acceptCache to set.

Returns
Type Description
GetWidgetConfigRequest.Builder

This builder for chaining.

setGetWidgetConfigRequestOption(GetWidgetConfigRequest.GetWidgetConfigRequestOption value)

public GetWidgetConfigRequest.Builder setGetWidgetConfigRequestOption(GetWidgetConfigRequest.GetWidgetConfigRequestOption value)

Optional. Options for GetWidgetConfigRequest.

.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value GetWidgetConfigRequest.GetWidgetConfigRequestOption
Returns
Type Description
GetWidgetConfigRequest.Builder

setGetWidgetConfigRequestOption(GetWidgetConfigRequest.GetWidgetConfigRequestOption.Builder builderForValue)

public GetWidgetConfigRequest.Builder setGetWidgetConfigRequestOption(GetWidgetConfigRequest.GetWidgetConfigRequestOption.Builder builderForValue)

Optional. Options for GetWidgetConfigRequest.

.google.cloud.discoveryengine.v1.GetWidgetConfigRequest.GetWidgetConfigRequestOption get_widget_config_request_option = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue GetWidgetConfigRequest.GetWidgetConfigRequestOption.Builder
Returns
Type Description
GetWidgetConfigRequest.Builder

setLanguageCode(String value)

public GetWidgetConfigRequest.Builder setLanguageCode(String value)

Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize human-readable strings in the response, such as the model selector display_name / description on WidgetConfig.UiSettings.ModelConfigInfo. Empty / unset falls back to the default language (English).

string language_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
GetWidgetConfigRequest.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public GetWidgetConfigRequest.Builder setLanguageCodeBytes(ByteString value)

Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize human-readable strings in the response, such as the model selector display_name / description on WidgetConfig.UiSettings.ModelConfigInfo. Empty / unset falls back to the default language (English).

string language_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
GetWidgetConfigRequest.Builder

This builder for chaining.

setModelInfoView(ModelInfoView value)

public GetWidgetConfigRequest.Builder setModelInfoView(ModelInfoView value)

Optional. Selects which view of WidgetConfig.UiSettings.ModelConfigInfo the backend computes. ADMIN is set by the Cloud Console admin "Feature Management" page to receive the admin-surfaced model set with ResolvedModel.admin_view populated; END_USER_MOBILE is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / END_USER_WEB returns the end-user web selector.

.google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ModelInfoView

The modelInfoView to set.

Returns
Type Description
GetWidgetConfigRequest.Builder

This builder for chaining.

setModelInfoViewValue(int value)

public GetWidgetConfigRequest.Builder setModelInfoViewValue(int value)

Optional. Selects which view of WidgetConfig.UiSettings.ModelConfigInfo the backend computes. ADMIN is set by the Cloud Console admin "Feature Management" page to receive the admin-surfaced model set with ResolvedModel.admin_view populated; END_USER_MOBILE is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / END_USER_WEB returns the end-user web selector.

.google.cloud.discoveryengine.v1.ModelInfoView model_info_view = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
GetWidgetConfigRequest.Builder

This builder for chaining.

setName(String value)

public GetWidgetConfigRequest.Builder setName(String value)

Required. Full WidgetConfig resource name. Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetWidgetConfigRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetWidgetConfigRequest.Builder setNameBytes(ByteString value)

Required. Full WidgetConfig resource name. Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetWidgetConfigRequest.Builder

This builder for chaining.