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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
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 |
|
public static final int DATA_SOURCE_DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int DATA_SOURCE_END_USER_DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int DATA_SOURCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int DATA_SOURCE_VERSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int DATA_STORE_COMPONENTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int IS_FIRST_PARTY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int METADATA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TAG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static WidgetConfig.CollectionComponent getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static WidgetConfig.CollectionComponent.Builder newBuilder()
public static WidgetConfig.CollectionComponent.Builder newBuilder(WidgetConfig.CollectionComponent prototype)
public static WidgetConfig.CollectionComponent parseDelimitedFrom(InputStream input)
public static WidgetConfig.CollectionComponent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetConfig.CollectionComponent parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static WidgetConfig.CollectionComponent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WidgetConfig.CollectionComponent parseFrom(ByteString data)
public static WidgetConfig.CollectionComponent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WidgetConfig.CollectionComponent parseFrom(CodedInputStream input)
public static WidgetConfig.CollectionComponent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetConfig.CollectionComponent parseFrom(InputStream input)
public static WidgetConfig.CollectionComponent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetConfig.CollectionComponent parseFrom(ByteBuffer data)
public static WidgetConfig.CollectionComponent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<WidgetConfig.CollectionComponent> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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];
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];
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|
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 |
|
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;
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
|
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> |
|
public WidgetConfig.CollectionComponent getDefaultInstanceForType()
public String getDisplayName()
The display name of the collection.
string display_name = 3;
| Returns |
| Type |
Description |
String |
The displayName.
|
public ByteString getDisplayNameBytes()
The display name of the collection.
string display_name = 3;
| Returns |
| Type |
Description |
ByteString |
The bytes for displayName.
|
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.
|
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.
|
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.
|
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];
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];
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.
|
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.
|
public Parser<WidgetConfig.CollectionComponent> getParserForType()
Overrides
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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.
|
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.
|
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.
|
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.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public WidgetConfig.CollectionComponent.Builder newBuilderForType()
protected WidgetConfig.CollectionComponent.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public WidgetConfig.CollectionComponent.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides