ResourceRetrievedAction

A ResourceRetrievedAction is used to retrieve custom resource content when needed, where the
custom resource field is defined in the ResourceData.

Only available for Google Workspace add-ons that extend Google Workspace Studio.

Sample usage:

```javascript
let fieldData_1 = AddOnsResponseService.newVariableData()
   .addStringValue("value_1");
let fieldData_2 = AddOnsResponseService.newVariableData()
   .addStringValue("value_2");

let resourceData = AddOnsResponseService.newResourceData()
   .addVariableData("field_1", fieldData_1)
   .addVariableData("field_2", fieldData_2)

let workflowAction = AddOnsResponseService.newResourceRetrievedAction()
   .setResourceData(resourceData)

let hostAppAction = AddOnsResponseService.newHostAppAction()
   .setWorkflowAction(workflowAction);

return AddOnsResponseService.newRenderActionBuilder()
   .setHostAppAction(hostAppAction)
   .build();
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/add-ons-response-service/resource-retrieved-action#setResourceData(ResourceData)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/resource-retrieved-action#` | Sets the `https://developers.google.com/apps-script/reference/add-ons-response-service/resource-data` to the resource retrieved action to provide values to the dynamic resource fields or custom resource fields. |

## Detailed documentation

### `setResourceData(resourceData)`

Sets the `https://developers.google.com/apps-script/reference/add-ons-response-service/resource-data` to the resource retrieved action to provide values to the dynamic
resource fields or custom resource fields.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `resourceData` | `https://developers.google.com/apps-script/reference/add-ons-response-service/resource-data` | The `https://developers.google.com/apps-script/reference/add-ons-response-service/resource-data` returned by the resource retrieved action. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/resource-retrieved-action#` --- This resource retrieved action, for chaining.