Class WidgetConfig.CollectionComponent (0.99.0)

public static final class WidgetConfig.CollectionComponent extends GeneratedMessage 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > WidgetConfig.CollectionComponent

Static Fields

CONNECTOR_AUTH_STATE_FIELD_NUMBER

public static final int CONNECTOR_AUTH_STATE_FIELD_NUMBER
Field Value
Type Description
int
public static final int CONNECTOR_ICON_LINK_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_DISPLAY_NAME_FIELD_NUMBER

public static final int DATA_SOURCE_DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_END_USER_DISPLAY_NAME_FIELD_NUMBER

public static final int DATA_SOURCE_END_USER_DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_FIELD_NUMBER

public static final int DATA_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

DATA_SOURCE_VERSION_FIELD_NUMBER

public static final int DATA_SOURCE_VERSION_FIELD_NUMBER
Field Value
Type Description
int

DATA_STORE_COMPONENTS_FIELD_NUMBER

public static final int DATA_STORE_COMPONENTS_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

IS_FIRST_PARTY_FIELD_NUMBER

public static final int IS_FIRST_PARTY_FIELD_NUMBER
Field Value
Type Description
int

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

TAG_FIELD_NUMBER

public static final int TAG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WidgetConfig.CollectionComponent getDefaultInstance()
Returns
Type Description
WidgetConfig.CollectionComponent

getDescriptor()

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

newBuilder()

public static WidgetConfig.CollectionComponent.Builder newBuilder()
Returns
Type Description
WidgetConfig.CollectionComponent.Builder

newBuilder(WidgetConfig.CollectionComponent prototype)

public static WidgetConfig.CollectionComponent.Builder newBuilder(WidgetConfig.CollectionComponent prototype)
Parameter
Name Description
prototype WidgetConfig.CollectionComponent
Returns
Type Description
WidgetConfig.CollectionComponent.Builder

parseDelimitedFrom(InputStream input)

public static WidgetConfig.CollectionComponent parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetConfig.CollectionComponent
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.CollectionComponent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.CollectionComponent
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WidgetConfig.CollectionComponent parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WidgetConfig.CollectionComponent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.CollectionComponent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.CollectionComponent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WidgetConfig.CollectionComponent parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WidgetConfig.CollectionComponent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.CollectionComponent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.CollectionComponent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WidgetConfig.CollectionComponent parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WidgetConfig.CollectionComponent
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.CollectionComponent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.CollectionComponent
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WidgetConfig.CollectionComponent parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetConfig.CollectionComponent
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.CollectionComponent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.CollectionComponent
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WidgetConfig.CollectionComponent parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WidgetConfig.CollectionComponent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.CollectionComponent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.CollectionComponent
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WidgetConfig.CollectionComponent> parser()
Returns
Type Description
Parser<CollectionComponent>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

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

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.

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.

getParserForType()

public Parser<WidgetConfig.CollectionComponent> getParserForType()
Returns
Type Description
Parser<CollectionComponent>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected WidgetConfig.CollectionComponent.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WidgetConfig.CollectionComponent.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException