Class Info
Info
Contains info data for the config. Its properties determine how the info is displayed in Data
Studio.
const cc = DataStudioApp.createCommunityConnector();
const config = cc.getConfig();
const info1 = config.newInfo().setId('info1').setText(
'This text gives some context on the configuration.');
Methods
Method | Return type | Brief description |
setId(id) | Info | Sets the unique ID for this configuration entry. |
setText(text) | Info | Sets the text for this configuration entry. |
Detailed documentation
setId(id)
Sets the unique ID for this configuration entry.
Parameters
Name | Type | Description |
id | String | The ID to set. |
Return
Info
— This builder, for chaining.
setText(text)
Sets the text for this configuration entry.
Parameters
Name | Type | Description |
text | String | The text to set. |
Return
Info
— This builder, for chaining.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[[["The `Info` object stores configuration data that influences how information is displayed in Data Studio."],["Developers can utilize the `setId` and `setText` methods to define the unique identifier and descriptive text for a configuration entry within the `Info` object."],["The `Info` object uses a builder pattern, allowing developers to chain methods together for streamlined configuration."]]],["The `Info` object, part of a Data Studio Community Connector configuration, displays information. `setId(id)` assigns a unique string ID, crucial for identifying the configuration entry. `setText(text)` sets the string text content to be displayed. Both methods return the `Info` object itself, allowing for method chaining. These actions allow for defining and displaying context within the Data Studio configuration.\n"]]