# Interface PluginInstanceActionOrBuilder (0.44.0)

0.44.0 (latest) 0.41.0 0.40.0 0.38.0 0.36.0 0.35.0 0.34.0 0.33.0 0.31.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.23.0 0.21.0 0.20.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.2.0 0.1.0

    public interface PluginInstanceActionOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getActionId()

    public abstract String getActionId()

Required. This should map to one of the action id specified in
actions_config in the
plugin.

`string action_id = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The actionId. |

### getActionIdBytes()

    public abstract ByteString getActionIdBytes()

Required. This should map to one of the action id specified in
actions_config in the
plugin.

`string action_id = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for actionId. |

### getActionStatusCase()

    public abstract PluginInstanceAction.ActionStatusCase getActionStatusCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.PluginInstanceAction.ActionStatusCase` |   |

### getCurationConfig()

    public abstract CurationConfig getCurationConfig()

Optional. This configuration should be provided if the plugin action is
publishing data to API hub curate layer.

`
.google.cloud.apihub.v1.CurationConfig curation_config = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.CurationConfig` | The curationConfig. |

### getCurationConfigOrBuilder()

    public abstract CurationConfigOrBuilder getCurationConfigOrBuilder()

Optional. This configuration should be provided if the plugin action is
publishing data to API hub curate layer.

`
.google.cloud.apihub.v1.CurationConfig curation_config = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.CurationConfigOrBuilder` |   |

### getHubInstanceAction()

    public abstract ExecutionStatus getHubInstanceAction()

Optional. The execution information for the plugin instance action done
corresponding to an API hub instance.

`
.google.cloud.apihub.v1.ExecutionStatus hub_instance_action = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.ExecutionStatus` | The hubInstanceAction. |

### getHubInstanceActionOrBuilder()

    public abstract ExecutionStatusOrBuilder getHubInstanceActionOrBuilder()

Optional. The execution information for the plugin instance action done
corresponding to an API hub instance.

`
.google.cloud.apihub.v1.ExecutionStatus hub_instance_action = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.ExecutionStatusOrBuilder` |   |

### getResourceConfig()

    public abstract PluginInstanceAction.ResourceConfig getResourceConfig()

Output only. The configuration of resources created for a given plugin
instance action. Note these will be returned only in case of Non-GCP
plugins like OPDK.

`
.google.cloud.apihub.v1.PluginInstanceAction.ResourceConfig resource_config = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.PluginInstanceAction.ResourceConfig` | The resourceConfig. |

### getResourceConfigOrBuilder()

    public abstract PluginInstanceAction.ResourceConfigOrBuilder getResourceConfigOrBuilder()

Output only. The configuration of resources created for a given plugin
instance action. Note these will be returned only in case of Non-GCP
plugins like OPDK.

`
.google.cloud.apihub.v1.PluginInstanceAction.ResourceConfig resource_config = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.PluginInstanceAction.ResourceConfigOrBuilder` |   |

### getScheduleCronExpression()

    public abstract String getScheduleCronExpression()

Optional. The schedule for this plugin instance action. This can only be
set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.

`string schedule_cron_expression = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The scheduleCronExpression. |

### getScheduleCronExpressionBytes()

    public abstract ByteString getScheduleCronExpressionBytes()

Optional. The schedule for this plugin instance action. This can only be
set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.

`string schedule_cron_expression = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for scheduleCronExpression. |

### getScheduleTimeZone()

    public abstract String getScheduleTimeZone()

Optional. The time zone for the schedule cron expression. If not provided,
UTC will be used.

`string schedule_time_zone = 7 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The scheduleTimeZone. |

### getScheduleTimeZoneBytes()

    public abstract ByteString getScheduleTimeZoneBytes()

Optional. The time zone for the schedule cron expression. If not provided,
UTC will be used.

`string schedule_time_zone = 7 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for scheduleTimeZone. |

### getServiceAccount()

    public abstract String getServiceAccount()

Optional. The service account used to publish data. Note, the service
account will only be accepted for non GCP plugins like OPDK.

`string service_account = 8 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The serviceAccount. |

### getServiceAccountBytes()

    public abstract ByteString getServiceAccountBytes()

Optional. The service account used to publish data. Note, the service
account will only be accepted for non GCP plugins like OPDK.

`string service_account = 8 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for serviceAccount. |

### getState()

    public abstract PluginInstanceAction.State getState()

Output only. The current state of the plugin action in the plugin instance.

`
.google.cloud.apihub.v1.PluginInstanceAction.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.PluginInstanceAction.State` | The state. |

### getStateValue()

    public abstract int getStateValue()

Output only. The current state of the plugin action in the plugin instance.

`
.google.cloud.apihub.v1.PluginInstanceAction.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### hasCurationConfig()

    public abstract boolean hasCurationConfig()

Optional. This configuration should be provided if the plugin action is
publishing data to API hub curate layer.

`
.google.cloud.apihub.v1.CurationConfig curation_config = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the curationConfig field is set. |

### hasHubInstanceAction()

    public abstract boolean hasHubInstanceAction()

Optional. The execution information for the plugin instance action done
corresponding to an API hub instance.

`
.google.cloud.apihub.v1.ExecutionStatus hub_instance_action = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the hubInstanceAction field is set. |

### hasResourceConfig()

    public abstract boolean hasResourceConfig()

Output only. The configuration of resources created for a given plugin
instance action. Note these will be returned only in case of Non-GCP
plugins like OPDK.

`
.google.cloud.apihub.v1.PluginInstanceAction.ResourceConfig resource_config = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the resourceConfig field is set. |