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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PluginInstanceAction.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PluginInstanceAction.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PluginInstanceAction.Builder>
    • getDefaultInstanceForType

      public PluginInstanceAction getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PluginInstanceAction build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PluginInstanceAction buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PluginInstanceAction.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PluginInstanceAction.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PluginInstanceAction.Builder>
      Throws:
      IOException
    • getActionStatusCase

      public PluginInstanceAction.ActionStatusCase getActionStatusCase()
      Specified by:
      getActionStatusCase in interface PluginInstanceActionOrBuilder
    • clearActionStatus

      public PluginInstanceAction.Builder 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:
      hasHubInstanceAction in interface PluginInstanceActionOrBuilder
      Returns:
      Whether the hubInstanceAction field is set.
    • 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];
      Specified by:
      getHubInstanceAction in interface PluginInstanceActionOrBuilder
      Returns:
      The hubInstanceAction.
    • setHubInstanceAction

      public PluginInstanceAction.Builder setHubInstanceAction(ExecutionStatus value)
       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

      public PluginInstanceAction.Builder setHubInstanceAction(ExecutionStatus.Builder builderForValue)
       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

      public PluginInstanceAction.Builder mergeHubInstanceAction(ExecutionStatus value)
       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

      public PluginInstanceAction.Builder 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

      public ExecutionStatus.Builder 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

      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];
      Specified by:
      getHubInstanceActionOrBuilder in interface PluginInstanceActionOrBuilder
    • getActionId

      public String 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:
      getActionId in interface PluginInstanceActionOrBuilder
      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:
      getActionIdBytes in interface PluginInstanceActionOrBuilder
      Returns:
      The bytes for actionId.
    • setActionId

      public PluginInstanceAction.Builder setActionId(String value)
       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

      public PluginInstanceAction.Builder 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

      public PluginInstanceAction.Builder setActionIdBytes(com.google.protobuf.ByteString value)
       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:
      getStateValue in interface PluginInstanceActionOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public PluginInstanceAction.Builder setStateValue(int value)
       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

      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];
      Specified by:
      getState in interface PluginInstanceActionOrBuilder
      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

      public PluginInstanceAction.Builder 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

      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];
      Specified by:
      getScheduleCronExpression in interface PluginInstanceActionOrBuilder
      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:
      getScheduleCronExpressionBytes in interface PluginInstanceActionOrBuilder
      Returns:
      The bytes for scheduleCronExpression.
    • setScheduleCronExpression

      public PluginInstanceAction.Builder setScheduleCronExpression(String 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 scheduleCronExpression to set.
      Returns:
      This builder for chaining.
    • clearScheduleCronExpression

      public PluginInstanceAction.Builder 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:
      hasCurationConfig in interface PluginInstanceActionOrBuilder
      Returns:
      Whether the curationConfig field is set.
    • 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];
      Specified by:
      getCurationConfig in interface PluginInstanceActionOrBuilder
      Returns:
      The curationConfig.
    • setCurationConfig

      public PluginInstanceAction.Builder setCurationConfig(CurationConfig value)
       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

      public PluginInstanceAction.Builder setCurationConfig(CurationConfig.Builder builderForValue)
       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

      public PluginInstanceAction.Builder mergeCurationConfig(CurationConfig value)
       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

      public PluginInstanceAction.Builder 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

      public CurationConfig.Builder 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

      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];
      Specified by:
      getCurationConfigOrBuilder in interface PluginInstanceActionOrBuilder
    • 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];
      Specified by:
      getScheduleTimeZone in interface PluginInstanceActionOrBuilder
      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:
      getScheduleTimeZoneBytes in interface PluginInstanceActionOrBuilder
      Returns:
      The bytes for scheduleTimeZone.
    • setScheduleTimeZone

      public PluginInstanceAction.Builder setScheduleTimeZone(String value)
       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

      public PluginInstanceAction.Builder 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

      public PluginInstanceAction.Builder setScheduleTimeZoneBytes(com.google.protobuf.ByteString value)
       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

      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];
      Specified by:
      getServiceAccount in interface PluginInstanceActionOrBuilder
      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:
      getServiceAccountBytes in interface PluginInstanceActionOrBuilder
      Returns:
      The bytes for serviceAccount.
    • setServiceAccount

      public PluginInstanceAction.Builder setServiceAccount(String value)
       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

      public PluginInstanceAction.Builder 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

      public PluginInstanceAction.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
       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:
      hasResourceConfig in interface PluginInstanceActionOrBuilder
      Returns:
      Whether the resourceConfig field is set.
    • 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];
      Specified by:
      getResourceConfig in interface PluginInstanceActionOrBuilder
      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

       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

      public PluginInstanceAction.Builder 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

      public PluginInstanceAction.ResourceConfig.Builder 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

      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];
      Specified by:
      getResourceConfigOrBuilder in interface PluginInstanceActionOrBuilder