Class Handler.LifecycleHandler.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Handler.LifecycleHandler.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Handler.LifecycleHandler.Builder
All Implemented Interfaces:
Handler.LifecycleHandlerOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Handler.LifecycleHandler

public static final class Handler.LifecycleHandler.Builder extends com.google.protobuf.GeneratedMessage.Builder<Handler.LifecycleHandler.Builder> implements Handler.LifecycleHandlerOrBuilder
 A handler that is triggered on the specific
 [lifecycle_stage][google.cloud.dialogflow.cx.v3beta1.Handler.LifecycleHandler.lifecycle_stage]
 of the playbook execution.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Handler.LifecycleHandler
  • 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<Handler.LifecycleHandler.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<Handler.LifecycleHandler.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<Handler.LifecycleHandler.Builder>
    • getDefaultInstanceForType

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

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

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

      public Handler.LifecycleHandler.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<Handler.LifecycleHandler.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<Handler.LifecycleHandler.Builder>
    • mergeFrom

      public Handler.LifecycleHandler.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<Handler.LifecycleHandler.Builder>
      Throws:
      IOException
    • getLifecycleStage

      public String getLifecycleStage()
       Required. The name of the lifecycle stage that triggers this handler.
       Supported values:
       * `playbook-start`
       * `pre-action-selection`
       * `pre-action-execution`
       
      string lifecycle_stage = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLifecycleStage in interface Handler.LifecycleHandlerOrBuilder
      Returns:
      The lifecycleStage.
    • getLifecycleStageBytes

      public com.google.protobuf.ByteString getLifecycleStageBytes()
       Required. The name of the lifecycle stage that triggers this handler.
       Supported values:
       * `playbook-start`
       * `pre-action-selection`
       * `pre-action-execution`
       
      string lifecycle_stage = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLifecycleStageBytes in interface Handler.LifecycleHandlerOrBuilder
      Returns:
      The bytes for lifecycleStage.
    • setLifecycleStage

      public Handler.LifecycleHandler.Builder setLifecycleStage(String value)
       Required. The name of the lifecycle stage that triggers this handler.
       Supported values:
       * `playbook-start`
       * `pre-action-selection`
       * `pre-action-execution`
       
      string lifecycle_stage = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The lifecycleStage to set.
      Returns:
      This builder for chaining.
    • clearLifecycleStage

      public Handler.LifecycleHandler.Builder clearLifecycleStage()
       Required. The name of the lifecycle stage that triggers this handler.
       Supported values:
       * `playbook-start`
       * `pre-action-selection`
       * `pre-action-execution`
       
      string lifecycle_stage = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setLifecycleStageBytes

      public Handler.LifecycleHandler.Builder setLifecycleStageBytes(com.google.protobuf.ByteString value)
       Required. The name of the lifecycle stage that triggers this handler.
       Supported values:
       * `playbook-start`
       * `pre-action-selection`
       * `pre-action-execution`
       
      string lifecycle_stage = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for lifecycleStage to set.
      Returns:
      This builder for chaining.
    • getCondition

      public String getCondition()
       Optional. The condition that must be satisfied to trigger this handler.
       
      string condition = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCondition in interface Handler.LifecycleHandlerOrBuilder
      Returns:
      The condition.
    • getConditionBytes

      public com.google.protobuf.ByteString getConditionBytes()
       Optional. The condition that must be satisfied to trigger this handler.
       
      string condition = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConditionBytes in interface Handler.LifecycleHandlerOrBuilder
      Returns:
      The bytes for condition.
    • setCondition

      public Handler.LifecycleHandler.Builder setCondition(String value)
       Optional. The condition that must be satisfied to trigger this handler.
       
      string condition = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The condition to set.
      Returns:
      This builder for chaining.
    • clearCondition

      public Handler.LifecycleHandler.Builder clearCondition()
       Optional. The condition that must be satisfied to trigger this handler.
       
      string condition = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setConditionBytes

      public Handler.LifecycleHandler.Builder setConditionBytes(com.google.protobuf.ByteString value)
       Optional. The condition that must be satisfied to trigger this handler.
       
      string condition = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for condition to set.
      Returns:
      This builder for chaining.
    • hasFulfillment

      public boolean hasFulfillment()
       Required. The fulfillment to call when this handler is triggered.
       
      .google.cloud.dialogflow.cx.v3beta1.Fulfillment fulfillment = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasFulfillment in interface Handler.LifecycleHandlerOrBuilder
      Returns:
      Whether the fulfillment field is set.
    • getFulfillment

      public Fulfillment getFulfillment()
       Required. The fulfillment to call when this handler is triggered.
       
      .google.cloud.dialogflow.cx.v3beta1.Fulfillment fulfillment = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFulfillment in interface Handler.LifecycleHandlerOrBuilder
      Returns:
      The fulfillment.
    • setFulfillment

      public Handler.LifecycleHandler.Builder setFulfillment(Fulfillment value)
       Required. The fulfillment to call when this handler is triggered.
       
      .google.cloud.dialogflow.cx.v3beta1.Fulfillment fulfillment = 3 [(.google.api.field_behavior) = REQUIRED];
    • setFulfillment

      public Handler.LifecycleHandler.Builder setFulfillment(Fulfillment.Builder builderForValue)
       Required. The fulfillment to call when this handler is triggered.
       
      .google.cloud.dialogflow.cx.v3beta1.Fulfillment fulfillment = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeFulfillment

      public Handler.LifecycleHandler.Builder mergeFulfillment(Fulfillment value)
       Required. The fulfillment to call when this handler is triggered.
       
      .google.cloud.dialogflow.cx.v3beta1.Fulfillment fulfillment = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearFulfillment

      public Handler.LifecycleHandler.Builder clearFulfillment()
       Required. The fulfillment to call when this handler is triggered.
       
      .google.cloud.dialogflow.cx.v3beta1.Fulfillment fulfillment = 3 [(.google.api.field_behavior) = REQUIRED];
    • getFulfillmentBuilder

      public Fulfillment.Builder getFulfillmentBuilder()
       Required. The fulfillment to call when this handler is triggered.
       
      .google.cloud.dialogflow.cx.v3beta1.Fulfillment fulfillment = 3 [(.google.api.field_behavior) = REQUIRED];
    • getFulfillmentOrBuilder

      public FulfillmentOrBuilder getFulfillmentOrBuilder()
       Required. The fulfillment to call when this handler is triggered.
       
      .google.cloud.dialogflow.cx.v3beta1.Fulfillment fulfillment = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFulfillmentOrBuilder in interface Handler.LifecycleHandlerOrBuilder