Class Fulfillment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
- com.google.cloud.dialogflow.cx.v3.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.GeneratedMessageV3.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.v3.Page] or [Form][google.cloud.dialogflow.cx.v3.Form] lifecycle. For example, when a [DetectIntentRequest][google.cloud.dialogflow.cx.v3.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.v3.QueryResult] in the returning [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse], call the webhook (for example, to load user data from a database), or both.
Protobuf typegoogle.cloud.dialogflow.cx.v3.Fulfillment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Fulfillment.BuilderaddAllConditionalCases(Iterable<? extends Fulfillment.ConditionalCases> values)Conditional cases for this fulfillment.Fulfillment.BuilderaddAllMessages(Iterable<? extends ResponseMessage> values)The list of rich message responses to present to the user.Fulfillment.BuilderaddAllSetParameterActions(Iterable<? extends Fulfillment.SetParameterAction> values)Set parameter values before executing the webhook.Fulfillment.BuilderaddConditionalCases(int index, Fulfillment.ConditionalCases value)Conditional cases for this fulfillment.Fulfillment.BuilderaddConditionalCases(int index, Fulfillment.ConditionalCases.Builder builderForValue)Conditional cases for this fulfillment.Fulfillment.BuilderaddConditionalCases(Fulfillment.ConditionalCases value)Conditional cases for this fulfillment.Fulfillment.BuilderaddConditionalCases(Fulfillment.ConditionalCases.Builder builderForValue)Conditional cases for this fulfillment.Fulfillment.ConditionalCases.BuilderaddConditionalCasesBuilder()Conditional cases for this fulfillment.Fulfillment.ConditionalCases.BuilderaddConditionalCasesBuilder(int index)Conditional cases for this fulfillment.Fulfillment.BuilderaddMessages(int index, ResponseMessage value)The list of rich message responses to present to the user.Fulfillment.BuilderaddMessages(int index, ResponseMessage.Builder builderForValue)The list of rich message responses to present to the user.Fulfillment.BuilderaddMessages(ResponseMessage value)The list of rich message responses to present to the user.Fulfillment.BuilderaddMessages(ResponseMessage.Builder builderForValue)The list of rich message responses to present to the user.ResponseMessage.BuilderaddMessagesBuilder()The list of rich message responses to present to the user.ResponseMessage.BuilderaddMessagesBuilder(int index)The list of rich message responses to present to the user.Fulfillment.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Fulfillment.BuilderaddSetParameterActions(int index, Fulfillment.SetParameterAction value)Set parameter values before executing the webhook.Fulfillment.BuilderaddSetParameterActions(int index, Fulfillment.SetParameterAction.Builder builderForValue)Set parameter values before executing the webhook.Fulfillment.BuilderaddSetParameterActions(Fulfillment.SetParameterAction value)Set parameter values before executing the webhook.Fulfillment.BuilderaddSetParameterActions(Fulfillment.SetParameterAction.Builder builderForValue)Set parameter values before executing the webhook.Fulfillment.SetParameterAction.BuilderaddSetParameterActionsBuilder()Set parameter values before executing the webhook.Fulfillment.SetParameterAction.BuilderaddSetParameterActionsBuilder(int index)Set parameter values before executing the webhook.Fulfillmentbuild()FulfillmentbuildPartial()Fulfillment.Builderclear()Fulfillment.BuilderclearConditionalCases()Conditional cases for this fulfillment.Fulfillment.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Fulfillment.BuilderclearMessages()The list of rich message responses to present to the user.Fulfillment.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Fulfillment.BuilderclearReturnPartialResponses()Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs.Fulfillment.BuilderclearSetParameterActions()Set parameter values before executing the webhook.Fulfillment.BuilderclearTag()The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is called.Fulfillment.BuilderclearWebhook()The webhook to call.Fulfillment.Builderclone()Fulfillment.ConditionalCasesgetConditionalCases(int index)Conditional cases for this fulfillment.Fulfillment.ConditionalCases.BuildergetConditionalCasesBuilder(int index)Conditional cases for this fulfillment.List<Fulfillment.ConditionalCases.Builder>getConditionalCasesBuilderList()Conditional cases for this fulfillment.intgetConditionalCasesCount()Conditional cases for this fulfillment.List<Fulfillment.ConditionalCases>getConditionalCasesList()Conditional cases for this fulfillment.Fulfillment.ConditionalCasesOrBuildergetConditionalCasesOrBuilder(int index)Conditional cases for this fulfillment.List<? extends Fulfillment.ConditionalCasesOrBuilder>getConditionalCasesOrBuilderList()Conditional cases for this fulfillment.FulfillmentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ResponseMessagegetMessages(int index)The list of rich message responses to present to the user.ResponseMessage.BuildergetMessagesBuilder(int index)The list of rich message responses to present to the user.List<ResponseMessage.Builder>getMessagesBuilderList()The list of rich message responses to present to the user.intgetMessagesCount()The list of rich message responses to present to the user.List<ResponseMessage>getMessagesList()The list of rich message responses to present to the user.ResponseMessageOrBuildergetMessagesOrBuilder(int index)The list of rich message responses to present to the user.List<? extends ResponseMessageOrBuilder>getMessagesOrBuilderList()The list of rich message responses to present to the user.booleangetReturnPartialResponses()Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs.Fulfillment.SetParameterActiongetSetParameterActions(int index)Set parameter values before executing the webhook.Fulfillment.SetParameterAction.BuildergetSetParameterActionsBuilder(int index)Set parameter values before executing the webhook.List<Fulfillment.SetParameterAction.Builder>getSetParameterActionsBuilderList()Set parameter values before executing the webhook.intgetSetParameterActionsCount()Set parameter values before executing the webhook.List<Fulfillment.SetParameterAction>getSetParameterActionsList()Set parameter values before executing the webhook.Fulfillment.SetParameterActionOrBuildergetSetParameterActionsOrBuilder(int index)Set parameter values before executing the webhook.List<? extends Fulfillment.SetParameterActionOrBuilder>getSetParameterActionsOrBuilderList()Set parameter values before executing the webhook.StringgetTag()The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is called.com.google.protobuf.ByteStringgetTagBytes()The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is called.StringgetWebhook()The webhook to call.com.google.protobuf.ByteStringgetWebhookBytes()The webhook to call.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Fulfillment.BuildermergeFrom(Fulfillment other)Fulfillment.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Fulfillment.BuildermergeFrom(com.google.protobuf.Message other)Fulfillment.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Fulfillment.BuilderremoveConditionalCases(int index)Conditional cases for this fulfillment.Fulfillment.BuilderremoveMessages(int index)The list of rich message responses to present to the user.Fulfillment.BuilderremoveSetParameterActions(int index)Set parameter values before executing the webhook.Fulfillment.BuildersetConditionalCases(int index, Fulfillment.ConditionalCases value)Conditional cases for this fulfillment.Fulfillment.BuildersetConditionalCases(int index, Fulfillment.ConditionalCases.Builder builderForValue)Conditional cases for this fulfillment.Fulfillment.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Fulfillment.BuildersetMessages(int index, ResponseMessage value)The list of rich message responses to present to the user.Fulfillment.BuildersetMessages(int index, ResponseMessage.Builder builderForValue)The list of rich message responses to present to the user.Fulfillment.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Fulfillment.BuildersetReturnPartialResponses(boolean value)Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs.Fulfillment.BuildersetSetParameterActions(int index, Fulfillment.SetParameterAction value)Set parameter values before executing the webhook.Fulfillment.BuildersetSetParameterActions(int index, Fulfillment.SetParameterAction.Builder builderForValue)Set parameter values before executing the webhook.Fulfillment.BuildersetTag(String value)The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is called.Fulfillment.BuildersetTagBytes(com.google.protobuf.ByteString value)The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is called.Fulfillment.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Fulfillment.BuildersetWebhook(String value)The webhook to call.Fulfillment.BuildersetWebhookBytes(com.google.protobuf.ByteString value)The webhook to call.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
clear
public Fulfillment.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.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.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
getDefaultInstanceForType
public Fulfillment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Fulfillment build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Fulfillment buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Fulfillment.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
setField
public Fulfillment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
clearField
public Fulfillment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
clearOneof
public Fulfillment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
setRepeatedField
public Fulfillment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
addRepeatedField
public Fulfillment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
mergeFrom
public Fulfillment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Fulfillment.Builder>
-
mergeFrom
public Fulfillment.Builder mergeFrom(Fulfillment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
mergeFrom
public Fulfillment.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<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.v3.ResponseMessage messages = 1;- Specified by:
getMessagesListin interfaceFulfillmentOrBuilder
-
getMessagesCount
public int getMessagesCount()
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;- Specified by:
getMessagesCountin interfaceFulfillmentOrBuilder
-
getMessages
public ResponseMessage getMessages(int index)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;- Specified by:
getMessagesin interfaceFulfillmentOrBuilder
-
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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.ResponseMessage messages = 1;
-
clearMessages
public Fulfillment.Builder clearMessages()
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.ResponseMessage messages = 1;- Specified by:
getMessagesOrBuilderin interfaceFulfillmentOrBuilder
-
getMessagesOrBuilderList
public List<? extends ResponseMessageOrBuilder> getMessagesOrBuilderList()
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;- Specified by:
getMessagesOrBuilderListin interfaceFulfillmentOrBuilder
-
addMessagesBuilder
public ResponseMessage.Builder addMessagesBuilder()
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3.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.v3.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.v3.ResponseMessage messages = 1;
-
getWebhook
public String getWebhook()
The webhook to call. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
string webhook = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getWebhookin interfaceFulfillmentOrBuilder- Returns:
- The webhook.
-
getWebhookBytes
public com.google.protobuf.ByteString getWebhookBytes()
The webhook to call. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
string webhook = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getWebhookBytesin interfaceFulfillmentOrBuilder- Returns:
- The bytes for webhook.
-
setWebhook
public Fulfillment.Builder setWebhook(String value)
The webhook to call. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
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/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
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/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
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:
getReturnPartialResponsesin interfaceFulfillmentOrBuilder- 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.v3.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:
getTagin interfaceFulfillmentOrBuilder- 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.v3.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:
getTagBytesin interfaceFulfillmentOrBuilder- 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.v3.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.v3.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.v3.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.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;- Specified by:
getSetParameterActionsListin interfaceFulfillmentOrBuilder
-
getSetParameterActionsCount
public int getSetParameterActionsCount()
Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;- Specified by:
getSetParameterActionsCountin interfaceFulfillmentOrBuilder
-
getSetParameterActions
public Fulfillment.SetParameterAction getSetParameterActions(int index)
Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;- Specified by:
getSetParameterActionsin interfaceFulfillmentOrBuilder
-
setSetParameterActions
public Fulfillment.Builder setSetParameterActions(int index, Fulfillment.SetParameterAction value)
Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;
-
clearSetParameterActions
public Fulfillment.Builder clearSetParameterActions()
Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;- Specified by:
getSetParameterActionsOrBuilderin interfaceFulfillmentOrBuilder
-
getSetParameterActionsOrBuilderList
public List<? extends Fulfillment.SetParameterActionOrBuilder> getSetParameterActionsOrBuilderList()
Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;- Specified by:
getSetParameterActionsOrBuilderListin interfaceFulfillmentOrBuilder
-
addSetParameterActionsBuilder
public Fulfillment.SetParameterAction.Builder addSetParameterActionsBuilder()
Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3.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.v3.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.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;
-
getConditionalCasesList
public List<Fulfillment.ConditionalCases> getConditionalCasesList()
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;- Specified by:
getConditionalCasesListin interfaceFulfillmentOrBuilder
-
getConditionalCasesCount
public int getConditionalCasesCount()
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;- Specified by:
getConditionalCasesCountin interfaceFulfillmentOrBuilder
-
getConditionalCases
public Fulfillment.ConditionalCases getConditionalCases(int index)
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;- Specified by:
getConditionalCasesin interfaceFulfillmentOrBuilder
-
setConditionalCases
public Fulfillment.Builder setConditionalCases(int index, Fulfillment.ConditionalCases value)
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.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.v3.Fulfillment.ConditionalCases conditional_cases = 5;
-
addConditionalCases
public Fulfillment.Builder addConditionalCases(Fulfillment.ConditionalCases value)
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.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.v3.Fulfillment.ConditionalCases conditional_cases = 5;
-
addConditionalCases
public Fulfillment.Builder addConditionalCases(Fulfillment.ConditionalCases.Builder builderForValue)
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.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.v3.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.v3.Fulfillment.ConditionalCases conditional_cases = 5;
-
clearConditionalCases
public Fulfillment.Builder clearConditionalCases()
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;
-
removeConditionalCases
public Fulfillment.Builder removeConditionalCases(int index)
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;
-
getConditionalCasesBuilder
public Fulfillment.ConditionalCases.Builder getConditionalCasesBuilder(int index)
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;
-
getConditionalCasesOrBuilder
public Fulfillment.ConditionalCasesOrBuilder getConditionalCasesOrBuilder(int index)
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;- Specified by:
getConditionalCasesOrBuilderin interfaceFulfillmentOrBuilder
-
getConditionalCasesOrBuilderList
public List<? extends Fulfillment.ConditionalCasesOrBuilder> getConditionalCasesOrBuilderList()
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;- Specified by:
getConditionalCasesOrBuilderListin interfaceFulfillmentOrBuilder
-
addConditionalCasesBuilder
public Fulfillment.ConditionalCases.Builder addConditionalCasesBuilder()
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;
-
addConditionalCasesBuilder
public Fulfillment.ConditionalCases.Builder addConditionalCasesBuilder(int index)
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;
-
getConditionalCasesBuilderList
public List<Fulfillment.ConditionalCases.Builder> getConditionalCasesBuilderList()
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;
-
setUnknownFields
public final Fulfillment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
mergeUnknownFields
public final Fulfillment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
-