public final class PluginInstanceAction extends GeneratedMessageV3 implements PluginInstanceActionOrBuilder
PluginInstanceAction represents an action which can be executed in the plugin
instance.
Protobuf type google.cloud.apihub.v1.PluginInstanceAction
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ACTION_ID_FIELD_NUMBER
public static final int ACTION_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CURATION_CONFIG_FIELD_NUMBER
public static final int CURATION_CONFIG_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
HUB_INSTANCE_ACTION_FIELD_NUMBER
public static final int HUB_INSTANCE_ACTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
RESOURCE_CONFIG_FIELD_NUMBER
public static final int RESOURCE_CONFIG_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SCHEDULE_CRON_EXPRESSION_FIELD_NUMBER
public static final int SCHEDULE_CRON_EXPRESSION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SCHEDULE_TIME_ZONE_FIELD_NUMBER
public static final int SCHEDULE_TIME_ZONE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static PluginInstanceAction getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static PluginInstanceAction.Builder newBuilder()
newBuilder(PluginInstanceAction prototype)
public static PluginInstanceAction.Builder newBuilder(PluginInstanceAction prototype)
public static PluginInstanceAction parseDelimitedFrom(InputStream input)
public static PluginInstanceAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static PluginInstanceAction parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PluginInstanceAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static PluginInstanceAction parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PluginInstanceAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PluginInstanceAction parseFrom(CodedInputStream input)
public static PluginInstanceAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PluginInstanceAction parseFrom(InputStream input)
public static PluginInstanceAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static PluginInstanceAction parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PluginInstanceAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<PluginInstanceAction> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getActionId()
public 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 |
String |
The actionId.
|
getActionIdBytes()
public 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 |
ByteString |
The bytes for actionId.
|
getActionStatusCase()
public PluginInstanceAction.ActionStatusCase getActionStatusCase()
getCurationConfig()
public 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];
getCurationConfigOrBuilder()
public 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];
getDefaultInstanceForType()
public PluginInstanceAction getDefaultInstanceForType()
getHubInstanceAction()
public 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];
getHubInstanceActionOrBuilder()
public 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];
getParserForType()
public Parser<PluginInstanceAction> getParserForType()
Overrides
getResourceConfig()
public 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];
getResourceConfigOrBuilder()
public 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];
getScheduleCronExpression()
public 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 |
String |
The scheduleCronExpression.
|
getScheduleCronExpressionBytes()
public 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 |
ByteString |
The bytes for scheduleCronExpression.
|
getScheduleTimeZone()
public 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 |
String |
The scheduleTimeZone.
|
getScheduleTimeZoneBytes()
public 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 |
ByteString |
The bytes for scheduleTimeZone.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getServiceAccount()
public 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 |
String |
The serviceAccount.
|
getServiceAccountBytes()
public 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 |
ByteString |
The bytes for serviceAccount.
|
getState()
public 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];
getStateValue()
public 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 |
int |
The enum numeric value on the wire for state.
|
hasCurationConfig()
public 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 |
boolean |
Whether the curationConfig field is set.
|
hasHubInstanceAction()
public 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 |
boolean |
Whether the hubInstanceAction field is set.
|
hasResourceConfig()
public 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 |
boolean |
Whether the resourceConfig field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public PluginInstanceAction.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PluginInstanceAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public PluginInstanceAction.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides