Package com.google.cloud.apihub.v1
Class PluginInstanceAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PluginInstanceAction.Builder>
com.google.cloud.apihub.v1.PluginInstanceAction.Builder
- All Implemented Interfaces:
PluginInstanceActionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PluginInstanceAction
public static final class PluginInstanceAction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PluginInstanceAction.Builder>
implements PluginInstanceActionOrBuilder
PluginInstanceAction represents an action which can be executed in the plugin instance.Protobuf type
google.cloud.apihub.v1.PluginInstanceAction-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Optional.Optional.Output only.Optional.Optional.Optional.Output only.Required.com.google.protobuf.ByteStringRequired.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Output only.Output only.Output only.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.getState()Output only.intOutput only.booleanOptional.booleanOptional.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.mergeFrom(PluginInstanceAction other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.Output only.setActionId(String value) Required.setActionIdBytes(com.google.protobuf.ByteString value) Required.setCurationConfig(CurationConfig value) Optional.setCurationConfig(CurationConfig.Builder builderForValue) Optional.Optional.setHubInstanceAction(ExecutionStatus.Builder builderForValue) Optional.Output only.setResourceConfig(PluginInstanceAction.ResourceConfig.Builder builderForValue) Output only.setScheduleCronExpression(String value) Optional.setScheduleCronExpressionBytes(com.google.protobuf.ByteString value) Optional.setScheduleTimeZone(String value) Optional.setScheduleTimeZoneBytes(com.google.protobuf.ByteString value) Optional.setServiceAccount(String value) Optional.setServiceAccountBytes(com.google.protobuf.ByteString value) Optional.Output only.setStateValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PluginInstanceAction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PluginInstanceAction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PluginInstanceAction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PluginInstanceAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PluginInstanceAction.Builder>
-
mergeFrom
public PluginInstanceAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PluginInstanceAction.Builder>- Throws:
IOException
-
getActionStatusCase
- Specified by:
getActionStatusCasein interfacePluginInstanceActionOrBuilder
-
clearActionStatus
-
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];- Specified by:
hasHubInstanceActionin interfacePluginInstanceActionOrBuilder- Returns:
- Whether the hubInstanceAction field is set.
-
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];- Specified by:
getHubInstanceActionin interfacePluginInstanceActionOrBuilder- Returns:
- The hubInstanceAction.
-
setHubInstanceAction
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]; -
setHubInstanceAction
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]; -
mergeHubInstanceAction
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]; -
clearHubInstanceAction
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]; -
getHubInstanceActionBuilder
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
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];- Specified by:
getHubInstanceActionOrBuilderin interfacePluginInstanceActionOrBuilder
-
getActionId
Required. This should map to one of the [action id][google.cloud.apihub.v1.PluginActionConfig.id] specified in [actions_config][google.cloud.apihub.v1.Plugin.actions_config] in the plugin.
string action_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getActionIdin interfacePluginInstanceActionOrBuilder- Returns:
- The actionId.
-
getActionIdBytes
public com.google.protobuf.ByteString getActionIdBytes()Required. This should map to one of the [action id][google.cloud.apihub.v1.PluginActionConfig.id] specified in [actions_config][google.cloud.apihub.v1.Plugin.actions_config] in the plugin.
string action_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getActionIdBytesin interfacePluginInstanceActionOrBuilder- Returns:
- The bytes for actionId.
-
setActionId
Required. This should map to one of the [action id][google.cloud.apihub.v1.PluginActionConfig.id] specified in [actions_config][google.cloud.apihub.v1.Plugin.actions_config] in the plugin.
string action_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The actionId to set.- Returns:
- This builder for chaining.
-
clearActionId
Required. This should map to one of the [action id][google.cloud.apihub.v1.PluginActionConfig.id] specified in [actions_config][google.cloud.apihub.v1.Plugin.actions_config] in the plugin.
string action_id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setActionIdBytes
Required. This should map to one of the [action id][google.cloud.apihub.v1.PluginActionConfig.id] specified in [actions_config][google.cloud.apihub.v1.Plugin.actions_config] in the plugin.
string action_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for actionId to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getStateValuein interfacePluginInstanceActionOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getStatein interfacePluginInstanceActionOrBuilder- Returns:
- The state.
-
setState
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];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
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:
- This builder for chaining.
-
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];- Specified by:
getScheduleCronExpressionin interfacePluginInstanceActionOrBuilder- Returns:
- The scheduleCronExpression.
-
getScheduleCronExpressionBytes
public com.google.protobuf.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];- Specified by:
getScheduleCronExpressionBytesin interfacePluginInstanceActionOrBuilder- Returns:
- The bytes for scheduleCronExpression.
-
setScheduleCronExpression
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];- Parameters:
value- The scheduleCronExpression to set.- Returns:
- This builder for chaining.
-
clearScheduleCronExpression
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:
- This builder for chaining.
-
setScheduleCronExpressionBytes
public PluginInstanceAction.Builder setScheduleCronExpressionBytes(com.google.protobuf.ByteString value) 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];- Parameters:
value- The bytes for scheduleCronExpression to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasCurationConfigin interfacePluginInstanceActionOrBuilder- Returns:
- Whether the curationConfig field is set.
-
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];- Specified by:
getCurationConfigin interfacePluginInstanceActionOrBuilder- Returns:
- The curationConfig.
-
setCurationConfig
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]; -
setCurationConfig
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]; -
mergeCurationConfig
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]; -
clearCurationConfig
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]; -
getCurationConfigBuilder
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
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];- Specified by:
getCurationConfigOrBuilderin interfacePluginInstanceActionOrBuilder
-
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];- Specified by:
getScheduleTimeZonein interfacePluginInstanceActionOrBuilder- Returns:
- The scheduleTimeZone.
-
getScheduleTimeZoneBytes
public com.google.protobuf.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];- Specified by:
getScheduleTimeZoneBytesin interfacePluginInstanceActionOrBuilder- Returns:
- The bytes for scheduleTimeZone.
-
setScheduleTimeZone
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];- Parameters:
value- The scheduleTimeZone to set.- Returns:
- This builder for chaining.
-
clearScheduleTimeZone
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:
- This builder for chaining.
-
setScheduleTimeZoneBytes
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];- Parameters:
value- The bytes for scheduleTimeZone to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getServiceAccountin interfacePluginInstanceActionOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.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];- Specified by:
getServiceAccountBytesin interfacePluginInstanceActionOrBuilder- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
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];- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
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:
- This builder for chaining.
-
setServiceAccountBytes
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];- Parameters:
value- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasResourceConfigin interfacePluginInstanceActionOrBuilder- Returns:
- Whether the resourceConfig field is set.
-
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];- Specified by:
getResourceConfigin interfacePluginInstanceActionOrBuilder- Returns:
- The resourceConfig.
-
setResourceConfig
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]; -
setResourceConfig
public PluginInstanceAction.Builder setResourceConfig(PluginInstanceAction.ResourceConfig.Builder builderForValue) 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]; -
mergeResourceConfig
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]; -
clearResourceConfig
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]; -
getResourceConfigBuilder
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
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];- Specified by:
getResourceConfigOrBuilderin interfacePluginInstanceActionOrBuilder
-