Class Info Stay organized with collections Save and categorize content based on your preferences.
Page Summary
The
Infoobject contains data for the configuration and determines how it is displayed in Data Studio.You can create a new
Infoobject usingconfig.newInfo().The
Infoobject has methods likesetId(id)andsetText(text)to set its unique ID and descriptive text.
Contains info data for the config. Its properties determine how the info is displayed in DataStudio.
constcc=DataStudioApp.createCommunityConnector();constconfig=cc.getConfig();constinfo1=config.newInfo().setId('info1').setText('This text gives some context on the configuration.');
Methods
| Method | Return type | Brief description |
|---|---|---|
set | Info | Sets the unique ID for this configuration entry. |
set | 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 theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-11 UTC.