Class Handler.LifecycleHandler

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

public static final class Handler.LifecycleHandler extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • LIFECYCLE_STAGE_FIELD_NUMBER

      public static final int LIFECYCLE_STAGE_FIELD_NUMBER
      See Also:
    • CONDITION_FIELD_NUMBER

      public static final int CONDITION_FIELD_NUMBER
      See Also:
    • FULFILLMENT_FIELD_NUMBER

      public static final int FULFILLMENT_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Handler.LifecycleHandler parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Handler.LifecycleHandler parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Handler.LifecycleHandler parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Handler.LifecycleHandler parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Handler.LifecycleHandler parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Handler.LifecycleHandler parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Handler.LifecycleHandler parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Handler.LifecycleHandler parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Handler.LifecycleHandler parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Handler.LifecycleHandler parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Handler.LifecycleHandler parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Handler.LifecycleHandler parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Handler.LifecycleHandler.Builder newBuilder()
    • newBuilder

      public static Handler.LifecycleHandler.Builder newBuilder(Handler.LifecycleHandler prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Handler.LifecycleHandler.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Handler.LifecycleHandler getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Handler.LifecycleHandler> parser()
    • getParserForType

      public com.google.protobuf.Parser<Handler.LifecycleHandler> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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