2.4.0 (latest) 2.3.0 2.2.0 2.1.0 2.0.0 1.1.0 1.0.0

    public sealed class UniversalAction : IMessage<UniversalAction>, IEquatable<UniversalAction>, IDeepCloneable<UniversalAction>, IBufferMessage, IMessage

Reference documentation and code samples for the Google.Apps.Script.Type class UniversalAction.

An action that is always available in the add-on toolbar menu regardless of
message context.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> UniversalAction

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[UniversalAction](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.UniversalAction.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UniversalAction](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.UniversalAction.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[UniversalAction](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.UniversalAction.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Apps.Script.Type.Gmail](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.md.txt)

## Assembly

Google.Apps.Script.Type.dll

## Constructors

### UniversalAction()

    public UniversalAction()

### UniversalAction(UniversalAction)

    public UniversalAction(UniversalAction other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `UniversalAction` |

## Properties

### ActionTypeCase

    public UniversalAction.ActionTypeOneofCase ActionTypeCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `UniversalActionActionTypeOneofCase` |   |

### HasOpenLink

    public bool HasOpenLink { get; }

Gets whether the "open_link" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasRunFunction

    public bool HasRunFunction { get; }

Gets whether the "run_function" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### OpenLink

    public string OpenLink { get; set; }

A link that is opened by Gmail when the user triggers the action.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### RunFunction

    public string RunFunction { get; set; }

An endpoint that is called when the user triggers the
action. See the [universal actions
guide](https://docs.cloud.google.com/gmail/add-ons/how-tos/universal-actions) for details.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Text

    public string Text { get; set; }

Required. User-visible text describing the action, for example, "Add a new
contact."

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |