Class WidgetConfig.CollectionComponent.Builder (0.99.0)

public static final class WidgetConfig.CollectionComponent.Builder extends GeneratedMessage.Builder<WidgetConfig.CollectionComponent.Builder> implements WidgetConfig.CollectionComponentOrBuilder

Read-only collection component that contains data store collections fields that may be used for filtering.

For SaaS / Business engines, when LookupWidgetConfig is called with view = WITH_AVAILABLE_CONNECTORS, instances of this message are also used to represent synthetic placeholder entries for connectors the caller may attach but has not yet attached. Placeholder entries have connector_auth_state.auth_state == AUTH_STATE_UNSPECIFIED (or NO_AUTH), an empty connector_auth_state.authorization_uri (the widget calls WidgetBuildAuthorizationUrl on the user's "Connect" click), and synthetic placeholder values in name / id (see field comments). Fields that only make sense for materialized connectors (data_store_components, tenant, action_connector) are left unset for placeholder entries.

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

Static Methods

getDescriptor()

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

Methods

addAllDataStoreComponents(Iterable<? extends WidgetConfig.DataStoreComponent> values)

public WidgetConfig.CollectionComponent.Builder addAllDataStoreComponents(Iterable<? extends WidgetConfig.DataStoreComponent> values)

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

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

addDataStoreComponents(WidgetConfig.DataStoreComponent value)

public WidgetConfig.CollectionComponent.Builder addDataStoreComponents(WidgetConfig.DataStoreComponent value)

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

Parameter
Name Description
value WidgetConfig.DataStoreComponent
Returns
Type Description
WidgetConfig.CollectionComponent.Builder

addDataStoreComponents(WidgetConfig.DataStoreComponent.Builder builderForValue)

public WidgetConfig.CollectionComponent.Builder addDataStoreComponents(WidgetConfig.DataStoreComponent.Builder builderForValue)

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

Parameter
Name Description
builderForValue WidgetConfig.DataStoreComponent.Builder
Returns
Type Description
WidgetConfig.CollectionComponent.Builder

addDataStoreComponents(int index, WidgetConfig.DataStoreComponent value)

public WidgetConfig.CollectionComponent.Builder addDataStoreComponents(int index, WidgetConfig.DataStoreComponent value)

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

Parameters
Name Description
index int
value WidgetConfig.DataStoreComponent
Returns
Type Description
WidgetConfig.CollectionComponent.Builder

addDataStoreComponents(int index, WidgetConfig.DataStoreComponent.Builder builderForValue)

public WidgetConfig.CollectionComponent.Builder addDataStoreComponents(int index, WidgetConfig.DataStoreComponent.Builder builderForValue)

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

Parameters
Name Description
index int
builderForValue WidgetConfig.DataStoreComponent.Builder
Returns
Type Description
WidgetConfig.CollectionComponent.Builder

addDataStoreComponentsBuilder()

public WidgetConfig.DataStoreComponent.Builder addDataStoreComponentsBuilder()

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

Returns
Type Description
WidgetConfig.DataStoreComponent.Builder

addDataStoreComponentsBuilder(int index)

public WidgetConfig.DataStoreComponent.Builder addDataStoreComponentsBuilder(int index)

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

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

build()

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

buildPartial()

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

clear()

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

clearConnectorAuthState()

public WidgetConfig.CollectionComponent.Builder clearConnectorAuthState()

Output only. The auth uri of the connector source.

.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.CollectionComponent.Builder
public WidgetConfig.CollectionComponent.Builder clearConnectorIconLink()

Output only. The icon link of the connector source.

string connector_icon_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

clearDataSource()

public WidgetConfig.CollectionComponent.Builder clearDataSource()

The name of the data source, retrieved from Collection.data_connector.data_source.

string data_source = 5;

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

clearDataSourceDisplayName()

public WidgetConfig.CollectionComponent.Builder clearDataSourceDisplayName()

Output only. The display name of the data source.

string data_source_display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

clearDataSourceEndUserDisplayName()

public WidgetConfig.CollectionComponent.Builder clearDataSourceEndUserDisplayName()

Output only. The end-user-facing display name of the data source, sourced from ConnectorSource.end_user_display_name. When unset, clients fall back to data_source_display_name.

string data_source_end_user_display_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

clearDataSourceVersion()

public WidgetConfig.CollectionComponent.Builder clearDataSourceVersion()

Output only. The version of the connector definition backing this collection, mirroring DataConnector.data_source_version.

double data_source_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

clearDataStoreComponents()

public WidgetConfig.CollectionComponent.Builder clearDataStoreComponents()

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

clearDisplayName()

public WidgetConfig.CollectionComponent.Builder clearDisplayName()

The display name of the collection.

string display_name = 3;

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

clearId()

public WidgetConfig.CollectionComponent.Builder clearId()

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

For synthetic placeholder entries (see message-level comment) this is a synthetic placeholder id, not a real collection_id.

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

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

clearIsFirstParty()

public WidgetConfig.CollectionComponent.Builder clearIsFirstParty()

Output only. Whether this is a first-party (Google-owned) connector, as opposed to a third-party connector.

bool is_first_party = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

clearMetadata()

public WidgetConfig.CollectionComponent.Builder clearMetadata()

Output only. User-facing connector metadata (title, description, short_description, author, note), retrieved from the registry ConnectorSource.metadata (joined by data source). Shown on the connector detail page.

.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

clearName()

public WidgetConfig.CollectionComponent.Builder clearName()

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

For synthetic placeholder entries (see message-level comment) this carries a synthetic placeholder collection id that does not correspond to a real collection. Callers must not attempt to resolve / GET this resource until the user authorizes the connector.

string name = 1;

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

clearTag()

public WidgetConfig.CollectionComponent.Builder clearTag()

Output only. The version-independent label of the connector backing this collection, mirroring DataConnector.tag. Unlike the version-pinned data store id it survives a connector version upgrade, so an upgraded connector keeps the same tag.

Not a unique key. As DataConnector.tag documents, several connectors may share a tag under the same (project, location, collection, data_source), and tag-based lookup resolves to the one with the greatest create_time. Clients must not treat this as a connector identifier.

Empty when the connector was created before the tag-write launch, and for synthetic placeholder entries, which have no underlying DataConnector. Populated only when ConnectorsFeature.enable_connector_tag is on.

string tag = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

getConnectorAuthState()

public WidgetConfig.ConnectorAuthState getConnectorAuthState()

Output only. The auth uri of the connector source.

.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.ConnectorAuthState

The connectorAuthState.

getConnectorAuthStateBuilder()

public WidgetConfig.ConnectorAuthState.Builder getConnectorAuthStateBuilder()

Output only. The auth uri of the connector source.

.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.ConnectorAuthState.Builder

getConnectorAuthStateOrBuilder()

public WidgetConfig.ConnectorAuthStateOrBuilder getConnectorAuthStateOrBuilder()

Output only. The auth uri of the connector source.

.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.ConnectorAuthStateOrBuilder
public String getConnectorIconLink()

Output only. The icon link of the connector source.

string connector_icon_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The connectorIconLink.

getConnectorIconLinkBytes()

public ByteString getConnectorIconLinkBytes()

Output only. The icon link of the connector source.

string connector_icon_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for connectorIconLink.

getDataSource()

public String getDataSource()

The name of the data source, retrieved from Collection.data_connector.data_source.

string data_source = 5;

Returns
Type Description
String

The dataSource.

getDataSourceBytes()

public ByteString getDataSourceBytes()

The name of the data source, retrieved from Collection.data_connector.data_source.

string data_source = 5;

Returns
Type Description
ByteString

The bytes for dataSource.

getDataSourceDisplayName()

public String getDataSourceDisplayName()

Output only. The display name of the data source.

string data_source_display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The dataSourceDisplayName.

getDataSourceDisplayNameBytes()

public ByteString getDataSourceDisplayNameBytes()

Output only. The display name of the data source.

string data_source_display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for dataSourceDisplayName.

getDataSourceEndUserDisplayName()

public String getDataSourceEndUserDisplayName()

Output only. The end-user-facing display name of the data source, sourced from ConnectorSource.end_user_display_name. When unset, clients fall back to data_source_display_name.

string data_source_end_user_display_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The dataSourceEndUserDisplayName.

getDataSourceEndUserDisplayNameBytes()

public ByteString getDataSourceEndUserDisplayNameBytes()

Output only. The end-user-facing display name of the data source, sourced from ConnectorSource.end_user_display_name. When unset, clients fall back to data_source_display_name.

string data_source_end_user_display_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for dataSourceEndUserDisplayName.

getDataSourceVersion()

public double getDataSourceVersion()

Output only. The version of the connector definition backing this collection, mirroring DataConnector.data_source_version.

double data_source_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
double

The dataSourceVersion.

getDataStoreComponents(int index)

public WidgetConfig.DataStoreComponent getDataStoreComponents(int index)

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

Parameter
Name Description
index int
Returns
Type Description
WidgetConfig.DataStoreComponent

getDataStoreComponentsBuilder(int index)

public WidgetConfig.DataStoreComponent.Builder getDataStoreComponentsBuilder(int index)

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

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

getDataStoreComponentsBuilderList()

public List<WidgetConfig.DataStoreComponent.Builder> getDataStoreComponentsBuilderList()

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

Returns
Type Description
List<Builder>

getDataStoreComponentsCount()

public int getDataStoreComponentsCount()

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

Returns
Type Description
int

getDataStoreComponentsList()

public List<WidgetConfig.DataStoreComponent> getDataStoreComponentsList()

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

Returns
Type Description
List<DataStoreComponent>

getDataStoreComponentsOrBuilder(int index)

public WidgetConfig.DataStoreComponentOrBuilder getDataStoreComponentsOrBuilder(int index)

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

Parameter
Name Description
index int
Returns
Type Description
WidgetConfig.DataStoreComponentOrBuilder

getDataStoreComponentsOrBuilderList()

public List<? extends WidgetConfig.DataStoreComponentOrBuilder> getDataStoreComponentsOrBuilderList()

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

The display name of the collection.

string display_name = 3;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the collection.

string display_name = 3;

Returns
Type Description
ByteString

The bytes for displayName.

getId()

public String getId()

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

For synthetic placeholder entries (see message-level comment) this is a synthetic placeholder id, not a real collection_id.

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 collection, used for widget service. For now it refers to collection_id, in the future we will migrate the field to encrypted collection name UUID.

For synthetic placeholder entries (see message-level comment) this is a synthetic placeholder id, not a real collection_id.

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

Returns
Type Description
ByteString

The bytes for id.

getIsFirstParty()

public boolean getIsFirstParty()

Output only. Whether this is a first-party (Google-owned) connector, as opposed to a third-party connector.

bool is_first_party = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The isFirstParty.

getMetadata()

public DataConnector.ConnectorMetadata getMetadata()

Output only. User-facing connector metadata (title, description, short_description, author, note), retrieved from the registry ConnectorSource.metadata (joined by data source). Shown on the connector detail page.

.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataConnector.ConnectorMetadata

The metadata.

getMetadataBuilder()

public DataConnector.ConnectorMetadata.Builder getMetadataBuilder()

Output only. User-facing connector metadata (title, description, short_description, author, note), retrieved from the registry ConnectorSource.metadata (joined by data source). Shown on the connector detail page.

.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataConnector.ConnectorMetadata.Builder

getMetadataOrBuilder()

public DataConnector.ConnectorMetadataOrBuilder getMetadataOrBuilder()

Output only. User-facing connector metadata (title, description, short_description, author, note), retrieved from the registry ConnectorSource.metadata (joined by data source). Shown on the connector detail page.

.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DataConnector.ConnectorMetadataOrBuilder

getName()

public String getName()

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

For synthetic placeholder entries (see message-level comment) this carries a synthetic placeholder collection id that does not correspond to a real collection. Callers must not attempt to resolve / GET this resource until the user authorizes the connector.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

For synthetic placeholder entries (see message-level comment) this carries a synthetic placeholder collection id that does not correspond to a real collection. Callers must not attempt to resolve / GET this resource until the user authorizes the connector.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getTag()

public String getTag()

Output only. The version-independent label of the connector backing this collection, mirroring DataConnector.tag. Unlike the version-pinned data store id it survives a connector version upgrade, so an upgraded connector keeps the same tag.

Not a unique key. As DataConnector.tag documents, several connectors may share a tag under the same (project, location, collection, data_source), and tag-based lookup resolves to the one with the greatest create_time. Clients must not treat this as a connector identifier.

Empty when the connector was created before the tag-write launch, and for synthetic placeholder entries, which have no underlying DataConnector. Populated only when ConnectorsFeature.enable_connector_tag is on.

string tag = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The tag.

getTagBytes()

public ByteString getTagBytes()

Output only. The version-independent label of the connector backing this collection, mirroring DataConnector.tag. Unlike the version-pinned data store id it survives a connector version upgrade, so an upgraded connector keeps the same tag.

Not a unique key. As DataConnector.tag documents, several connectors may share a tag under the same (project, location, collection, data_source), and tag-based lookup resolves to the one with the greatest create_time. Clients must not treat this as a connector identifier.

Empty when the connector was created before the tag-write launch, and for synthetic placeholder entries, which have no underlying DataConnector. Populated only when ConnectorsFeature.enable_connector_tag is on.

string tag = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for tag.

hasConnectorAuthState()

public boolean hasConnectorAuthState()

Output only. The auth uri of the connector source.

.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the connectorAuthState field is set.

hasMetadata()

public boolean hasMetadata()

Output only. User-facing connector metadata (title, description, short_description, author, note), retrieved from the registry ConnectorSource.metadata (joined by data source). Shown on the connector detail page.

.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the metadata field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConnectorAuthState(WidgetConfig.ConnectorAuthState value)

public WidgetConfig.CollectionComponent.Builder mergeConnectorAuthState(WidgetConfig.ConnectorAuthState value)

Output only. The auth uri of the connector source.

.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WidgetConfig.ConnectorAuthState
Returns
Type Description
WidgetConfig.CollectionComponent.Builder

mergeFrom(WidgetConfig.CollectionComponent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetadata(DataConnector.ConnectorMetadata value)

public WidgetConfig.CollectionComponent.Builder mergeMetadata(DataConnector.ConnectorMetadata value)

Output only. User-facing connector metadata (title, description, short_description, author, note), retrieved from the registry ConnectorSource.metadata (joined by data source). Shown on the connector detail page.

.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DataConnector.ConnectorMetadata
Returns
Type Description
WidgetConfig.CollectionComponent.Builder

removeDataStoreComponents(int index)

public WidgetConfig.CollectionComponent.Builder removeDataStoreComponents(int index)

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

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

setConnectorAuthState(WidgetConfig.ConnectorAuthState value)

public WidgetConfig.CollectionComponent.Builder setConnectorAuthState(WidgetConfig.ConnectorAuthState value)

Output only. The auth uri of the connector source.

.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WidgetConfig.ConnectorAuthState
Returns
Type Description
WidgetConfig.CollectionComponent.Builder

setConnectorAuthState(WidgetConfig.ConnectorAuthState.Builder builderForValue)

public WidgetConfig.CollectionComponent.Builder setConnectorAuthState(WidgetConfig.ConnectorAuthState.Builder builderForValue)

Output only. The auth uri of the connector source.

.google.cloud.discoveryengine.v1.WidgetConfig.ConnectorAuthState connector_auth_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue WidgetConfig.ConnectorAuthState.Builder
Returns
Type Description
WidgetConfig.CollectionComponent.Builder
public WidgetConfig.CollectionComponent.Builder setConnectorIconLink(String value)

Output only. The icon link of the connector source.

string connector_icon_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The connectorIconLink to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setConnectorIconLinkBytes(ByteString value)

public WidgetConfig.CollectionComponent.Builder setConnectorIconLinkBytes(ByteString value)

Output only. The icon link of the connector source.

string connector_icon_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for connectorIconLink to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setDataSource(String value)

public WidgetConfig.CollectionComponent.Builder setDataSource(String value)

The name of the data source, retrieved from Collection.data_connector.data_source.

string data_source = 5;

Parameter
Name Description
value String

The dataSource to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setDataSourceBytes(ByteString value)

public WidgetConfig.CollectionComponent.Builder setDataSourceBytes(ByteString value)

The name of the data source, retrieved from Collection.data_connector.data_source.

string data_source = 5;

Parameter
Name Description
value ByteString

The bytes for dataSource to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setDataSourceDisplayName(String value)

public WidgetConfig.CollectionComponent.Builder setDataSourceDisplayName(String value)

Output only. The display name of the data source.

string data_source_display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The dataSourceDisplayName to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setDataSourceDisplayNameBytes(ByteString value)

public WidgetConfig.CollectionComponent.Builder setDataSourceDisplayNameBytes(ByteString value)

Output only. The display name of the data source.

string data_source_display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for dataSourceDisplayName to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setDataSourceEndUserDisplayName(String value)

public WidgetConfig.CollectionComponent.Builder setDataSourceEndUserDisplayName(String value)

Output only. The end-user-facing display name of the data source, sourced from ConnectorSource.end_user_display_name. When unset, clients fall back to data_source_display_name.

string data_source_end_user_display_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The dataSourceEndUserDisplayName to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setDataSourceEndUserDisplayNameBytes(ByteString value)

public WidgetConfig.CollectionComponent.Builder setDataSourceEndUserDisplayNameBytes(ByteString value)

Output only. The end-user-facing display name of the data source, sourced from ConnectorSource.end_user_display_name. When unset, clients fall back to data_source_display_name.

string data_source_end_user_display_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for dataSourceEndUserDisplayName to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setDataSourceVersion(double value)

public WidgetConfig.CollectionComponent.Builder setDataSourceVersion(double value)

Output only. The version of the connector definition backing this collection, mirroring DataConnector.data_source_version.

double data_source_version = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value double

The dataSourceVersion to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setDataStoreComponents(int index, WidgetConfig.DataStoreComponent value)

public WidgetConfig.CollectionComponent.Builder setDataStoreComponents(int index, WidgetConfig.DataStoreComponent value)

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

Parameters
Name Description
index int
value WidgetConfig.DataStoreComponent
Returns
Type Description
WidgetConfig.CollectionComponent.Builder

setDataStoreComponents(int index, WidgetConfig.DataStoreComponent.Builder builderForValue)

public WidgetConfig.CollectionComponent.Builder setDataStoreComponents(int index, WidgetConfig.DataStoreComponent.Builder builderForValue)

For the data store collection, list of the children data stores.

repeated .google.cloud.discoveryengine.v1.WidgetConfig.DataStoreComponent data_store_components = 4;

Parameters
Name Description
index int
builderForValue WidgetConfig.DataStoreComponent.Builder
Returns
Type Description
WidgetConfig.CollectionComponent.Builder

setDisplayName(String value)

public WidgetConfig.CollectionComponent.Builder setDisplayName(String value)

The display name of the collection.

string display_name = 3;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public WidgetConfig.CollectionComponent.Builder setDisplayNameBytes(ByteString value)

The display name of the collection.

string display_name = 3;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setId(String value)

public WidgetConfig.CollectionComponent.Builder setId(String value)

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

For synthetic placeholder entries (see message-level comment) this is a synthetic placeholder id, not a real collection_id.

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

Parameter
Name Description
value String

The id to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setIdBytes(ByteString value)

public WidgetConfig.CollectionComponent.Builder setIdBytes(ByteString value)

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

For synthetic placeholder entries (see message-level comment) this is a synthetic placeholder id, not a real collection_id.

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

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setIsFirstParty(boolean value)

public WidgetConfig.CollectionComponent.Builder setIsFirstParty(boolean value)

Output only. Whether this is a first-party (Google-owned) connector, as opposed to a third-party connector.

bool is_first_party = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The isFirstParty to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setMetadata(DataConnector.ConnectorMetadata value)

public WidgetConfig.CollectionComponent.Builder setMetadata(DataConnector.ConnectorMetadata value)

Output only. User-facing connector metadata (title, description, short_description, author, note), retrieved from the registry ConnectorSource.metadata (joined by data source). Shown on the connector detail page.

.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DataConnector.ConnectorMetadata
Returns
Type Description
WidgetConfig.CollectionComponent.Builder

setMetadata(DataConnector.ConnectorMetadata.Builder builderForValue)

public WidgetConfig.CollectionComponent.Builder setMetadata(DataConnector.ConnectorMetadata.Builder builderForValue)

Output only. User-facing connector metadata (title, description, short_description, author, note), retrieved from the registry ConnectorSource.metadata (joined by data source). Shown on the connector detail page.

.google.cloud.discoveryengine.v1.DataConnector.ConnectorMetadata metadata = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue DataConnector.ConnectorMetadata.Builder
Returns
Type Description
WidgetConfig.CollectionComponent.Builder

setName(String value)

public WidgetConfig.CollectionComponent.Builder setName(String value)

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

For synthetic placeholder entries (see message-level comment) this carries a synthetic placeholder collection id that does not correspond to a real collection. Callers must not attempt to resolve / GET this resource until the user authorizes the connector.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setNameBytes(ByteString value)

public WidgetConfig.CollectionComponent.Builder setNameBytes(ByteString value)

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

For synthetic placeholder entries (see message-level comment) this carries a synthetic placeholder collection id that does not correspond to a real collection. Callers must not attempt to resolve / GET this resource until the user authorizes the connector.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setTag(String value)

public WidgetConfig.CollectionComponent.Builder setTag(String value)

Output only. The version-independent label of the connector backing this collection, mirroring DataConnector.tag. Unlike the version-pinned data store id it survives a connector version upgrade, so an upgraded connector keeps the same tag.

Not a unique key. As DataConnector.tag documents, several connectors may share a tag under the same (project, location, collection, data_source), and tag-based lookup resolves to the one with the greatest create_time. Clients must not treat this as a connector identifier.

Empty when the connector was created before the tag-write launch, and for synthetic placeholder entries, which have no underlying DataConnector. Populated only when ConnectorsFeature.enable_connector_tag is on.

string tag = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The tag to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.

setTagBytes(ByteString value)

public WidgetConfig.CollectionComponent.Builder setTagBytes(ByteString value)

Output only. The version-independent label of the connector backing this collection, mirroring DataConnector.tag. Unlike the version-pinned data store id it survives a connector version upgrade, so an upgraded connector keeps the same tag.

Not a unique key. As DataConnector.tag documents, several connectors may share a tag under the same (project, location, collection, data_source), and tag-based lookup resolves to the one with the greatest create_time. Clients must not treat this as a connector identifier.

Empty when the connector was created before the tag-write launch, and for synthetic placeholder entries, which have no underlying DataConnector. Populated only when ConnectorsFeature.enable_connector_tag is on.

string tag = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for tag to set.

Returns
Type Description
WidgetConfig.CollectionComponent.Builder

This builder for chaining.