Class Fulfillment.Builder

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

public static final class Fulfillment.Builder extends com.google.protobuf.GeneratedMessage.Builder<Fulfillment.Builder> implements FulfillmentOrBuilder
 A fulfillment can do one or more of the following actions at the same time:

 * Generate rich message responses.
 * Set parameter values.
 * Call the webhook.

 Fulfillments can be called at various stages in the
 [Page][google.cloud.dialogflow.cx.v3beta1.Page] or
 [Form][google.cloud.dialogflow.cx.v3beta1.Form] lifecycle. For example, when
 a
 [DetectIntentRequest][google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest]
 drives a session to enter a new page, the page's entry fulfillment can add a
 static response to the
 [QueryResult][google.cloud.dialogflow.cx.v3beta1.QueryResult] in the
 returning
 [DetectIntentResponse][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse],
 call the webhook (for example, to load user data from a database), or both.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Fulfillment
  • 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<Fulfillment.Builder>
    • clear

      public Fulfillment.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<Fulfillment.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<Fulfillment.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Fulfillment.Builder mergeFrom(Fulfillment other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Fulfillment.Builder>
    • mergeFrom

      public Fulfillment.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<Fulfillment.Builder>
      Throws:
      IOException
    • getMessagesList

      public List<ResponseMessage> getMessagesList()
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
      Specified by:
      getMessagesList in interface FulfillmentOrBuilder
    • getMessagesCount

      public int getMessagesCount()
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
      Specified by:
      getMessagesCount in interface FulfillmentOrBuilder
    • getMessages

      public ResponseMessage getMessages(int index)
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
      Specified by:
      getMessages in interface FulfillmentOrBuilder
    • setMessages

      public Fulfillment.Builder setMessages(int index, ResponseMessage value)
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
    • setMessages

      public Fulfillment.Builder setMessages(int index, ResponseMessage.Builder builderForValue)
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
    • addMessages

      public Fulfillment.Builder addMessages(ResponseMessage value)
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
    • addMessages

      public Fulfillment.Builder addMessages(int index, ResponseMessage value)
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
    • addMessages

      public Fulfillment.Builder addMessages(ResponseMessage.Builder builderForValue)
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
    • addMessages

      public Fulfillment.Builder addMessages(int index, ResponseMessage.Builder builderForValue)
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
    • addAllMessages

      public Fulfillment.Builder addAllMessages(Iterable<? extends ResponseMessage> values)
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
    • clearMessages

      public Fulfillment.Builder clearMessages()
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
    • removeMessages

      public Fulfillment.Builder removeMessages(int index)
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
    • getMessagesBuilder

      public ResponseMessage.Builder getMessagesBuilder(int index)
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
    • getMessagesOrBuilder

      public ResponseMessageOrBuilder getMessagesOrBuilder(int index)
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
      Specified by:
      getMessagesOrBuilder in interface FulfillmentOrBuilder
    • getMessagesOrBuilderList

      public List<? extends ResponseMessageOrBuilder> getMessagesOrBuilderList()
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
      Specified by:
      getMessagesOrBuilderList in interface FulfillmentOrBuilder
    • addMessagesBuilder

      public ResponseMessage.Builder addMessagesBuilder()
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
    • addMessagesBuilder

      public ResponseMessage.Builder addMessagesBuilder(int index)
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
    • getMessagesBuilderList

      public List<ResponseMessage.Builder> getMessagesBuilderList()
       The list of rich message responses to present to the user.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;
    • getWebhook

      public String getWebhook()
       The webhook to call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.
       
      string webhook = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getWebhook in interface FulfillmentOrBuilder
      Returns:
      The webhook.
    • getWebhookBytes

      public com.google.protobuf.ByteString getWebhookBytes()
       The webhook to call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.
       
      string webhook = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getWebhookBytes in interface FulfillmentOrBuilder
      Returns:
      The bytes for webhook.
    • setWebhook

      public Fulfillment.Builder setWebhook(String value)
       The webhook to call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.
       
      string webhook = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The webhook to set.
      Returns:
      This builder for chaining.
    • clearWebhook

      public Fulfillment.Builder clearWebhook()
       The webhook to call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.
       
      string webhook = 2 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setWebhookBytes

      public Fulfillment.Builder setWebhookBytes(com.google.protobuf.ByteString value)
       The webhook to call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.
       
      string webhook = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for webhook to set.
      Returns:
      This builder for chaining.
    • getReturnPartialResponses

      public boolean getReturnPartialResponses()
       Whether Dialogflow should return currently queued fulfillment response
       messages in streaming APIs. If a webhook is specified, it happens before
       Dialogflow invokes webhook.
       Warning:
       1) This flag only affects streaming API. Responses are still queued
       and returned once in non-streaming API.
       2) The flag can be enabled in any fulfillment but only the first 3 partial
       responses will be returned. You may only want to apply it to fulfillments
       that have slow webhooks.
       
      bool return_partial_responses = 8;
      Specified by:
      getReturnPartialResponses in interface FulfillmentOrBuilder
      Returns:
      The returnPartialResponses.
    • setReturnPartialResponses

      public Fulfillment.Builder setReturnPartialResponses(boolean value)
       Whether Dialogflow should return currently queued fulfillment response
       messages in streaming APIs. If a webhook is specified, it happens before
       Dialogflow invokes webhook.
       Warning:
       1) This flag only affects streaming API. Responses are still queued
       and returned once in non-streaming API.
       2) The flag can be enabled in any fulfillment but only the first 3 partial
       responses will be returned. You may only want to apply it to fulfillments
       that have slow webhooks.
       
      bool return_partial_responses = 8;
      Parameters:
      value - The returnPartialResponses to set.
      Returns:
      This builder for chaining.
    • clearReturnPartialResponses

      public Fulfillment.Builder clearReturnPartialResponses()
       Whether Dialogflow should return currently queued fulfillment response
       messages in streaming APIs. If a webhook is specified, it happens before
       Dialogflow invokes webhook.
       Warning:
       1) This flag only affects streaming API. Responses are still queued
       and returned once in non-streaming API.
       2) The flag can be enabled in any fulfillment but only the first 3 partial
       responses will be returned. You may only want to apply it to fulfillments
       that have slow webhooks.
       
      bool return_partial_responses = 8;
      Returns:
      This builder for chaining.
    • getTag

      public String getTag()
       The value of this field will be populated in the
       [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]
       `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
       called.
       The tag is typically used by the webhook service to identify which
       fulfillment is being called, but it could be used for other purposes.
       This field is required if `webhook` is specified.
       
      string tag = 3;
      Specified by:
      getTag in interface FulfillmentOrBuilder
      Returns:
      The tag.
    • getTagBytes

      public com.google.protobuf.ByteString getTagBytes()
       The value of this field will be populated in the
       [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]
       `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
       called.
       The tag is typically used by the webhook service to identify which
       fulfillment is being called, but it could be used for other purposes.
       This field is required if `webhook` is specified.
       
      string tag = 3;
      Specified by:
      getTagBytes in interface FulfillmentOrBuilder
      Returns:
      The bytes for tag.
    • setTag

      public Fulfillment.Builder setTag(String value)
       The value of this field will be populated in the
       [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]
       `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
       called.
       The tag is typically used by the webhook service to identify which
       fulfillment is being called, but it could be used for other purposes.
       This field is required if `webhook` is specified.
       
      string tag = 3;
      Parameters:
      value - The tag to set.
      Returns:
      This builder for chaining.
    • clearTag

      public Fulfillment.Builder clearTag()
       The value of this field will be populated in the
       [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]
       `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
       called.
       The tag is typically used by the webhook service to identify which
       fulfillment is being called, but it could be used for other purposes.
       This field is required if `webhook` is specified.
       
      string tag = 3;
      Returns:
      This builder for chaining.
    • setTagBytes

      public Fulfillment.Builder setTagBytes(com.google.protobuf.ByteString value)
       The value of this field will be populated in the
       [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]
       `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
       called.
       The tag is typically used by the webhook service to identify which
       fulfillment is being called, but it could be used for other purposes.
       This field is required if `webhook` is specified.
       
      string tag = 3;
      Parameters:
      value - The bytes for tag to set.
      Returns:
      This builder for chaining.
    • getSetParameterActionsList

      public List<Fulfillment.SetParameterAction> getSetParameterActionsList()
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
      Specified by:
      getSetParameterActionsList in interface FulfillmentOrBuilder
    • getSetParameterActionsCount

      public int getSetParameterActionsCount()
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
      Specified by:
      getSetParameterActionsCount in interface FulfillmentOrBuilder
    • getSetParameterActions

      public Fulfillment.SetParameterAction getSetParameterActions(int index)
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
      Specified by:
      getSetParameterActions in interface FulfillmentOrBuilder
    • setSetParameterActions

      public Fulfillment.Builder setSetParameterActions(int index, Fulfillment.SetParameterAction value)
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
    • setSetParameterActions

      public Fulfillment.Builder setSetParameterActions(int index, Fulfillment.SetParameterAction.Builder builderForValue)
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
    • addSetParameterActions

      public Fulfillment.Builder addSetParameterActions(Fulfillment.SetParameterAction value)
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
    • addSetParameterActions

      public Fulfillment.Builder addSetParameterActions(int index, Fulfillment.SetParameterAction value)
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
    • addSetParameterActions

      public Fulfillment.Builder addSetParameterActions(Fulfillment.SetParameterAction.Builder builderForValue)
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
    • addSetParameterActions

      public Fulfillment.Builder addSetParameterActions(int index, Fulfillment.SetParameterAction.Builder builderForValue)
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
    • addAllSetParameterActions

      public Fulfillment.Builder addAllSetParameterActions(Iterable<? extends Fulfillment.SetParameterAction> values)
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
    • clearSetParameterActions

      public Fulfillment.Builder clearSetParameterActions()
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
    • removeSetParameterActions

      public Fulfillment.Builder removeSetParameterActions(int index)
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
    • getSetParameterActionsBuilder

      public Fulfillment.SetParameterAction.Builder getSetParameterActionsBuilder(int index)
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
    • getSetParameterActionsOrBuilder

      public Fulfillment.SetParameterActionOrBuilder getSetParameterActionsOrBuilder(int index)
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
      Specified by:
      getSetParameterActionsOrBuilder in interface FulfillmentOrBuilder
    • getSetParameterActionsOrBuilderList

      public List<? extends Fulfillment.SetParameterActionOrBuilder> getSetParameterActionsOrBuilderList()
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
      Specified by:
      getSetParameterActionsOrBuilderList in interface FulfillmentOrBuilder
    • addSetParameterActionsBuilder

      public Fulfillment.SetParameterAction.Builder addSetParameterActionsBuilder()
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
    • addSetParameterActionsBuilder

      public Fulfillment.SetParameterAction.Builder addSetParameterActionsBuilder(int index)
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
    • getSetParameterActionsBuilderList

      public List<Fulfillment.SetParameterAction.Builder> getSetParameterActionsBuilderList()
       Set parameter values before executing the webhook.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;
    • getConditionalCasesList

      public List<Fulfillment.ConditionalCases> getConditionalCasesList()
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
      Specified by:
      getConditionalCasesList in interface FulfillmentOrBuilder
    • getConditionalCasesCount

      public int getConditionalCasesCount()
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
      Specified by:
      getConditionalCasesCount in interface FulfillmentOrBuilder
    • getConditionalCases

      public Fulfillment.ConditionalCases getConditionalCases(int index)
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
      Specified by:
      getConditionalCases in interface FulfillmentOrBuilder
    • setConditionalCases

      public Fulfillment.Builder setConditionalCases(int index, Fulfillment.ConditionalCases value)
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
    • setConditionalCases

      public Fulfillment.Builder setConditionalCases(int index, Fulfillment.ConditionalCases.Builder builderForValue)
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
    • addConditionalCases

      public Fulfillment.Builder addConditionalCases(Fulfillment.ConditionalCases value)
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
    • addConditionalCases

      public Fulfillment.Builder addConditionalCases(int index, Fulfillment.ConditionalCases value)
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
    • addConditionalCases

      public Fulfillment.Builder addConditionalCases(Fulfillment.ConditionalCases.Builder builderForValue)
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
    • addConditionalCases

      public Fulfillment.Builder addConditionalCases(int index, Fulfillment.ConditionalCases.Builder builderForValue)
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
    • addAllConditionalCases

      public Fulfillment.Builder addAllConditionalCases(Iterable<? extends Fulfillment.ConditionalCases> values)
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
    • clearConditionalCases

      public Fulfillment.Builder clearConditionalCases()
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
    • removeConditionalCases

      public Fulfillment.Builder removeConditionalCases(int index)
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
    • getConditionalCasesBuilder

      public Fulfillment.ConditionalCases.Builder getConditionalCasesBuilder(int index)
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
    • getConditionalCasesOrBuilder

      public Fulfillment.ConditionalCasesOrBuilder getConditionalCasesOrBuilder(int index)
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
      Specified by:
      getConditionalCasesOrBuilder in interface FulfillmentOrBuilder
    • getConditionalCasesOrBuilderList

      public List<? extends Fulfillment.ConditionalCasesOrBuilder> getConditionalCasesOrBuilderList()
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
      Specified by:
      getConditionalCasesOrBuilderList in interface FulfillmentOrBuilder
    • addConditionalCasesBuilder

      public Fulfillment.ConditionalCases.Builder addConditionalCasesBuilder()
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
    • addConditionalCasesBuilder

      public Fulfillment.ConditionalCases.Builder addConditionalCasesBuilder(int index)
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
    • getConditionalCasesBuilderList

      public List<Fulfillment.ConditionalCases.Builder> getConditionalCasesBuilderList()
       Conditional cases for this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;
    • hasAdvancedSettings

      public boolean hasAdvancedSettings()
       Hierarchical advanced settings for this fulfillment. The settings exposed
       at the lower level overrides the settings exposed at the higher level.
       
      .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
      Specified by:
      hasAdvancedSettings in interface FulfillmentOrBuilder
      Returns:
      Whether the advancedSettings field is set.
    • getAdvancedSettings

      public AdvancedSettings getAdvancedSettings()
       Hierarchical advanced settings for this fulfillment. The settings exposed
       at the lower level overrides the settings exposed at the higher level.
       
      .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
      Specified by:
      getAdvancedSettings in interface FulfillmentOrBuilder
      Returns:
      The advancedSettings.
    • setAdvancedSettings

      public Fulfillment.Builder setAdvancedSettings(AdvancedSettings value)
       Hierarchical advanced settings for this fulfillment. The settings exposed
       at the lower level overrides the settings exposed at the higher level.
       
      .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
    • setAdvancedSettings

      public Fulfillment.Builder setAdvancedSettings(AdvancedSettings.Builder builderForValue)
       Hierarchical advanced settings for this fulfillment. The settings exposed
       at the lower level overrides the settings exposed at the higher level.
       
      .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
    • mergeAdvancedSettings

      public Fulfillment.Builder mergeAdvancedSettings(AdvancedSettings value)
       Hierarchical advanced settings for this fulfillment. The settings exposed
       at the lower level overrides the settings exposed at the higher level.
       
      .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
    • clearAdvancedSettings

      public Fulfillment.Builder clearAdvancedSettings()
       Hierarchical advanced settings for this fulfillment. The settings exposed
       at the lower level overrides the settings exposed at the higher level.
       
      .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
    • getAdvancedSettingsBuilder

      public AdvancedSettings.Builder getAdvancedSettingsBuilder()
       Hierarchical advanced settings for this fulfillment. The settings exposed
       at the lower level overrides the settings exposed at the higher level.
       
      .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
    • getAdvancedSettingsOrBuilder

      public AdvancedSettingsOrBuilder getAdvancedSettingsOrBuilder()
       Hierarchical advanced settings for this fulfillment. The settings exposed
       at the lower level overrides the settings exposed at the higher level.
       
      .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;
      Specified by:
      getAdvancedSettingsOrBuilder in interface FulfillmentOrBuilder
    • getEnableGenerativeFallback

      public boolean getEnableGenerativeFallback()
       If the flag is true, the agent will utilize LLM to generate a text
       response. If LLM generation fails, the defined
       [responses][google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages] in the
       fulfillment will be respected. This flag is only useful for fulfillments
       associated with no-match event handlers.
       
      bool enable_generative_fallback = 12;
      Specified by:
      getEnableGenerativeFallback in interface FulfillmentOrBuilder
      Returns:
      The enableGenerativeFallback.
    • setEnableGenerativeFallback

      public Fulfillment.Builder setEnableGenerativeFallback(boolean value)
       If the flag is true, the agent will utilize LLM to generate a text
       response. If LLM generation fails, the defined
       [responses][google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages] in the
       fulfillment will be respected. This flag is only useful for fulfillments
       associated with no-match event handlers.
       
      bool enable_generative_fallback = 12;
      Parameters:
      value - The enableGenerativeFallback to set.
      Returns:
      This builder for chaining.
    • clearEnableGenerativeFallback

      public Fulfillment.Builder clearEnableGenerativeFallback()
       If the flag is true, the agent will utilize LLM to generate a text
       response. If LLM generation fails, the defined
       [responses][google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages] in the
       fulfillment will be respected. This flag is only useful for fulfillments
       associated with no-match event handlers.
       
      bool enable_generative_fallback = 12;
      Returns:
      This builder for chaining.
    • getGeneratorsList

      public List<Fulfillment.GeneratorSettings> getGeneratorsList()
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
      Specified by:
      getGeneratorsList in interface FulfillmentOrBuilder
    • getGeneratorsCount

      public int getGeneratorsCount()
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
      Specified by:
      getGeneratorsCount in interface FulfillmentOrBuilder
    • getGenerators

      public Fulfillment.GeneratorSettings getGenerators(int index)
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
      Specified by:
      getGenerators in interface FulfillmentOrBuilder
    • setGenerators

      public Fulfillment.Builder setGenerators(int index, Fulfillment.GeneratorSettings value)
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
    • setGenerators

      public Fulfillment.Builder setGenerators(int index, Fulfillment.GeneratorSettings.Builder builderForValue)
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
    • addGenerators

      public Fulfillment.Builder addGenerators(Fulfillment.GeneratorSettings value)
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
    • addGenerators

      public Fulfillment.Builder addGenerators(int index, Fulfillment.GeneratorSettings value)
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
    • addGenerators

      public Fulfillment.Builder addGenerators(Fulfillment.GeneratorSettings.Builder builderForValue)
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
    • addGenerators

      public Fulfillment.Builder addGenerators(int index, Fulfillment.GeneratorSettings.Builder builderForValue)
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
    • addAllGenerators

      public Fulfillment.Builder addAllGenerators(Iterable<? extends Fulfillment.GeneratorSettings> values)
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
    • clearGenerators

      public Fulfillment.Builder clearGenerators()
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
    • removeGenerators

      public Fulfillment.Builder removeGenerators(int index)
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
    • getGeneratorsBuilder

      public Fulfillment.GeneratorSettings.Builder getGeneratorsBuilder(int index)
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
    • getGeneratorsOrBuilder

      public Fulfillment.GeneratorSettingsOrBuilder getGeneratorsOrBuilder(int index)
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
      Specified by:
      getGeneratorsOrBuilder in interface FulfillmentOrBuilder
    • getGeneratorsOrBuilderList

      public List<? extends Fulfillment.GeneratorSettingsOrBuilder> getGeneratorsOrBuilderList()
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
      Specified by:
      getGeneratorsOrBuilderList in interface FulfillmentOrBuilder
    • addGeneratorsBuilder

      public Fulfillment.GeneratorSettings.Builder addGeneratorsBuilder()
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
    • addGeneratorsBuilder

      public Fulfillment.GeneratorSettings.Builder addGeneratorsBuilder(int index)
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;
    • getGeneratorsBuilderList

      public List<Fulfillment.GeneratorSettings.Builder> getGeneratorsBuilderList()
       A list of Generators to be called during this fulfillment.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;