Class WidgetConfig.DataStoreUiConfig.Builder (0.99.0)

public static final class WidgetConfig.DataStoreUiConfig.Builder extends GeneratedMessage.Builder<WidgetConfig.DataStoreUiConfig.Builder> implements WidgetConfig.DataStoreUiConfigOrBuilder

UI component configuration for data store.

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

Static Methods

getDescriptor()

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

Methods

addAllFacetField(Iterable<? extends WidgetConfig.FacetField> values)

public WidgetConfig.DataStoreUiConfig.Builder addAllFacetField(Iterable<? extends WidgetConfig.FacetField> values)

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1.WidgetConfig.FacetField>
Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

addFacetField(WidgetConfig.FacetField value)

public WidgetConfig.DataStoreUiConfig.Builder addFacetField(WidgetConfig.FacetField value)

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Parameter
Name Description
value WidgetConfig.FacetField
Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

addFacetField(WidgetConfig.FacetField.Builder builderForValue)

public WidgetConfig.DataStoreUiConfig.Builder addFacetField(WidgetConfig.FacetField.Builder builderForValue)

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Parameter
Name Description
builderForValue WidgetConfig.FacetField.Builder
Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

addFacetField(int index, WidgetConfig.FacetField value)

public WidgetConfig.DataStoreUiConfig.Builder addFacetField(int index, WidgetConfig.FacetField value)

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Parameters
Name Description
index int
value WidgetConfig.FacetField
Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

addFacetField(int index, WidgetConfig.FacetField.Builder builderForValue)

public WidgetConfig.DataStoreUiConfig.Builder addFacetField(int index, WidgetConfig.FacetField.Builder builderForValue)

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Parameters
Name Description
index int
builderForValue WidgetConfig.FacetField.Builder
Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

addFacetFieldBuilder()

public WidgetConfig.FacetField.Builder addFacetFieldBuilder()

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Returns
Type Description
WidgetConfig.FacetField.Builder

addFacetFieldBuilder(int index)

public WidgetConfig.FacetField.Builder addFacetFieldBuilder(int index)

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Parameter
Name Description
index int
Returns
Type Description
WidgetConfig.FacetField.Builder

build()

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

buildPartial()

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

clear()

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

clearFacetField()

public WidgetConfig.DataStoreUiConfig.Builder clearFacetField()

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

clearFieldsUiComponentsMap()

public WidgetConfig.DataStoreUiConfig.Builder clearFieldsUiComponentsMap()
Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

clearId()

public WidgetConfig.DataStoreUiConfig.Builder clearId()

Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID.

string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

This builder for chaining.

clearName()

public WidgetConfig.DataStoreUiConfig.Builder clearName()

The name of the data store. It should be data store resource name Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}. For APIs under WidgetService, such as WidgetService.LookupWidgetConfig, the project number and location part is erased in this field.

string name = 1;

Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

This builder for chaining.

containsFieldsUiComponentsMap(String key)

public boolean containsFieldsUiComponentsMap(String key)

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3.

The value is the name of the field along with its device visibility.

The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed.

map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

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

getDescriptorForType()

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

getFacetField(int index)

public WidgetConfig.FacetField getFacetField(int index)

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Parameter
Name Description
index int
Returns
Type Description
WidgetConfig.FacetField

getFacetFieldBuilder(int index)

public WidgetConfig.FacetField.Builder getFacetFieldBuilder(int index)

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Parameter
Name Description
index int
Returns
Type Description
WidgetConfig.FacetField.Builder

getFacetFieldBuilderList()

public List<WidgetConfig.FacetField.Builder> getFacetFieldBuilderList()

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Returns
Type Description
List<Builder>

getFacetFieldCount()

public int getFacetFieldCount()

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Returns
Type Description
int

getFacetFieldList()

public List<WidgetConfig.FacetField> getFacetFieldList()

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Returns
Type Description
List<FacetField>

getFacetFieldOrBuilder(int index)

public WidgetConfig.FacetFieldOrBuilder getFacetFieldOrBuilder(int index)

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Parameter
Name Description
index int
Returns
Type Description
WidgetConfig.FacetFieldOrBuilder

getFacetFieldOrBuilderList()

public List<? extends WidgetConfig.FacetFieldOrBuilder> getFacetFieldOrBuilderList()

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.WidgetConfig.FacetFieldOrBuilder>

getFieldsUiComponentsMap() (deprecated)

public Map<String,WidgetConfig.UIComponentField> getFieldsUiComponentsMap()
Returns
Type Description
Map<String,UIComponentField>

getFieldsUiComponentsMapCount()

public int getFieldsUiComponentsMapCount()

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3.

The value is the name of the field along with its device visibility.

The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed.

map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4;

Returns
Type Description
int

getFieldsUiComponentsMapMap()

public Map<String,WidgetConfig.UIComponentField> getFieldsUiComponentsMapMap()

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3.

The value is the name of the field along with its device visibility.

The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed.

map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4;

Returns
Type Description
Map<String,UIComponentField>

getFieldsUiComponentsMapOrDefault(String key, WidgetConfig.UIComponentField defaultValue)

public WidgetConfig.UIComponentField getFieldsUiComponentsMapOrDefault(String key, WidgetConfig.UIComponentField defaultValue)

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3.

The value is the name of the field along with its device visibility.

The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed.

map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4;

Parameters
Name Description
key String
defaultValue WidgetConfig.UIComponentField
Returns
Type Description
WidgetConfig.UIComponentField

getFieldsUiComponentsMapOrThrow(String key)

public WidgetConfig.UIComponentField getFieldsUiComponentsMapOrThrow(String key)

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3.

The value is the name of the field along with its device visibility.

The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed.

map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4;

Parameter
Name Description
key String
Returns
Type Description
WidgetConfig.UIComponentField

getId()

public String getId()

Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID.

string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID.

string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for id.

getMutableFieldsUiComponentsMap() (deprecated)

public Map<String,WidgetConfig.UIComponentField> getMutableFieldsUiComponentsMap()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,UIComponentField>

getName()

public String getName()

The name of the data store. It should be data store resource name Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}. For APIs under WidgetService, such as WidgetService.LookupWidgetConfig, the project number and location part is erased in this field.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the data store. It should be data store resource name Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}. For APIs under WidgetService, such as WidgetService.LookupWidgetConfig, the project number and location part is erased in this field.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WidgetConfig.DataStoreUiConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

putAllFieldsUiComponentsMap(Map<String,WidgetConfig.UIComponentField> values)

public WidgetConfig.DataStoreUiConfig.Builder putAllFieldsUiComponentsMap(Map<String,WidgetConfig.UIComponentField> values)

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3.

The value is the name of the field along with its device visibility.

The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed.

map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4;

Parameter
Name Description
values Map<String,UIComponentField>
Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

putFieldsUiComponentsMap(String key, WidgetConfig.UIComponentField value)

public WidgetConfig.DataStoreUiConfig.Builder putFieldsUiComponentsMap(String key, WidgetConfig.UIComponentField value)

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3.

The value is the name of the field along with its device visibility.

The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed.

map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4;

Parameters
Name Description
key String
value WidgetConfig.UIComponentField
Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

putFieldsUiComponentsMapBuilderIfAbsent(String key)

public WidgetConfig.UIComponentField.Builder putFieldsUiComponentsMapBuilderIfAbsent(String key)

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3.

The value is the name of the field along with its device visibility.

The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed.

map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4;

Parameter
Name Description
key String
Returns
Type Description
WidgetConfig.UIComponentField.Builder

removeFacetField(int index)

public WidgetConfig.DataStoreUiConfig.Builder removeFacetField(int index)

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Parameter
Name Description
index int
Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

removeFieldsUiComponentsMap(String key)

public WidgetConfig.DataStoreUiConfig.Builder removeFieldsUiComponentsMap(String key)

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3.

The value is the name of the field along with its device visibility.

The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed.

map<string, .google.cloud.discoveryengine.v1.WidgetConfig.UIComponentField> fields_ui_components_map = 4;

Parameter
Name Description
key String
Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

setFacetField(int index, WidgetConfig.FacetField value)

public WidgetConfig.DataStoreUiConfig.Builder setFacetField(int index, WidgetConfig.FacetField value)

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Parameters
Name Description
index int
value WidgetConfig.FacetField
Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

setFacetField(int index, WidgetConfig.FacetField.Builder builderForValue)

public WidgetConfig.DataStoreUiConfig.Builder setFacetField(int index, WidgetConfig.FacetField.Builder builderForValue)

Facet fields that store the mapping of fields to end user widget appearance.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.FacetField facet_field = 3;

Parameters
Name Description
index int
builderForValue WidgetConfig.FacetField.Builder
Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

setId(String value)

public WidgetConfig.DataStoreUiConfig.Builder setId(String value)

Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID.

string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

This builder for chaining.

setIdBytes(ByteString value)

public WidgetConfig.DataStoreUiConfig.Builder setIdBytes(ByteString value)

Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID.

string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

This builder for chaining.

setName(String value)

public WidgetConfig.DataStoreUiConfig.Builder setName(String value)

The name of the data store. It should be data store resource name Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}. For APIs under WidgetService, such as WidgetService.LookupWidgetConfig, the project number and location part is erased in this field.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public WidgetConfig.DataStoreUiConfig.Builder setNameBytes(ByteString value)

The name of the data store. It should be data store resource name Format: projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}. For APIs under WidgetService, such as WidgetService.LookupWidgetConfig, the project number and location part is erased in this field.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
WidgetConfig.DataStoreUiConfig.Builder

This builder for chaining.