AI-generated Key Takeaways
-  Config contains the configuration entries for a connector, defining the questions asked when adding a new connector. 
-  The build()method validates the Config object and returns it in the format needed by Data Studio.
-  Config offers methods to create various configuration entry types like checkbox, info, select multiple, select single, text area, and text input. 
-  Methods like setDateRangeRequired()andsetIsSteppedConfig()allow for setting specific behaviors for the connector configuration.
Contains the configuration entries for a connector. These configuration entries define what questions are asked when adding a new connector.
const cc = DataStudioApp . createCommunityConnector (); const config = cc . getConfig (); const info_entry = config . newInfo (). setId ( 'info_id' ). setHelpText ( 'This connector can connect to multiple data endpoints.' );
Methods
| Method | Return type | Brief description | 
|---|---|---|
| Object | Validates this object and returns it in the format needed by Data Studio. | |
|  Checkbox 
 | Returns a new checkbox configuration entry. | |
|  Info 
 | Returns a new info configuration entry. | |
|  Option  | Returns a new options builder. | |
|  Select  | Returns a new select multiple configuration entry. | |
|  Select  | Returns a new select single configuration entry. | |
|  Text  | Returns a new text area configuration entry. | |
|  Text  | Returns a new text input configuration entry. | |
| String | Prints the JSON representation of this object. | |
|  Config 
 | If true, a date range is provided for getData() requests. | |
|  Config 
 | If true,get is called again with the current user configuration. | 
Detailed documentation
 build() 
 
 Validates this object and returns it in the format needed by Data Studio.
Return
 Object 
— The validated  Config 
 
object.
 new  
 
  
 new  
 
  
 new  
 
  
 new  
 
 Returns a new select multiple configuration entry.
Return
  Select  
— A new select multiple configuration entry.
 new  
 
 Returns a new select single configuration entry.
Return
  Select  
— A new select single configuration entry.
 new  
 
 Returns a new text area configuration entry.
Return
  Text  
— A new text area configuration entry.
 new  
 
 Returns a new text input configuration entry.
Return
  Text  
— A new text input configuration entry.
 print  
 
 Prints the JSON representation of this object. This is for debugging only.
Return
 String 
 set  
 
 If true 
, a date range is provided for getData() requests.
Parameters
| Name | Type | Description | 
|---|---|---|
| date  | Boolean | Whether or not a date range should be provided to get requests. | 
Return
  Config 
 
— This builder, for chaining.
 set  
 
 If true 
, get  
is called again with the current user configuration.
Parameters
| Name | Type | Description | 
|---|---|---|
| is  | Boolean | The stepped config status to set. | 
Return
  Config 
 
— This builder, for chaining.

