Class WidgetConfig.DataStoreComponent.Builder (0.99.0)

public static final class WidgetConfig.DataStoreComponent.Builder extends GeneratedMessage.Builder<WidgetConfig.DataStoreComponent.Builder> implements WidgetConfig.DataStoreComponentOrBuilder

Read-only data store component that contains data stores fields that may be used for filtering, it's the child of CollectionComponent.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearDataStoreConfigType()

public WidgetConfig.DataStoreComponent.Builder clearDataStoreConfigType()

Output only. The type of the data store config.

.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType data_store_config_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.DataStoreComponent.Builder

This builder for chaining.

clearDisplayName()

public WidgetConfig.DataStoreComponent.Builder clearDisplayName()

The display name of the data store.

string display_name = 3;

Returns
Type Description
WidgetConfig.DataStoreComponent.Builder

This builder for chaining.

clearEntityName()

public WidgetConfig.DataStoreComponent.Builder clearEntityName()

The name of the entity, retrieved from Collection.data_connector.entities.entityName.

string entity_name = 4;

Returns
Type Description
WidgetConfig.DataStoreComponent.Builder

This builder for chaining.

clearId()

public WidgetConfig.DataStoreComponent.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.DataStoreComponent.Builder

This builder for chaining.

clearName()

public WidgetConfig.DataStoreComponent.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.DataStoreComponent.Builder

This builder for chaining.

getDataStoreConfigType()

public WidgetConfig.DataStoreComponent.DataStoreConfigType getDataStoreConfigType()

Output only. The type of the data store config.

.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType data_store_config_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.DataStoreComponent.DataStoreConfigType

The dataStoreConfigType.

getDataStoreConfigTypeValue()

public int getDataStoreConfigTypeValue()

Output only. The type of the data store config.

.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType data_store_config_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for dataStoreConfigType.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

The display name of the data store.

string display_name = 3;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the data store.

string display_name = 3;

Returns
Type Description
ByteString

The bytes for displayName.

getEntityName()

public String getEntityName()

The name of the entity, retrieved from Collection.data_connector.entities.entityName.

string entity_name = 4;

Returns
Type Description
String

The entityName.

getEntityNameBytes()

public ByteString getEntityNameBytes()

The name of the entity, retrieved from Collection.data_connector.entities.entityName.

string entity_name = 4;

Returns
Type Description
ByteString

The bytes for entityName.

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.

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WidgetConfig.DataStoreComponent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDataStoreConfigType(WidgetConfig.DataStoreComponent.DataStoreConfigType value)

public WidgetConfig.DataStoreComponent.Builder setDataStoreConfigType(WidgetConfig.DataStoreComponent.DataStoreConfigType value)

Output only. The type of the data store config.

.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType data_store_config_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WidgetConfig.DataStoreComponent.DataStoreConfigType

The dataStoreConfigType to set.

Returns
Type Description
WidgetConfig.DataStoreComponent.Builder

This builder for chaining.

setDataStoreConfigTypeValue(int value)

public WidgetConfig.DataStoreComponent.Builder setDataStoreConfigTypeValue(int value)

Output only. The type of the data store config.

.google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent.DataStoreConfigType data_store_config_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
WidgetConfig.DataStoreComponent.Builder

This builder for chaining.

setDisplayName(String value)

public WidgetConfig.DataStoreComponent.Builder setDisplayName(String value)

The display name of the data store.

string display_name = 3;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
WidgetConfig.DataStoreComponent.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public WidgetConfig.DataStoreComponent.Builder setDisplayNameBytes(ByteString value)

The display name of the data store.

string display_name = 3;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
WidgetConfig.DataStoreComponent.Builder

This builder for chaining.

setEntityName(String value)

public WidgetConfig.DataStoreComponent.Builder setEntityName(String value)

The name of the entity, retrieved from Collection.data_connector.entities.entityName.

string entity_name = 4;

Parameter
Name Description
value String

The entityName to set.

Returns
Type Description
WidgetConfig.DataStoreComponent.Builder

This builder for chaining.

setEntityNameBytes(ByteString value)

public WidgetConfig.DataStoreComponent.Builder setEntityNameBytes(ByteString value)

The name of the entity, retrieved from Collection.data_connector.entities.entityName.

string entity_name = 4;

Parameter
Name Description
value ByteString

The bytes for entityName to set.

Returns
Type Description
WidgetConfig.DataStoreComponent.Builder

This builder for chaining.

setId(String value)

public WidgetConfig.DataStoreComponent.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.DataStoreComponent.Builder

This builder for chaining.

setIdBytes(ByteString value)

public WidgetConfig.DataStoreComponent.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.DataStoreComponent.Builder

This builder for chaining.

setName(String value)

public WidgetConfig.DataStoreComponent.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.DataStoreComponent.Builder

This builder for chaining.

setNameBytes(ByteString value)

public WidgetConfig.DataStoreComponent.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.DataStoreComponent.Builder

This builder for chaining.