Class WidgetConfig.AccessSettings.Builder (0.99.0)

public static final class WidgetConfig.AccessSettings.Builder extends GeneratedMessage.Builder<WidgetConfig.AccessSettings.Builder> implements WidgetConfig.AccessSettingsOrBuilder

Describes widget access settings.

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

Static Methods

getDescriptor()

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

Methods

addAllAllowlistedDomains(Iterable<String> values)

public WidgetConfig.AccessSettings.Builder addAllAllowlistedDomains(Iterable<String> values)

List of domains that are allowed to integrate the search widget.

repeated string allowlisted_domains = 2;

Parameter
Name Description
values Iterable<String>

The allowlistedDomains to add.

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.

addAllowlistedDomains(String value)

public WidgetConfig.AccessSettings.Builder addAllowlistedDomains(String value)

List of domains that are allowed to integrate the search widget.

repeated string allowlisted_domains = 2;

Parameter
Name Description
value String

The allowlistedDomains to add.

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.

addAllowlistedDomainsBytes(ByteString value)

public WidgetConfig.AccessSettings.Builder addAllowlistedDomainsBytes(ByteString value)

List of domains that are allowed to integrate the search widget.

repeated string allowlisted_domains = 2;

Parameter
Name Description
value ByteString

The bytes of the allowlistedDomains to add.

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.

build()

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

buildPartial()

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

clear()

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

clearAllowPublicAccess()

public WidgetConfig.AccessSettings.Builder clearAllowPublicAccess()

Whether public unauthenticated access is allowed.

bool allow_public_access = 1;

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.

clearAllowlistedDomains()

public WidgetConfig.AccessSettings.Builder clearAllowlistedDomains()

List of domains that are allowed to integrate the search widget.

repeated string allowlisted_domains = 2;

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.

clearEnableWebApp()

public WidgetConfig.AccessSettings.Builder clearEnableWebApp()

Whether web app access is enabled.

bool enable_web_app = 3;

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.

clearLanguageCode()

public WidgetConfig.AccessSettings.Builder clearLanguageCode()

Optional. Language code for user interface. Use language tags defined by BCP47. If unset, the default language code is "en-US".

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

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.

clearWorkforceIdentityPoolProvider()

public WidgetConfig.AccessSettings.Builder clearWorkforceIdentityPoolProvider()

Optional. The workforce identity pool provider used to access the widget.

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

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.

getAllowPublicAccess()

public boolean getAllowPublicAccess()

Whether public unauthenticated access is allowed.

bool allow_public_access = 1;

Returns
Type Description
boolean

The allowPublicAccess.

getAllowlistedDomains(int index)

public String getAllowlistedDomains(int index)

List of domains that are allowed to integrate the search widget.

repeated string allowlisted_domains = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allowlistedDomains at the given index.

getAllowlistedDomainsBytes(int index)

public ByteString getAllowlistedDomainsBytes(int index)

List of domains that are allowed to integrate the search widget.

repeated string allowlisted_domains = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allowlistedDomains at the given index.

getAllowlistedDomainsCount()

public int getAllowlistedDomainsCount()

List of domains that are allowed to integrate the search widget.

repeated string allowlisted_domains = 2;

Returns
Type Description
int

The count of allowlistedDomains.

getAllowlistedDomainsList()

public ProtocolStringList getAllowlistedDomainsList()

List of domains that are allowed to integrate the search widget.

repeated string allowlisted_domains = 2;

Returns
Type Description
ProtocolStringList

A list containing the allowlistedDomains.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getEnableWebApp()

public boolean getEnableWebApp()

Whether web app access is enabled.

bool enable_web_app = 3;

Returns
Type Description
boolean

The enableWebApp.

getLanguageCode()

public String getLanguageCode()

Optional. Language code for user interface. Use language tags defined by BCP47. If unset, the default language code is "en-US".

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

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Optional. Language code for user interface. Use language tags defined by BCP47. If unset, the default language code is "en-US".

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

Returns
Type Description
ByteString

The bytes for languageCode.

getWorkforceIdentityPoolProvider()

public String getWorkforceIdentityPoolProvider()

Optional. The workforce identity pool provider used to access the widget.

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

Returns
Type Description
String

The workforceIdentityPoolProvider.

getWorkforceIdentityPoolProviderBytes()

public ByteString getWorkforceIdentityPoolProviderBytes()

Optional. The workforce identity pool provider used to access the widget.

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

Returns
Type Description
ByteString

The bytes for workforceIdentityPoolProvider.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WidgetConfig.AccessSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAllowPublicAccess(boolean value)

public WidgetConfig.AccessSettings.Builder setAllowPublicAccess(boolean value)

Whether public unauthenticated access is allowed.

bool allow_public_access = 1;

Parameter
Name Description
value boolean

The allowPublicAccess to set.

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.

setAllowlistedDomains(int index, String value)

public WidgetConfig.AccessSettings.Builder setAllowlistedDomains(int index, String value)

List of domains that are allowed to integrate the search widget.

repeated string allowlisted_domains = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The allowlistedDomains to set.

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.

setEnableWebApp(boolean value)

public WidgetConfig.AccessSettings.Builder setEnableWebApp(boolean value)

Whether web app access is enabled.

bool enable_web_app = 3;

Parameter
Name Description
value boolean

The enableWebApp to set.

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.

setLanguageCode(String value)

public WidgetConfig.AccessSettings.Builder setLanguageCode(String value)

Optional. Language code for user interface. Use language tags defined by BCP47. If unset, the default language code is "en-US".

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

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public WidgetConfig.AccessSettings.Builder setLanguageCodeBytes(ByteString value)

Optional. Language code for user interface. Use language tags defined by BCP47. If unset, the default language code is "en-US".

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

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.

setWorkforceIdentityPoolProvider(String value)

public WidgetConfig.AccessSettings.Builder setWorkforceIdentityPoolProvider(String value)

Optional. The workforce identity pool provider used to access the widget.

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

Parameter
Name Description
value String

The workforceIdentityPoolProvider to set.

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.

setWorkforceIdentityPoolProviderBytes(ByteString value)

public WidgetConfig.AccessSettings.Builder setWorkforceIdentityPoolProviderBytes(ByteString value)

Optional. The workforce identity pool provider used to access the widget.

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

Parameter
Name Description
value ByteString

The bytes for workforceIdentityPoolProvider to set.

Returns
Type Description
WidgetConfig.AccessSettings.Builder

This builder for chaining.